MultiWelford

class passengersim.tracers.welford.MultiWelford(keys: list[str], aux: dict[str, Any] | set[str] = None)[source]

Bases: object

Initialize a MultiWelford object.

Parameters:
keys : list[str]

The keys of the input dict.

aux : dict[str, Any], optional

Auxiliary data to store with the statistics. This can be labels or other constant data, which is not tracked by the online statistics algorithm, but is useful for plotting or other analysis and is stored and returned with the statistics.

Methods

__init__(keys[, aux])

Initialize a MultiWelford object.

update(x)

Attributes

mean

n

sample_std_dev

sample_variance

std_dev

variance

__init__(keys: list[str], aux: dict[str, Any] | set[str] = None)[source]

Initialize a MultiWelford object.

Parameters:
keys : list[str]

The keys of the input dict.

aux : dict[str, Any], optional

Auxiliary data to store with the statistics. This can be labels or other constant data, which is not tracked by the online statistics algorithm, but is useful for plotting or other analysis and is stored and returned with the statistics.

update(x: dict[str, ArrayLike]) None[source]
property mean : dict[str, ArrayLike]
property variance : dict[str, ArrayLike]
property std_dev : dict[str, ArrayLike]
property sample_variance : dict[str, ArrayLike]
property sample_std_dev : dict[str, ArrayLike]
property n : int