### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »

# scipy.stats.histogram2

`scipy.stats.``histogram2`(a, bins)

  histogram2(a,bins) – Compute histogram of a using divisions in bins

  Description:
    Count the number of times values from array a fall into numerical ranges defined by bins. Range x is given by bins[x] <= range_x < bins[x+1] where x =0,N and N is the length of the bins array. The last range is given by bins[N] <= range_N < infinity. Values less than bins[0] are not included in the histogram.
  Arguments:

    a – 1D array. The array of values to be divied into bins bins – 1D array. Defines the ranges of values to use during

    > histogramming.

  Returns:
    1D array. Each value represents the occurences for a given bin (range) of values.
  Caveat:
    This should probably have an axis argument that would histogram along a specific axis (kinda like matlab)

### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »