histogram1d

A module that provides functionality to construct a 1-dimentional histogram from an array object.

Author:Christopher Hanley (for help, contact HST Help Desk)
License:LICENSE
class stsci.imagestats.histogram1d.histogram1d(arrayInput, nbins, binWidth, zeroValue)[source]

Populate a 1-dimensional histogram from 1D numpy.nddata array.

Parameters:
arrayInput : numpy.nddata

2D array object

nbins : int

Number of bins in the histogram.

binWidth : float

Width of 1 bin in desired units

zeroValue : float

Zero value for the histogram range

getCenters()[source]

Returns histogram’s centers.