1.2.3-SNAPSHOT permalink Arrow_down_16x16

uniform-distribution

incanter.distributions

  • (uniform-distribution)
  • (uniform-distribution min max)
Returns a Uniform distribution that implements the incanter.distributions.Distribution protocol.

Arguments:
min (default 0)
max (default 1)

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

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

Example:
(pdf (uniform-distribution 1.0 10.0) 5)

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:586 top

(defn uniform-distribution
  "Returns a Uniform distribution that implements the incanter.distributions.Distribution protocol.

  Arguments:
    min        (default 0)
    max        (default 1)

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

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

  Example:
    (pdf (uniform-distribution 1.0 10.0) 5)"
  ([] (uniform-distribution 0.0 1.0)) ; since "0 1" not implicitly promoted, otheriwse no matching ctor...
  ([min max] (DoubleUniform. min max (DoubleMersenneTwister.))))
Vars in incanter.distributions/uniform-distribution: defn max min
Used in 0 other vars

Comments top

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