1 write to _aggregator
Microsoft.ML.Data (1)
Transforms\NormalizeColumnDbl.cs (1)
1739_aggregator = new MeanVarDblAggregator(cv, useLog);
18 references to _aggregator
Microsoft.ML.Data (18)
Transforms\NormalizeColumnDbl.cs (18)
1768_aggregator.ProcessValue(in buffer); 1774_aggregator.Finish(); 1782int cv = _aggregator.Mean.Length; 1792Contracts.Assert(_aggregator.M2[i] >= 0); 1793if (_aggregator.M2[i] == 0) 1799var stdDev = _useSampleVariance ? _aggregator.StdDevSample[i] : _aggregator.StdDevPopulation[i]; 1800var variance = _useSampleVariance ? _aggregator.SampleVariance[i] : _aggregator.MeanSquareError[i]; 1803MeanVarUtils.ComputeScaleAndOffsetFixZero(_aggregator.Mean[i], variance, out scale[i], out offset[i]); 1805MeanVarUtils.ComputeScaleAndOffset(_aggregator.Mean[i], stdDev, out scale[i], out offset[i]); 1831int cv = _aggregator.Mean.Length; 1838Contracts.Assert(_aggregator.M2[i] >= 0); 1839if (_aggregator.M2[i] == 0 || _aggregator.Counts[i] == 0) 1844mean[i] = (TFloat)_aggregator.Mean[i]; 1845stddev[i] = (TFloat)(_useSampleVariance ? _aggregator.StdDevSample[i] : _aggregator.StdDevPopulation[i]);