Class BetaEstimator
Estimates a Beta distribution from samples.
Implements
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class BetaEstimator : Estimator<Beta>, Accumulator<Beta>, Accumulator<double>, SettableTo<BetaEstimator>, ICloneable
Constructors
BetaEstimator()
Creates a new Beta estimator
Declaration
public BetaEstimator()
Fields
mva
Where to accumulate means and variances
Declaration
public MeanVarianceAccumulator mva
Field Value
Type | Description |
---|---|
MeanVarianceAccumulator |
Methods
Add(Beta)
Adds a Beta item to the estimator
Declaration
public void Add(Beta distribution)
Parameters
Type | Name | Description |
---|---|---|
Beta | distribution | A Beta instance |
Add(Beta, Double)
Adds a Beta item to the estimator
Declaration
public void Add(Beta distribution, double weight)
Parameters
Type | Name | Description |
---|---|---|
Beta | distribution | A Beta instance |
Double | weight |
Add(Double)
Adds a sample to the estimator
Declaration
public void Add(double value)
Parameters
Type | Name | Description |
---|---|---|
Double | value |
Add(Double, Double)
Adds a sample to the estimator
Declaration
public void Add(double value, double weight)
Parameters
Type | Name | Description |
---|---|---|
Double | value | |
Double | weight |
Clear()
Clears the estimator
Declaration
public void Clear()
Clone()
Returns a copy of this estimator.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object |
GetDistribution(Beta)
Gets the estimated distribution
Declaration
public Beta GetDistribution(Beta result)
Parameters
Type | Name | Description |
---|---|---|
Beta | result | Where to put the estimated distribution |
Returns
Type | Description |
---|---|
Beta | The estimated distribution |
SetTo(BetaEstimator)
Sets the state of this estimator from the supplied estimator.
Declaration
public void SetTo(BetaEstimator value)
Parameters
Type | Name | Description |
---|---|---|
BetaEstimator | value |