continuous_uniform_distribution#

Defines Continuous Uniform Distribution.

class ContinuousUniformDistribution(min_value: Union[float, int], max_value: Union[float, int])#

Bases: object

An object which samples values from a continuous uniform distributions.

min_value#

the minimal value of the distributions.

max_value#

the maximal value of the distributions.

Raises:
  • TypeError – If min_value is not float or int.

  • TypeError – If max_value is not float or int.

Inits ContinuousUniformDistribution with the provided arguments.

Parameters:
  • min_value – the minimal value of the distributions.

  • max_value – the maximal value of the distributions.

get_random_values(n: int) list[float]#

Samples an array with the given distribution.

Parameters:

n – The number of values.

Returns:

np.ndarray[float]

get_samples_from_hypercube(n: int) list[float]#

Samples n values from a hypercube.

Parameters:

n – the number of samples.

Returns:

Samples of the distributions, sampled from a hypercube.