Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Histogram

Type parameters

  • T

Hierarchy

  • Histogram

Callable

  • __call(values: T[], index?: number): Bin<T>[]

Index

Methods

bins

frequency

  • frequency(): boolean
  • frequency(frequency: boolean): Histogram<T>

range

  • range(): function
  • range(range: function): Histogram<T>
  • Returns function

      • (values: T[], index: number): [number, number]
      • Parameters

        • values: T[]
        • index: number

        Returns [number, number]

  • Parameters

    • range: function
        • (values: T[], index: number): [number, number]
        • Parameters

          • values: T[]
          • index: number

          Returns [number, number]

    Returns Histogram<T>

value

  • value(): function
  • value(value: function): Histogram<T>
  • Returns function

      • (datum: T, index: number): number
      • Parameters

        • datum: T
        • index: number

        Returns number

  • Parameters

    • value: function
        • (datum: T, index: number): number
        • Parameters

          • datum: T
          • index: number

          Returns number

    Returns Histogram<T>

Generated using TypeDoc