histogram1d
A module that provides functionality to construct a 1-dimentional histogram from an array object.
For help, contact HST Help Desk.
- class stsci.imagestats.histogram1d.histogram1d(arrayInput, nbins, binWidth, zeroValue)[source]
Populate a 1-dimensional histogram from 1D
numpy.nddata
array.- Parameters:
- arrayInputnumpy.nddata
2D array object
- nbinsint
Number of bins in the histogram.
- binWidthfloat
Width of 1 bin in desired units
- zeroValuefloat
Zero value for the histogram range
- property centers
Compute the array of bin center values
- property edges
Compute the array of bin center values