Noise
BufferedAlphaNoise
Create a buffer of alpha noise generator. Alpha can be in [0, 2].
Source code in cmtj/noise/__init__.pyi
3 4 5 6 7 8 9 10 11 12 13 |
|
fillBuffer()
Fill the buffer with the noise. This method is called only once.
Source code in cmtj/noise/__init__.pyi
7 8 9 |
|
tick()
Produce the next sample of the noise.
Source code in cmtj/noise/__init__.pyi
11 12 13 |
|
VectorAlphaNoise
Create a vector alpha noise generator. Alpha can be in [0, 2].
Source code in cmtj/noise/__init__.pyi
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
__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 |
cmtj.Axis
|
Axis, by default all axes are used |
cmtj.Axis.all
|
Source code in cmtj/noise/__init__.pyi
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
getPrevSample()
Get the previous sample of the noise in a vector form.
Source code in cmtj/noise/__init__.pyi
36 37 38 |
|
getScale()
Get the scale of the noise.
Source code in cmtj/noise/__init__.pyi
40 41 42 |
|
tickVector()
Get the next sample of the noise in a vector form.
Source code in cmtj/noise/__init__.pyi
45 46 47 |
|