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();
1782
int cv =
_aggregator
.Mean.Length;
1792
Contracts.Assert(
_aggregator
.M2[i] >= 0);
1793
if (
_aggregator
.M2[i] == 0)
1799
var stdDev = _useSampleVariance ?
_aggregator
.StdDevSample[i] :
_aggregator
.StdDevPopulation[i];
1800
var variance = _useSampleVariance ?
_aggregator
.SampleVariance[i] :
_aggregator
.MeanSquareError[i];
1803
MeanVarUtils.ComputeScaleAndOffsetFixZero(
_aggregator
.Mean[i], variance, out scale[i], out offset[i]);
1805
MeanVarUtils.ComputeScaleAndOffset(
_aggregator
.Mean[i], stdDev, out scale[i], out offset[i]);
1831
int cv =
_aggregator
.Mean.Length;
1838
Contracts.Assert(
_aggregator
.M2[i] >= 0);
1839
if (
_aggregator
.M2[i] == 0 ||
_aggregator
.Counts[i] == 0)
1844
mean[i] = (TFloat)
_aggregator
.Mean[i];
1845
stddev[i] = (TFloat)(_useSampleVariance ?
_aggregator
.StdDevSample[i] :
_aggregator
.StdDevPopulation[i]);