Mean#

class frouros.utils.stats.Mean#

Incremental mean class.

property mean: float#

Mean property.

Returns:

mean value

Return type:

float

property num_values: int#

Number of values property.

Returns:

number of values

Return type:

int

update(value: Union[int, float]) None#

Update the mean value sequentially.

Parameters:

value (int) – value to use to update the mean

Raises:

TypeError – Type error exception

static incremental_op(value: Union[int, float], element: Union[int, float], size: int) float#

Incremental operation.

get() float#

Get method.