Class MeanVarianceAccumulator2
Class for accumulating weighted noisy scalar observations, and computing sample count, mean, and variance
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Math
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class MeanVarianceAccumulator2 : SettableTo<MeanVarianceAccumulator2>, ICloneable
Fields
LogCount
Sample count
Declaration
public double LogCount
Field Value
Type | Description |
---|---|
Double |
Mean
The sample mean
Declaration
public double Mean
Field Value
Type | Description |
---|---|
Double |
Variance
Sample variance
Declaration
public double Variance
Field Value
Type | Description |
---|---|
Double |
Methods
Add(Double)
Adds an observation
Declaration
public void Add(double x)
Parameters
Type | Name | Description |
---|---|---|
Double | x |
Add(Double, Double)
Adds a weighted observation.
Declaration
public void Add(double x, double logWeight)
Parameters
Type | Name | Description |
---|---|---|
Double | x | |
Double | logWeight |
Add(Double, Double, Double)
Adds a noisy observation.
Declaration
public void Add(double x, double noiseVariance, double logWeight)
Parameters
Type | Name | Description |
---|---|---|
Double | x | |
Double | noiseVariance | |
Double | logWeight |
Clear()
Clears the accumulator
Declaration
public void Clear()
Clone()
Returns a clone of this estimator.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object |
SetTo(MeanVarianceAccumulator2)
Sets the state of this estimator from the specified estimator.
Declaration
public void SetTo(MeanVarianceAccumulator2 value)
Parameters
Type | Name | Description |
---|---|---|
MeanVarianceAccumulator2 | value |