Class PointMassEstimator<T>
Estimates a point mass distribution from a sample or point mass distribution.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class PointMassEstimator<T> : Estimator<PointMass<T>>, Accumulator<T>, Accumulator<PointMass<T>>
Type Parameters
Name | Description |
---|---|
T | Sample type |
Methods
Add(T)
Adds an item to the estimator
Declaration
public void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item |
Add(PointMass<T>)
Adds an item to the estimator
Declaration
public void Add(PointMass<T> item)
Parameters
Type | Name | Description |
---|---|---|
PointMass<T> | item |
Clear()
Clears the accumulator
Declaration
public void Clear()
GetDistribution(PointMass<T>)
Get the estimated distribution
Declaration
public PointMass<T> GetDistribution(PointMass<T> result)
Parameters
Type | Name | Description |
---|---|---|
PointMass<T> | result |
Returns
Type | Description |
---|---|
PointMass<T> | The resulting estimated distribution |