MeanAggregator#

class tpcp.validate.MeanAggregator(_value: T)[source]#

Aggregator that calculates the mean of the values.

Methods

aggregate(values, datapoints)

Aggregate a sequence of floats by taking the mean.

get_value()

Return the value wrapped by aggregator.

__init__(_value: T) None[source]#
classmethod aggregate(values: Sequence[float], datapoints: Sequence[Dataset]) float[source]#

Aggregate a sequence of floats by taking the mean.

get_value() T[source]#

Return the value wrapped by aggregator.