Previous IDL Reference Guide: Procedures and Functions Next

DIST

Syntax | Return Value |Arguments | Keywords | Examples | Version History | See Also

The DIST function creates an array in which each array element value is proportional to its frequency. This array may be used for a variety of purposes, including frequency-domain filtering.

This routine is written in the IDL language. Its source code can be found in the file dist.pro in the lib subdirectory of the IDL distribution.

Syntax

Result = DIST(N [, M])

Return Value

Returns a rectangular array in which the value of each element is proportional to its frequency.

Arguments

N

The number of columns in the resulting array.

M

The number of rows in the resulting array. If M is omitted, the resulting array will be N by N.

Keywords

None.

Examples

; Display the results of DIST as an image:  
TVSCL, DIST(100)  

Version History

Original
Introduced

See Also

FFT

  IDL Online Help (March 06, 2007)