Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create an array with a specified slope in the power spectral density
ResourceFunction["ColoredNoise"][count,alpha] creates array of length count with a slope of alpha/2 in the Fourier domain. | |
ResourceFunction["ColoredNoise"][count,name] creates array of length count with a slope corresponding to the name noise color in the Fourier domain. | |
ResourceFunction["ColoredNoise"][{c1,c2,…},alpha] creates a multidimensional array of lengths c1,c2, …. |
Create 10 samples of white noise (slope zero):
In[1]:= |
Out[1]= |
Create 10 samples of pink noise (slope minus one):
In[2]:= |
Out[2]= |
Create violet noise in two dimensions:
In[3]:= |
Out[3]= |
Plot different noise slopes in the time domain:
In[4]:= |
Out[4]= |
Plot different noise slopes in the Fourier domain:
In[5]:= |
Out[5]= |
Create the same display for two dimensions:
In[6]:= |
Out[6]= |
All supported color keywords with their respective alpha applied:
In[7]:= |
Out[7]= |
The mean and standard deviation are always zero and one, respectively:
In[8]:= |
Out[8]= |
Turn off the normalization of the standard deviation:
In[9]:= |
Out[9]= |
Set the normalization of the standard deviation to a specific value:
In[10]:= |
Out[10]= |
Set the offset to a specific value:
In[12]:= |
Out[12]= |
Visualize the relation of alphas to the slopes in the power spectral density, the Allan deviation and the influence to the autocorrelation:
In[13]:= |
Out[14]= |
Create array with a specified shape of the Allan deviation, mimicking an active atomic clock:
In[15]:= |
Out[17]= |
The samples argument must be greater than two:
In[18]:= |
Out[18]= |
The alpha argument must be a known noise color or else a real number:
In[19]:= |
Out[19]= |
Noise with alpha values between -1 and -2 sound like a waterfall or turbulent flowing river:
In[20]:= |
Out[21]= |
Create soft 2D-noise maps by choosing low alpha values:
In[22]:= |
Out[22]= |
This work is licensed under a Creative Commons Attribution 4.0 International License