The DIST function creates a rectangular array in which the value of each element is proportional to its frequency. This array may be used for a variety of purposes, including frequency-domain filtering and making pretty pictures.
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.