matician - v2.0.0
    Preparing search index...

    Function z

    • Calculates the z-score of a value in a dataset.

      Parameters

      • x: number

        The value to standardize.

      • values: number[]

        The dataset to calculate mean and standard deviation from.

      Returns number

      The z-score.

      If dataset has fewer than 2 values or zero standard deviation.