density(x,
nBins,
range=None,
steps=1,
hist=0)
| source code |
returns the normalized histogram of x:
density( data, nBins [,range=None, steps=1, hist=0|1] ) -> array
-
- Parameters:
x ([any] ) - data list or array
nBins (int ) - number of bins
range ((float, float) OR None ) - data range to create histogram from (min val, max val)
steps (1|0 ) - 1: histogram appears as a discrete graph (default 1)
hist (1|0 ) - 0: normalize histogram (default 0)
- Returns:
array
- array (2 x len(data) ) with start of bin and witdh of bin.
|