1 write to _aggregator
Microsoft.ML.Data (1)
Transforms\NormalizeColumnDbl.cs (1)
1661
_aggregator
= new MeanVarDblAggregator(1, useLog);
16 references to _aggregator
Microsoft.ML.Data (16)
Transforms\NormalizeColumnDbl.cs (16)
1685
_aggregator
.ProcessValue(in _buffer);
1691
_aggregator
.Finish();
1699
Contracts.Assert(
_aggregator
.M2[0] >= 0);
1700
if (
_aggregator
.M2[0] == 0)
1704
var stdDev = _useSampleVariance ?
_aggregator
.StdDevSample[0] :
_aggregator
.StdDevPopulation[0];
1705
var variance = _useSampleVariance ?
_aggregator
.SampleVariance[0] :
_aggregator
.MeanSquareError[0];
1708
MeanVarUtils.ComputeScaleAndOffsetFixZero(
_aggregator
.Mean[0], variance, out scale, out offset);
1710
MeanVarUtils.ComputeScaleAndOffset(
_aggregator
.Mean[0], stdDev, out scale, out offset);
1717
Contracts.Assert(
_aggregator
.M2[0] >= 0);
1718
if (
_aggregator
.M2[0] == 0 ||
_aggregator
.Counts[0] == 0)
1721
var stdDev = _useSampleVariance ?
_aggregator
.StdDevSample[0] :
_aggregator
.StdDevPopulation[0];
1723
return CdfColumnFunction.Create(Host, (TFloat)
_aggregator
.Mean[0], (TFloat)stdDev, _useLog);