• Returns

    The standard deviation.

    Parameters

    • nums: number[]

      The numbers to compute the standard deviation of.

    • sample: boolean = false

      Whether to regard nums as a sample or as a population.

      • If true, computes the sample std (commonly denoted as s).
      • If false, computes population std (commonly denoted as σ).
      • false by default.

    Returns number

Generated using TypeDoc