1 write to _aggregator
Microsoft.ML.Data (1)
Transforms\NormalizeColumnSng.cs (1)
1824
_aggregator
= new MeanVarSngAggregator(1, useLog);
16 references to _aggregator
Microsoft.ML.Data (16)
Transforms\NormalizeColumnSng.cs (16)
1848
_aggregator
.ProcessValue(in _buffer);
1854
_aggregator
.Finish();
1862
Contracts.Assert(
_aggregator
.M2[0] >= 0);
1863
if (
_aggregator
.M2[0] == 0)
1867
var stdDev = _useSampleVariance ?
_aggregator
.StdDevSample[0] :
_aggregator
.StdDevPopulation[0];
1868
var variance = _useSampleVariance ?
_aggregator
.SampleVariance[0] :
_aggregator
.MeanSquareError[0];
1871
MeanVarUtils.ComputeScaleAndOffsetFixZero(
_aggregator
.Mean[0], variance, out scale, out offset);
1873
MeanVarUtils.ComputeScaleAndOffset(
_aggregator
.Mean[0], stdDev, out scale, out offset);
1880
Contracts.Assert(
_aggregator
.M2[0] >= 0);
1881
if (
_aggregator
.M2[0] == 0 ||
_aggregator
.Counts[0] == 0)
1884
var stdDev = _useSampleVariance ?
_aggregator
.StdDevSample[0] :
_aggregator
.StdDevPopulation[0];
1886
return CdfColumnFunction.Create(Host, (TFloat)
_aggregator
.Mean[0], (TFloat)stdDev, _useLog);