aryagraph.sim.ensemble.EnsembleResult#
- class aryagraph.sim.ensemble.EnsembleResult(times: ndarray, states: list[str], roles: dict[str, str], samples: ndarray, mean: dict[str, ndarray], std: dict[str, ndarray], quantiles: dict[str, dict[float, ndarray]], final_sizes: dict[str, ndarray], runs: int, n_nodes: int, model: str, params: dict, seed: int | None, seeds: list[int], results: list[SimulationResult] | None = None)[source]#
Bases:
objectCounts of each state across runs, on a common time grid.
- Variables:
times (numpy.ndarray) –
(P,)common grid,linspace(0, longest run, n_points).samples (numpy.ndarray) –
(runs, P, S)count of nodes in each state for every run.mean (dict[str, numpy.ndarray]) –
{state: (P,) array}holding the mean count of nodes in each state over the runs, at every grid time.std (dict[str, numpy.ndarray]) –
{state: (P,) array}holding the standard deviation of that count over the runs;stdusesddof=1(0 for a single run).quantiles (dict[str, dict[float, numpy.ndarray]]) –
{state: {q: (P,) array}}for each requested percentile q.final_sizes (dict[str, numpy.ndarray]) –
{state: (runs,) int array}holding each run’s count at its last frame.seeds (list[int]) – The integer seed of every run:
fn(..., seed=seeds[i])replays run i.results (list[aryagraph.sim.base.SimulationResult] | None) – The individual results when
keep=True, elseNone.