lenskit.data.accum.ValueStatAccumulator#

class lenskit.data.accum.ValueStatAccumulator#

Bases: lenskit.data.accum._proto.Accumulator[float | None, ValueStatistics]

An accumulator for single real values, computing basic statistics.

property values: numpy.ndarray[tuple[int], numpy.dtype[numpy.float64]]#
Return type:

numpy.ndarray[tuple[int], numpy.dtype[numpy.float64]]

__len__()#
Return type:

int

add(value)#

Add a single value to this accumulator.

Parameters:

value (float | None)

accumulate()#

Compute the accumulated value from this accumulator.

Return type:

ValueStatistics