11.2.5. rheia.UQ.pce.RandomExperiment

class rheia.UQ.pce.RandomExperiment(my_data, objective_position)

RandomExperiment objects include information on the random samples, such as dimension, scaled and unscaled values. In addition, the samples can be evaluated and the deterministic model outputs are stored.

Parameters
  • my_data (object) – Data object with information on the uncertain parameters.

  • objective_position (int) – Index of the quantity of interest in the list of available model outputs.

__init__(my_data, objective_position)

Methods

__init__(my_data, objective_position)

create_distributions()

Create the distributions, polynomial distributions and polynomial types based on the stochastic design space.

create_only_samples(create_only_samples)

Add the generated samples to the samples file.

create_samples([size])

Generate the samples for model evaluations.

create_samples_file()

Creating the file that saved the input samples and model outputs.

evaluate(eval_func, params)

Evaluate the samples in the model and store the samples and outputs in the samples file.

n_terms()

This method sets the number of samples to 2*(p+n)!/p!n!, i.e the number of terms in the full PC expansion of order p in n random variables.

read_previous_samples(create_only_samples)

Read the previously evaluated samples and store them for future PCE construction.

read_stoch_parameters([var_values])

Read in the stochastic design space and save the information in a dictionary