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();
1945
int cv =
_aggregator
.Mean.Length;
1955
Contracts.Assert(
_aggregator
.M2[i] >= 0);
1956
if (
_aggregator
.M2[i] == 0)
1962
var stdDev = _useSampleVariance ?
_aggregator
.StdDevSample[i] :
_aggregator
.StdDevPopulation[i];
1963
var variance = _useSampleVariance ?
_aggregator
.SampleVariance[i] :
_aggregator
.MeanSquareError[i];
1966
MeanVarUtils.ComputeScaleAndOffsetFixZero(
_aggregator
.Mean[i], variance, out scale[i], out offset[i]);
1968
MeanVarUtils.ComputeScaleAndOffset(
_aggregator
.Mean[i], stdDev, out scale[i], out offset[i]);
1994
int cv =
_aggregator
.Mean.Length;
2001
Contracts.Assert(
_aggregator
.M2[i] >= 0);
2002
if (
_aggregator
.M2[i] == 0 ||
_aggregator
.Counts[i] == 0)
2007
mean[i] = (TFloat)
_aggregator
.Mean[i];
2008
stddev[i] = (TFloat)(_useSampleVariance ?
_aggregator
.StdDevSample[i] :
_aggregator
.StdDevPopulation[i]);