rStats.js v1.3.0
    Preparing search index...

    Function rlogis

    • Random numbers from the logistic distribution. Equivalent to R's rlogis().

      Parameters

      • n: number

        Number of values to generate (fractions are truncated, as in R).

      • options: { location?: number; scale?: number } = {}
        • Optionallocation?: number

          Location. Default 0.

        • Optionalscale?: number

          Scale. Default 1.

      Returns number[]

      An array of n values; NaN for invalid parameters.

      setSeed(1);
      rlogis(2, { location: 0, scale: 1 }); // [-1.017531, -0.523116]