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

    Function dgamma

    • Density of the gamma distribution. Equivalent to R's dgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE).

      Type Parameters

      Parameters

      Returns VectorResult<T>

      The density (or log density).

      RangeError if both rate and scale are given and scale is not 1 / rate.

      dgamma(1, 2);              // 0.36787944117144233
      dgamma(1, 2, { rate: 3 }); // 0.44808361531077556