Search Results for

    Show / Hide Table of Contents

    Class Mixture<TDist, TDomain, TThis>

    A mixture of distributions of the same type

    Inheritance
    Object
    MixtureEstimator<TDist>
    Mixture<TDist, TDomain, TThis>
    Implements
    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>
    Inherited Members
    MixtureEstimator<TDist>.components
    MixtureEstimator<TDist>.weights
    MixtureEstimator<TDist>.Components
    MixtureEstimator<TDist>.Weights
    MixtureEstimator<TDist>.Add(TDist, Double)
    MixtureEstimator<TDist>.Add(TDist)
    MixtureEstimator<TDist>.WeightSum()
    MixtureEstimator<TDist>.Normalize()
    MixtureEstimator<TDist>.SetToZero()
    MixtureEstimator<TDist>.Accumulator<TDist>.Clear()
    MixtureEstimator<TDist>.GetDistribution(MixtureEstimator<TDist>)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Microsoft.ML.Probabilistic.Distributions
    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
    Type Description
    Boolean

    Point

    Declaration
    public TDomain Point { get; set; }
    Property Value
    Type Description
    TDomain

    Methods

    Clone()

    Declaration
    public virtual object Clone()
    Returns
    Type Description
    Object

    GetAverageLog(TThis)

    Declaration
    public double GetAverageLog(TThis that)
    Parameters
    Type Name Description
    TThis that
    Returns
    Type Description
    Double

    GetLogAverageOf(TDist)

    Declaration
    public double GetLogAverageOf(TDist that)
    Parameters
    Type Name Description
    TDist that
    Returns
    Type Description
    Double

    GetLogAverageOf(TThis)

    Declaration
    public virtual double GetLogAverageOf(TThis that)
    Parameters
    Type Name Description
    TThis that
    Returns
    Type Description
    Double

    GetLogProb(TDomain)

    Declaration
    public double GetLogProb(TDomain value)
    Parameters
    Type Name Description
    TDomain value
    Returns
    Type Description
    Double

    IsUniform()

    Declaration
    public bool IsUniform()
    Returns
    Type Description
    Boolean

    MaxDiff(Object)

    Declaration
    public double MaxDiff(object that)
    Parameters
    Type Name Description
    Object that
    Returns
    Type Description
    Double

    Sample()

    Declaration
    public TDomain Sample()
    Returns
    Type Description
    TDomain

    Sample(TDomain)

    Declaration
    public TDomain Sample(TDomain result)
    Parameters
    Type Name Description
    TDomain result
    Returns
    Type Description
    TDomain

    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

    SetToUniform()

    Declaration
    public void SetToUniform()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

    Estimator<T>
    Accumulator<T>
    IDistribution<T>
    IDistribution
    System.ICloneable
    Diffable
    SettableToUniform
    HasPoint<T>
    CanGetLogProb<T>
    Sampleable<T>
    SettableToProduct<T>
    SettableToProduct<T, U>
    CanGetLogAverageOf<T>
    CanGetAverageLog<T>
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.