Kronos IDL library

Library to retrieve and process CASSINI-RPWS-HFR data

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

./

hist_2d_w.pro


Routines

top source hist_2d_w

Image processing, statistics, probability

result = hist_2d_w(im1, im2, ww, MIN1=MIN1, MIN2=MIN2, MAX1=MAX1, MAX2=MAX2, BIN1=BIN1, BIN2=BIN2)

Return the density function (histogram) of two variables with weightings

Not usable with complex or string data.

Creates a combines array from the two variables, equal to the linear subscript in the resulting 2D histogram, then applies the standard histogram function.

Return value

The two dimensional density function of the two variables, a longword array of dimensions (m1, m2), where: m1 = Floor((max1-min1)/bin1) + 1 and m2 = Floor((max2-min2)/bin2) + 1 and Result(i,j) is equal to the number of sumultaneous occurences of an element of V1 falling in the ith bin, with the same element of V2 falling in the jth bin. Each occurences is multiplied by its respective weight value W.

Parameters

im1
im2
ww

Keywords

MIN1
MIN2
MAX1
MAX2
BIN1
BIN2

Author information

History:

Written by: DMS, Sept, 1992 Written DMS, Oct, 1995 Added MIN, MAX, BIN keywords following suggestion of Kevin Trupie, GSC, NASA/GSFC. CT, RSI, May 2001: Corrected MIN, MAX keywords so that the out-of-range values are ignored rather than truncated to be within range. Allow input arrays with negative values. BC, april 2005: added weight

Statistics

Lines:
44 lines
Cyclomatic complexity:
15
Modified cyclomatic complexity:
15

File attributes

Modification date: Fri Jan 9 19:59:00 2015
Lines: 44
Docformat: idl verbatim