Skip to content

Noise

BufferedAlphaNoise

Create a buffer of alpha noise generator. Alpha can be in [0, 2].

fillBuffer()

Fill the buffer with the noise. This method is called only once.

tick()

Produce the next sample of the noise.

VectorAlphaNoise

Create a vector alpha noise generator. Alpha can be in [0, 2].

__init__(bufferSize, alpha, std, scale, axis=cmtj.Axis.all)

Kasdin algorithm for vector alpha noise generation.

Parameters:

Name Type Description Default
bufferSize int

Buffer size

required
alpha float

Alpha parameter

required
std float

Standard deviation

required
scale float

Scale

required
axis Axis

Axis, by default all axes are used

all

getPrevSample()

Get the previous sample of the noise in a vector form.

getScale()

Get the scale of the noise.

tickVector()

Get the next sample of the noise in a vector form.