• (join-with f dist1 dist2)
Returns the distribution of (f x y) with x from dist1 and y from dist2.

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 clojure/contrib/probabilities/finite_distributions.clj:151 top

(with-monad dist-m

  (defn join-with
    "Returns the distribution of (f x y) with x from dist1 and y from dist2."
    [f dist1 dist2]
    ((m-lift 2 f) dist1 dist2))

)
Vars in clojure.contrib.probabilities.finite-distributions/join-with: defn
Used in 0 other vars

Comments top

No comments for join-with. Log in to add a comment.