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(); 1862Contracts.Assert(_aggregator.M2[0] >= 0); 1863if (_aggregator.M2[0] == 0) 1867var stdDev = _useSampleVariance ? _aggregator.StdDevSample[0] : _aggregator.StdDevPopulation[0]; 1868var variance = _useSampleVariance ? _aggregator.SampleVariance[0] : _aggregator.MeanSquareError[0]; 1871MeanVarUtils.ComputeScaleAndOffsetFixZero(_aggregator.Mean[0], variance, out scale, out offset); 1873MeanVarUtils.ComputeScaleAndOffset(_aggregator.Mean[0], stdDev, out scale, out offset); 1880Contracts.Assert(_aggregator.M2[0] >= 0); 1881if (_aggregator.M2[0] == 0 || _aggregator.Counts[0] == 0) 1884var stdDev = _useSampleVariance ? _aggregator.StdDevSample[0] : _aggregator.StdDevPopulation[0]; 1886return CdfColumnFunction.Create(Host, (TFloat)_aggregator.Mean[0], (TFloat)stdDev, _useLog);