FoldOptLib.examples package

Submodules

FoldOptLib.examples.misc_functions module

FoldOptLib.examples.misc_functions.sample_random_dataset(bounding_box, sample_size=2, seed=180)[source]

Generate a random dataset of 3D coordinates within a specified model bounding box.

Parameters:
  • bounding_box (ndarray) – A 3x3 array where each row represents the minimum and maximum values of x and y coordinates.

  • sample_size (int, optional) – The number of random samples to generate. Default is 2.

  • seed (int, optional) – The seed for the random number generator for reproducibility. Default is 180.

Returns:

random_xyz – A sample_size x 3 array of random 3D coordinates within the specified bounding box.

Return type:

ndarray

Module contents