RCAIDE.Library.Methods.Utilities.latin_hypercube_sampling

latin_hypercube_sampling#

latin_hypercube_sampling(num_dimensions, num_samples, bounds=None, criterion='random')[source]#

Provides an array of chosen dimensionality and number of samples taken according to latin hypercube sampling. Bounds can be optionally specified.

Assumptions: None

Source: None

Inputs: num_dimensions [-] num_samples [-] bounds (optional) [-] Default is 0 to 1. Input value should be in the form (with numpy arrays)

(array([low_bnd_1,low_bnd_2,..]), array([up_bnd_1,up_bnd_2,..]))

criterion <string> Possible values: random and center. Determines if samples are

taken at the center of a bucket or randomly from within it.

Outputs: lhd [-] Array of samples

Properties Used: N/A