RelativeUniform

RelativeUniform(mean, deviation_fraction, *args, **kwargs)[source]

Create a Parameter with a uniform distribution defined by a fractional deviation.

The bounds are calculated as: mean * (1 +/- deviation_fraction)

Parameters:
  • mean (float | Sequence[float]) – The center (mean) of the distribution.

  • deviation_fraction (float | Sequence[float]) – The relative radius of the distribution bounds as a fraction of the mean. e.g., 0.1 results in bounds of [0.9 * mean, 1.1 * mean].

  • **kwargs – Additional keyword arguments passed to the Uniform constructor.

Return type:

Parameter