mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

vis/util/

mg_pinknoise.pro

includes main-level program

Routines

top mg_pinknoise

result = mg_pinknoise(m, n [, power=double])

Generates 1/f^a noise. By default, it generates 1/f noise i.e. pink noise.

Return value

dblarr(m, n)

Parameters

m in required type=long

size of first dimension

n in required type=long

size of second dimension

Keywords

power in optional type=double default=1.0

the a in 1/f^a noise

Examples

This generates pink noise:

tvscl, mg_pinknoise(512, 256)
Pink noise looks like:

Other 1/f^a noise can be generated using the POWER keyword:

tvscl, mg_pinknoise(512, 256, power=1.8)
This noise looks like:

For POWER=2.4:

File attributes

Modification date: Wed May 14 15:07:15 2014
Lines: 14
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.