gemseo_umdo

Hide inherited members

monte_carlo_sampler module

A Monte Carlo sampler.

class gemseo_umdo.monte_carlo_sampler.MonteCarloSampler(input_space)[source]

Bases: object

A Monte Carlo sampler taking advantage of the vectorized functions.

Parameters:

input_space (DesignSpace) – The input space on which to sample the functions.

add_function(function, is_vectorized=True)[source]

Add a function to sample.

Parameters:
Return type:

None

property input_history: ndarray[Any, dtype[float]]

The history of the function inputs.

property output_history: ndarray[Any, dtype[float]]

The history of the function outputs.