pmcore::routines::initialization::latin

Function generate

Source
pub fn generate(
    parameters: &Parameters,
    points: usize,
    seed: usize,
) -> Result<Theta>
Expand description

Generates an instance of Theta using Latin Hypercube Sampling.

§Arguments

  • parameters - The Parameters struct, which contains the parameters to be sampled.
  • points - The number of points to generate, i.e. the number of rows in the matrix.
  • seed - The seed for the Sobol sequence generator.

§Returns

Theta, a structure that holds the support point matrix