Class MeanVarianceAccumulatorSkipNaNs
Decorator of MeanVarianceAccumulator that does not add if any input is NaN.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Math
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class MeanVarianceAccumulatorSkipNaNs : Accumulator<double>, SettableTo<MeanVarianceAccumulatorSkipNaNs>, ICloneable
Properties
Count
Sample count
Declaration
public double Count { get; }
Property Value
Type | Description |
---|---|
Double |
Mean
The sample mean
Declaration
public double Mean { get; }
Property Value
Type | Description |
---|---|
Double |
Variance
Sample variance
Declaration
public double Variance { get; }
Property 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 weight)
Parameters
Type | Name | Description |
---|---|---|
Double | x | |
Double | weight |
Add(Double, Double, Double)
Adds a noisy observation.
Declaration
public void Add(double x, double noiseVariance, double weight)
Parameters
Type | Name | Description |
---|---|---|
Double | x | |
Double | noiseVariance | |
Double | weight |
Clear()
Clears the accumulator
Declaration
public void Clear()
Clone()
Returns a clone of this estimator.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object |
SetTo(MeanVarianceAccumulatorSkipNaNs)
Sets the state of this estimator from the specified estimator.
Declaration
public void SetTo(MeanVarianceAccumulatorSkipNaNs value)
Parameters
Type | Name | Description |
---|---|---|
MeanVarianceAccumulatorSkipNaNs | value |