npm.nicfv.com

    Function rdist

    • Generate a population of normally-distributed floating-point numbers.

      Parameters

      • count: number

        The number of values to generate

      • mean: number = 0

        The mean of the population distribution

      • stdev: number = 1

        The standard deviation of the population

      Returns number[]

      A population of random floats

      const dataset = SMath.rdist(3); // [ 1.051..., -0.779..., -2.254... ]
      
    MMNEPVFCICPMFPCPTTAAATR