1.2.3-SNAPSHOT permalink Arrow_down_16x16

binomial-distribution

incanter.distributions

  • (binomial-distribution)
  • (binomial-distribution n p)
Returns a Binomial distribution that implements the incanter.distributions.Distribution protocol.

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

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

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

Example:
(pdf (binomial-distribution 20 1/4) 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:409 top

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

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

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

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

  Example:
    (pdf (binomial-distribution 20 1/4) 10)"
  ([] (binomial-distribution 1 1/2))
  ([n p] (Binomial. n p (DoubleMersenneTwister.))))
Vars in incanter.distributions/binomial-distribution: defn
Used in 0 other vars

Comments top

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