Class Mixture<TDist, TDomain, TThis>
A mixture of distributions of the same type
Inheritance
Mixture<TDist, TDomain, TThis>
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class Mixture<TDist, TDomain, TThis> : MixtureEstimator<TDist>, Estimator<MixtureEstimator<TDist>>, Accumulator<TDist>, IDistribution<TDomain>, IDistribution, ICloneable, Diffable, SettableToUniform, HasPoint<TDomain>, CanGetLogProb<TDomain>, Sampleable<TDomain>, SettableToProduct<TThis>, SettableToProduct<TThis, TThis>, CanGetLogAverageOf<TThis>, CanGetAverageLog<TThis> where TDist : CanGetLogAverageOf<TDist>, CanGetLogProb<TDomain>, Sampleable<TDomain>, IDistribution<TDomain> where TThis : Mixture<TDist, TDomain, TThis>
Type Parameters
Name |
Description |
TDist |
The distribution type
|
TDomain |
The domain type
|
TThis |
For use when subclassing, the type of the subclass
|
Properties
IsPointMass
Declaration
public bool IsPointMass { get; }
Property Value
Point
Declaration
public TDomain Point { get; set; }
Property Value
Methods
Clone()
Declaration
public virtual object Clone()
Returns
GetAverageLog(TThis)
Declaration
public double GetAverageLog(TThis that)
Parameters
Type |
Name |
Description |
TThis |
that |
|
Returns
GetLogAverageOf(TDist)
Declaration
public double GetLogAverageOf(TDist that)
Parameters
Type |
Name |
Description |
TDist |
that |
|
Returns
GetLogAverageOf(TThis)
Declaration
public virtual double GetLogAverageOf(TThis that)
Parameters
Type |
Name |
Description |
TThis |
that |
|
Returns
GetLogProb(TDomain)
Declaration
public double GetLogProb(TDomain value)
Parameters
Type |
Name |
Description |
TDomain |
value |
|
Returns
Declaration
Returns
MaxDiff(Object)
Declaration
public double MaxDiff(object that)
Parameters
Type |
Name |
Description |
Object |
that |
|
Returns
Sample()
Declaration
Returns
Sample(TDomain)
Declaration
public TDomain Sample(TDomain result)
Parameters
Type |
Name |
Description |
TDomain |
result |
|
Returns
SetComponents(IEnumerable<TDist>)
Replaces the components of this distribution with the specified components (with equal weight).
Declaration
public void SetComponents(IEnumerable<TDist> components)
Parameters
Type |
Name |
Description |
IEnumerable<TDist> |
components |
The new mixture components
|
SetToProduct(TThis, TThis)
Declaration
public virtual void SetToProduct(TThis a, TThis b)
Parameters
Type |
Name |
Description |
TThis |
a |
|
TThis |
b |
|
Declaration
public void SetToUniform()
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements