(create-distribution-form [cls params])creates the defn form for a particular distribution
(create-distribution-form [net.sourceforge.jdistlib.Wilcoxon [:m :n]]) => '(defn wilcoxon [m n] (net.sourceforge.jdistlib.Wilcoxon. m n))
creates the `defn` form for a particular distribution
(create-distribution-form [net.sourceforge.jdistlib.Wilcoxon [:m :n]])
=> '(defn wilcoxon [m n]
(net.sourceforge.jdistlib.Wilcoxon. m n))(create-distribution-forms)(create-distribution-forms dists)helper for create-distributions
(create-distribution-forms) => vector?
helper for `create-distributions` (create-distribution-forms) => vector?
(create-distributions)creates all methods for constructing distributions
(create-distributions)
creates all methods for constructing distributions (create-distributions)
(cumulative dist x)returns the cumulative density for the distribution
(cumulative (laplace 1 2) 4) => 0.888434919925785
(cumulative (binomial 10 0.3) [1 2 3]) => [0.14930834590000003 0.38278278639999974 0.6496107184000002]
returns the cumulative density for the distribution (cumulative (laplace 1 2) 4) => 0.888434919925785 (cumulative (binomial 10 0.3) [1 2 3]) => [0.14930834590000003 0.38278278639999974 0.6496107184000002]
(fn-name cls)creates a function name based on class
(fn-name net.sourceforge.jdistlib.evd.Order) => "order"
creates a function name based on class (fn-name net.sourceforge.jdistlib.evd.Order) => "order"
(probability dist x)returns the probability density for the distribution
(probability (laplace 1 2) 4) => 0.05578254003710745
(probability (binomial 10 0.3) [1 2 3]) => (contains [(approx 0.1210608) (approx 0.2334744) (approx 0.2668279)])
returns the probability density for the distribution
(probability (laplace 1 2) 4)
=> 0.05578254003710745
(probability (binomial 10 0.3) [1 2 3])
=> (contains [(approx 0.1210608)
(approx 0.2334744)
(approx 0.2668279)])(random-sample dist)gives a random sample from distribution
(random-sample (laplace 1 2)) ;; 1.9528692108205805 => number?
gives a random sample from distribution (random-sample (laplace 1 2)) ;; 1.9528692108205805 => number?
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |