Search Results for

    Show / Hide Table of Contents

    Class DirichletEstimator

    Estimates a Dirichlet distribution from samples.

    Inheritance
    Object
    DirichletEstimator
    Implements
    Estimator<Dirichlet>
    Accumulator<Dirichlet>
    Accumulator<Vector>
    SettableTo<DirichletEstimator>
    ICloneable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Distributions
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public class DirichletEstimator : Estimator<Dirichlet>, Accumulator<Dirichlet>, Accumulator<Vector>, SettableTo<DirichletEstimator>, ICloneable

    Constructors

    DirichletEstimator(Int32)

    Creates a new Dirichlet estimator

    Declaration
    public DirichletEstimator(int dimension)
    Parameters
    Type Name Description
    Int32 dimension

    Dimension

    Fields

    N

    Number of samples

    Declaration
    public int N
    Field Value
    Type Description
    Int32

    Sum

    Sum

    Declaration
    public Vector Sum
    Field Value
    Type Description
    Vector

    Sum2

    Sum of squares

    Declaration
    public Vector Sum2
    Field Value
    Type Description
    Vector

    Properties

    Dimension

    Dimension of the Dirichlet

    Declaration
    public int Dimension { get; }
    Property Value
    Type Description
    Int32

    Methods

    Add(Dirichlet)

    Adds a Dirichlet item to the estimator

    Declaration
    public void Add(Dirichlet item)
    Parameters
    Type Name Description
    Dirichlet item

    A Dirichlet instance

    Add(Vector)

    Adds a Vector sample to the estimator

    Declaration
    public void Add(Vector item)
    Parameters
    Type Name Description
    Vector item

    Clear()

    Clears the estimator

    Declaration
    public void Clear()

    Clone()

    Returns a clone of this estimator.

    Declaration
    public object Clone()
    Returns
    Type Description
    Object

    GetDistribution(Dirichlet)

    Gets the estimated distribution

    Declaration
    public Dirichlet GetDistribution(Dirichlet result)
    Parameters
    Type Name Description
    Dirichlet result

    Where to put the estimated distribution

    Returns
    Type Description
    Dirichlet

    The estimated distribution

    SetTo(DirichletEstimator)

    Sets the state of this estimator from the specified estimator.

    Declaration
    public void SetTo(DirichletEstimator value)
    Parameters
    Type Name Description
    DirichletEstimator value

    Implements

    Estimator<T>
    Accumulator<T>
    Accumulator<T>
    SettableTo<T>
    System.ICloneable
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.