experimentstats.py

class ExpSimStats(mean=None, std=None, max=None, min=None, med=None, q25=None, q75=None, mad=None)[source]

Bases: object

Dataclass holding summary statistics for a series of simulated experiments produced using the experiment simulator. All summary statistics are calculated over the ‘experiments’ dimension of the measurements array so the arrays of statistics have the shape=(n_sensors,n_field_comps, n_time_steps).

mean

Mean of each sensors measurement for the given field component and time step as an array with shape=(n_sensors,n_field_comps,n_time_steps).

std

Standard deviation of the sensor measurements for the given field component and time step as an array with shape=(n_sensors,n_field_comps, n_time_steps)

max

Maximum of the sensor measurements for the given field component and time step as an array with shape=(n_sensors,n_field_comps,n_time_steps)

min

Minmum of the sensor measurements for the given field component and time step as an array with shape=(n_sensors,n_field_comps,n_time_steps)

med

Median of the sensor measurements for the given field component and time step as an array with shape=(n_sensors,n_field_comps,n_time_steps)

__init__(mean=None, std=None, max=None, min=None, med=None, q25=None, q75=None, mad=None)
q25

Lower 25% quantile of the sensor measurements for the given field component and time step as an array with shape=(n_sensors,n_field_comps, n_time_steps)

q75

Upper 75% quantile of the sensor measurements for the given field component and time step as an array with shape=(n_sensors,n_field_comps, n_time_steps)

mad

Median absolute deviation of the sensor measurements for the given field component and time step as an array with shape=(n_sensors,n_field_comps, n_time_steps)

calc_exp_sim_stats(exp_data)[source]

Calculates summary statistics over all virtual experiments for all virtual sensor arrays.

Returns:

dict[tuple[str,...],ExperimentStats] – Dictionary of summary statistics data classes for the virtual experiments.

calc_sensor_array_stats(exp_data)[source]

Calculates summary statistics for a specific sensor array over all virual experiments.

Returns:

ExperimentStats – Summary statistics data class for the sensor array.