New Noise: ShortPink
This commit is contained in:
parent
5b035a4ed8
commit
67db53e4a9
@ -31,6 +31,11 @@ class Pink_Noise(Colored_Noise):
|
||||
super().__init__(known_shape=known_shape, beta=1, num_samples=num_samples, random_state=random_state)
|
||||
|
||||
|
||||
class shortPink_Noise(Colored_Noise):
|
||||
def __init__(self, known_shape=None, num_samples=1000, random_state=None):
|
||||
super().__init__(known_shape=known_shape, beta=1, num_samples=num_samples, random_state=random_state)
|
||||
|
||||
|
||||
class White_Noise():
|
||||
def __init__(self, known_shape=None):
|
||||
self.known_shape = known_shape
|
||||
|
@ -53,10 +53,11 @@ class Avaible_Noise_Funcs(Enum):
|
||||
HARMONICPERLIN = 4
|
||||
DIRTYPERLIN = 5
|
||||
SDE = 6
|
||||
SHORTPINK = 7
|
||||
|
||||
def get_func(self):
|
||||
# stil aaaaaaaa
|
||||
return [noise.White_Noise, noise.Pink_Noise, noise.Colored_Noise, noise.Perlin_Noise, noise.Harmonic_Perlin_Noise, noise.Dirty_Perlin_Noise, noise.SDE_Noise][self.value]
|
||||
return [noise.White_Noise, noise.Pink_Noise, noise.Colored_Noise, noise.Perlin_Noise, noise.Harmonic_Perlin_Noise, noise.Dirty_Perlin_Noise, noise.SDE_Noise, noise.shortPink_Noise][self.value]
|
||||
|
||||
|
||||
def cast_to_enum(inp, Class):
|
||||
|
Loading…
Reference in New Issue
Block a user