hist1d SYNOPSIS Compute a 1-d histogram USAGE h = hist1d ([h,] pnts, grid [, &rev]) DESCRIPTION The `hist1d' function bins a set of points `pnts' into a 1-d histogram using bin-edges given by the grid argument. The optional last argument `&rev' is a reference to a variable whose value will be assigned the reverse-indices of the histogram. The first argument `h' is optional. If present and non-NULL, it will be used as the histogram buffer with new binned values added to it. That is, the following statements are equivalent: h = h + hist1d (pnts, grid); h = hist1d (h, pnts, grid); The value of the ith bin in the histogram is given by the number of values in the `pnts' array that satisfy `grid[i]<=X