swiftemulator.design.random module
Generates a completely random design, by using the numpy random command.
- swiftemulator.design.random.create_cube(model_specification: ModelSpecification, number_of_samples: int, prefix_unique_id: Optional[str] = None) ModelParameters[source]
Creates a random hypercube model design.
- Parameters:
model_specification (ModelSpecification) – Model specification for which to create a latin hypercube from.
number_of_samples (int) – The number of samples to draw; this will be the number of input simulations that you wish to create.
prefix_unique_id (str, optional) – An optional prefix for the newly generated unique IDs. Defaults to no prefix.
- Returns:
model_parameters – A model values container with the prepared latin hypercube. Contains methods to visualise the output hypercube.
- Return type:
Notes
Uses numpy’s random methods to generate a completely random (i.e. no guarantee of a nice even distribution) hypercube