sampler
Sampler(d, n)
¶
a class that generates samples based on Sobol sequences, which fills the space in a highly uniform way and guarantees a better coverage of the sampling space. Attributes: dimensions (int): an integer representing the dimensions of each sample number_of_samples (int): an integer representing the number of the generated samples
generate_samples(ranges)
¶
generates samples within the provided ranges array, the length of the ranges should equal to self.dimensions
Args: ranges (float[]): an array that contains the range that each sample dimension should fall within Returns: distance (float): the RMSE between the actaul data value and the mesh's agg_value.