Skip to main content
Version: Next

histogram

Callable

  • histogram(data: number[], binN: number): { binEdges: number[]; hist: number[] }

  • Compute the histogram of a set of data.


    Parameters

    • data: number[]

      Input data.

    • binN: number

      Defines the number of equal-width bins in the given range.

    Returns { binEdges: number[]; hist: number[] }

    The values of the histogram and the bin edges.

    • binEdges: number[]
    • hist: number[]