**colored_noise_test**,
a C code which
calls colored_noise() to
generate sequences that simulate
1/f^alpha power law noise. This includes white noise (alpha = 0),
pink noise (alpha = 1) and brown noise or Brownian motion (alpha = 2),
but also values of alpha between 0 and 2.

The computer code and data files described and made available on this web page are distributed under the MIT license

colored_noise, a C code which generates samples of noise obeying a 1/f^alpha power law.

- colored_noise_test.c a sample calling program.
- colored_noise_test.sh runs all the tests.
- colored_noise_test.txt, the output file.

ALPHA is a sequence of 9 sets of data, for ALPHA = 0.00 to ALPHA = 2.00, each time computing a sequence of 128 values, and using the same sequence of random numbers. This makes the effect of ALPHA very clear.

- make_plots.m a MATLAB program which reads the "txt" files and makes plots.
- alpha_0.00.txt values for ALPHA = 0.00.
- alpha_0.00.png, a plot.
- alpha_0.25.txt values for ALPHA = 0.25.
- alpha_0.25.png, a plot.
- alpha_0.50.txt values for ALPHA = 0.50.
- alpha_0.50.png, a plot.
- alpha_0.75.txt values for ALPHA = 0.75.
- alpha_0.75.png, a plot.
- alpha_1.00.txt values for ALPHA = 1.00.
- alpha_1.00.png, a plot.
- alpha_1.25.txt values for ALPHA = 1.25.
- alpha_1.25.png, a plot.
- alpha_1.50.txt values for ALPHA = 1.50.
- alpha_1.50.png, a plot.
- alpha_1.75.txt values for ALPHA = 1.75.
- alpha_1.75.png, a plot.
- alpha_2.00.txt values for ALPHA = 2.00.
- alpha_2.00.png, a plot.