1 write to _aggregator
Microsoft.ML.Data (1)
Transforms\NormalizeColumnSng.cs (1)
1902_aggregator = new MeanVarSngAggregator(cv, useLog);
18 references to _aggregator
Microsoft.ML.Data (18)
Transforms\NormalizeColumnSng.cs (18)
1931_aggregator.ProcessValue(in buffer); 1937_aggregator.Finish(); 1945int cv = _aggregator.Mean.Length; 1955Contracts.Assert(_aggregator.M2[i] >= 0); 1956if (_aggregator.M2[i] == 0) 1962var stdDev = _useSampleVariance ? _aggregator.StdDevSample[i] : _aggregator.StdDevPopulation[i]; 1963var variance = _useSampleVariance ? _aggregator.SampleVariance[i] : _aggregator.MeanSquareError[i]; 1966MeanVarUtils.ComputeScaleAndOffsetFixZero(_aggregator.Mean[i], variance, out scale[i], out offset[i]); 1968MeanVarUtils.ComputeScaleAndOffset(_aggregator.Mean[i], stdDev, out scale[i], out offset[i]); 1994int cv = _aggregator.Mean.Length; 2001Contracts.Assert(_aggregator.M2[i] >= 0); 2002if (_aggregator.M2[i] == 0 || _aggregator.Counts[i] == 0) 2007mean[i] = (TFloat)_aggregator.Mean[i]; 2008stddev[i] = (TFloat)(_useSampleVariance ? _aggregator.StdDevSample[i] : _aggregator.StdDevPopulation[i]);