smarts.sstudio.sstypes.distribution module

class smarts.sstudio.sstypes.distribution.Distribution(mean: float, sigma: float)[source]

A gaussian distribution used for randomized parameters.

mean: float

The mean value of the gaussian distribution.

sample()[source]

The next sample from the distribution.

sigma: float

The sigma value of the gaussian distribution.

class smarts.sstudio.sstypes.distribution.UniformDistribution(a: float, b: float)[source]

A uniform distribution, return a random number N such that a <= N <= b for a <= b and b <= N <= a for b < a.

a: float
b: float
sample()[source]

Get the next sample.