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(); 1699Contracts.Assert(_aggregator.M2[0] >= 0); 1700if (_aggregator.M2[0] == 0) 1704var stdDev = _useSampleVariance ? _aggregator.StdDevSample[0] : _aggregator.StdDevPopulation[0]; 1705var variance = _useSampleVariance ? _aggregator.SampleVariance[0] : _aggregator.MeanSquareError[0]; 1708MeanVarUtils.ComputeScaleAndOffsetFixZero(_aggregator.Mean[0], variance, out scale, out offset); 1710MeanVarUtils.ComputeScaleAndOffset(_aggregator.Mean[0], stdDev, out scale, out offset); 1717Contracts.Assert(_aggregator.M2[0] >= 0); 1718if (_aggregator.M2[0] == 0 || _aggregator.Counts[0] == 0) 1721var stdDev = _useSampleVariance ? _aggregator.StdDevSample[0] : _aggregator.StdDevPopulation[0]; 1723return CdfColumnFunction.Create(Host, (TFloat)_aggregator.Mean[0], (TFloat)stdDev, _useLog);