2.2.3.1. sdepy.montecarlo.update

montecarlo.update(sample, axis=-1)[source]

Add the given sample to the montecarlo simulation.

Combines the given sample data with summary statistics obtained (if any) from former samples to which the montecarlo instance was exposed at instantiation and at previous calls to this method. Updates cumulated statistics and histograms accordingly.

Parameters:
sample : array-like

Data set to be summarized.

axis : integer, optional

Axis of the given sample enumerating single data points (paths, or different realizations of a simulated process or event). Defaults to the last axis of the sample.