cleverly.validation.RelativeGaussianNoise#
- class cleverly.validation.RelativeGaussianNoise(standard_deviation: float = 0.1)[source]#
Declare mean-zero numeric noise relative to a sampled variable.
- Parameters:
- standard_deviation
float Nonnegative multiple of the variable’s bootstrap-sample standard deviation.
- standard_deviation
Methods#
- RelativeGaussianNoise.draw(rng: Generator, values: Any) ndarray[source]#
Draw noise on the declared bootstrap-sample scale.
- Parameters:
- rng
numpy.random.Generator Generator that supplies the draw.
- valuesarray_like
Sampled numeric variable whose population standard deviation sets the scale.
- rng
- Returns:
ndarrayOne mean-zero Gaussian draw per value.