Class AddVariance
This is the main class that adds variance expressions to a MetricsPlan.
It transforms a MetricsPlan by adding all necessary Expression's
to compute variance for a collection of output metrics, either by applying the
standard variance method in the case that those metrics are at the experiment
unit level, or via the delta method in the case that the metrics are below
the the experiment unit level.
Assembly: MetricSetTransformers.dll
public class AddVariance : LoggingTransformerBase, IMetricsPlanTransformer
Constructors
View Source
Construct an AddVariance object with a set of outcome metrics to expect.
Declaration
public AddVariance(ISet<string> outputMetrics = null, ILogger logger = null)
Parameters
Type |
Name |
Description |
ISet<String> |
outputMetrics |
The set of average output metric names, not table-qualified.
|
ILogger |
logger |
|
Methods
View Source
Declaration
protected virtual Expression CreateHistogramOperation(Expression expr)
Parameters
Returns
View Source
Declaration
public (ColumnReference count, ColumnReference stdev) GenerateStdDevExpressions(ColumnReference metric, Table aggregationTable, Expression obsCount, Expression stdDev)
Parameters
Returns
View Source
Return a new MetricsPlan with additional Expression's necessary
to compute variance for every metric. Determines if the variance computation is standard or
requires the Delta method. It does this by checking if the metric in question is at (in which
case standard variance) or below (in which case Delta method variance) the experiment unit level.
Declaration
public override MetricsPlan TransformWithTracing(MetricsPlan plan, IMetricsPlanValidator validator)
Parameters
Returns
Overrides
Implements
Extension Methods