colored_noise_test


colored_noise_test a MATLAB code which calls colored_noise(), which generates 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.

Licensing:

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

Related Data and Programs:

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

Source Code:

COLORED_NOISE_TEST01 generates 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.

COLORED_NOISE_TEST02 generates 5 plots, with ALPHA = 0.0, 0.5, 1.0, 1.5 and 2.0, showing 5 realizations, and the average of 200.


Last revised on 28 February 2012.