]> gitweb.factorcode.org Git - factor.git/commitdiff
math.statistics: remove probabilities word, not really needed.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Sep 2012 15:32:30 +0000 (08:32 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Sep 2012 15:32:30 +0000 (08:32 -0700)
basis/math/statistics/statistics.factor

index 5cf4e2b56c3903e0a63724603ccbdfb8eeb5e83c..12dac7c6721ace21444713eef517eeb4b0dfc48b 100644 (file)
@@ -333,9 +333,6 @@ ALIAS: corr sample-corr
 : cum-max ( seq -- seq' )
     dup ?first [ max ] cum-map ;
 
-: probabilities ( seq -- probabilities )
-    [ histogram values ] [ length ] bi v/n ;
-
 : entropy ( probabilities -- n )
     dup sum '[ _ / dup log * ] map-sum neg ;