<commit_before>(function(define) {'use strict';
define(function(require) {

   /**
    * Provides density function, cumulative distribution function,
    * quantile function, and random number generator
    * for the Gamma distribution.
    *
    * @module distributions.gamma
    * @memberof distributions
    * @author <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
    */
   var lpoisson, gratio, exponential, rgen;

   lpoisson = require('../basicFunc/lpoisson').lpoisson;
   gratio = require('../basicFunc/gratio');
   exponential = require('../rgen/exponential');
   rgen = require('../rgen/rgen');


   // helper function
   function dgammaLog(a, s) {
      if (a < 1) {
         return function(x) {
            if (x === 0) { return Infinity; }
            return Math.log(a / x) + lpoisson(x / s)(a);
         };<commit_msg>Expand gamma distribution doc. Ref #78<commit_after>(function(define) {'use strict';
define(function(require) {

   /**
    * Provides density function, cumulative distribution function,
    * quantile function, and random number generator
    * for the Gamma distribution, which is defined by the pdf
    * $$p(x;a,s) = \frac{1}{s^a\Gamma(a)}x^{a-1}e^{-x/s}$$
    * where $x\in(0,\infty)$. The parameter $a>0$ is called the *shape*
    * and the parameter $s>0$ the *scale*.
    *
    * `dgamma` provides access to this probability density function,
    * `pgamma` to the cumulative density, `qgamma` to the quantile (inverse cdf)
    * and `rgamma` to random deviates.
    *
    * Finally, you can use `gammadistr` to obtain an object
    * representing the distribution for some values of the parameters.
    * @module distributions.gamma
    * @memberof distributions
    * @author <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
    */
   var lpoisson, gratio, exponential, rgen;

   lpoisson = require('../basicFunc/lpoisson').lpoisson;
   gratio = require('../basicFunc/gratio');
   exponential = require('../rgen/exponential');
   rgen = require('../rgen/rgen');


   // helper function
   function dgammaLog(a, s) {
      if (a < 1) {
         return function(x) {
            if (x === 0) { return Infinity; }
            return Math.log(a / x) + lpoisson(x / s)(a);
         };
{'fraction_non_alphanumeric': 0.14838416021847975, 'fraction_numerical': 0.005006827492034593, 'mean_word_length': 2.856140350877193, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2249554', 'n_tokens_mistral': 703, 'n_tokens_neox': 677, 'n_words': 194}