1.2.3-SNAPSHOT permalink Arrow_down_16x16

neg-binomial-distribution

incanter.distributions

  • (neg-binomial-distribution)
  • (neg-binomial-distribution size prob)
Returns a Negative binomial distribution that implements the incanter.distributions.Distribution protocol.

Arguments:
size (default 10)
prob (default 1/2)

See also:
Distribution, pdf, cdf, draw, support

References:
http://incanter.org/docs/parallelcolt/api/cern/jet/random/tdouble/NegativeBinomial.html
http://en.wikipedia.org/wiki/Negative_binomial_distribution

Example:
(pdf (neg-binomial-distribution 20 1/2) 10)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/distributions.clj:528 top

(defn neg-binomial-distribution
  "Returns a Negative binomial distribution that implements the incanter.distributions.Distribution protocol.

  Arguments:
    size       (default 10)
    prob       (default 1/2)

  See also:
    Distribution, pdf, cdf, draw, support

  References:
    http://incanter.org/docs/parallelcolt/api/cern/jet/random/tdouble/NegativeBinomial.html
    http://en.wikipedia.org/wiki/Negative_binomial_distribution

  Example:
    (pdf (neg-binomial-distribution 20 1/2) 10)"
  ([] (neg-binomial-distribution 10 1/2))
  ([size prob] (NegativeBinomial. size prob (DoubleMersenneTwister.))))
Vars in incanter.distributions/neg-binomial-distribution: defn
Used in 0 other vars

Comments top

No comments for neg-binomial-distribution. Log in to add a comment.