quri_parts.core.utils.statistics module#

count_mean(value_counts)#

Calculate a mean value from count statistics (mapping from values to counts).

Parameters:

value_counts (Mapping[_T, int | float]) –

Return type:

_T

count_var(value_counts)#

Calculate a sample variance from count statistics (mapping from values to counts).

Parameters:

value_counts (Mapping[_T, int | float]) –

Return type:

float