Function random_normal

  • Standard normal variate using Box-Muller transform. Mean = 0, variance = 1.

    Parameters

    • n: number = 1

      the number of data points to generate.

    • sigma: number = 1

      the distribution standard deviation.

    • mu: number = 0

      the distribution mean.

    Returns Float64Array<ArrayBuffer>

    returns a normal pseudo-random number.