1.2.3-SNAPSHOT permalink Arrow_down_16x16

discordant-pairs

incanter.stats

  • (discordant-pairs a b)

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/stats.clj:2838 top

(defn discordant-pairs
"http://en.wikipedia.org/wiki/Discordant_pairs"
[a b]
 (let [tuples (zipmap a b)
       ps (pairs tuples tuples)]
   (count (filter discordant? ps))))
Vars in incanter.stats/discordant-pairs: count defn filter let
Used in 0 other vars

Comments top

No comments for discordant-pairs. Log in to add a comment.