Interface ICollectionDistribution<TElement, TElementDist>
Collection distribution interface
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public interface ICollectionDistribution<TElement, TElementDist> : ICollectionDistribution, IDistribution, ICloneable, Diffable, SettableToUniform where TElementDist : IDistribution<TElement>
Type Parameters
Name | Description |
---|---|
TElement | Element domain type |
TElementDist | Element distribution type |
Methods
GetElements()
Returns the list of elements' distributions.
Declaration
List<TElementDist> GetElements()
Returns
Type | Description |
---|---|
List<TElementDist> |
TransformElements<TNewElementDist>(Func<TElementDist, TNewElementDist>)
Transforms elements of collection by changing their distribution type. The element domain type remains unchanged.
Declaration
ICollectionDistribution<TElement, TNewElementDist> TransformElements<TNewElementDist>(Func<TElementDist, TNewElementDist> transformFunc)
where TNewElementDist : IDistribution<TElement>, CanGetLogAverageOf<TNewElementDist>, Sampleable<TElement>, SettableToProduct<TNewElementDist>
Parameters
Type | Name | Description |
---|---|---|
Func<TElementDist, TNewElementDist> | transformFunc |
Returns
Type | Description |
---|---|
ICollectionDistribution<TElement, TNewElementDist> |
Type Parameters
Name | Description |
---|---|
TNewElementDist | New element distribution type |