Skip to content

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
14
15
class BufferedAlphaNoise:
    """Create a buffer of alpha noise generator. Alpha can be in [0, 2]."""

    def __init__(
        self, bufferSize: int, alpha: float, std: float, scale: float
    ) -> None: ...
    def fillBuffer(self) -> None:
        """Fill the buffer with the noise. This method is called only once."""
        ...
    def tick(self) -> float:
        """Produce the next sample of the noise."""
        ...
    pass

fillBuffer()

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

Source code in cmtj/noise/__init__.pyi
 9
10
11
def fillBuffer(self) -> None:
    """Fill the buffer with the noise. This method is called only once."""
    ...

tick()

Produce the next sample of the noise.

Source code in cmtj/noise/__init__.pyi
12
13
14
def tick(self) -> float:
    """Produce the next sample of the noise."""
    ...

VectorAlphaNoise

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

Source code in cmtj/noise/__init__.pyi
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class VectorAlphaNoise:
    """Create a vector alpha noise generator. Alpha can be in [0, 2]."""

    def __init__(
        self,
        bufferSize: int,
        alpha: float,
        std: float,
        scale: float,
        axis: cmtj.Axis = cmtj.Axis.all,
    ) -> None: ...
    def getPrevSample(self) -> cmtj.CVector:
        """Get the previous sample of the noise in a vector form."""
        ...
    def getScale(self) -> float:
        """Get the scale of the noise."""
        ...
    def tick(self) -> float: ...
    def tickVector(self) -> cmtj.CVector:
        """Get the next sample of the noise in a vector form."""
        ...
    pass

getPrevSample()

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

Source code in cmtj/noise/__init__.pyi
28
29
30
def getPrevSample(self) -> cmtj.CVector:
    """Get the previous sample of the noise in a vector form."""
    ...

getScale()

Get the scale of the noise.

Source code in cmtj/noise/__init__.pyi
31
32
33
def getScale(self) -> float:
    """Get the scale of the noise."""
    ...

tickVector()

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

Source code in cmtj/noise/__init__.pyi
35
36
37
def tickVector(self) -> cmtj.CVector:
    """Get the next sample of the noise in a vector form."""
    ...