Function deviation

  • Compute the standard deviation, defined as the square root of the bias-corrected variance, of the given array of numbers.

    Parameters

    Returns number | undefined

  • Compute the standard deviation, defined as the square root of the bias-corrected variance, of the given array, using the given accessor to convert values to numbers.

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T>
    • accessor: ((datum, index, array) => number)
        • (datum, index, array): number
        • Parameters

          • datum: T
          • index: number
          • array: Iterable<T>

          Returns number

    Returns number | undefined