]> gitweb.factorcode.org Git - factor.git/commitdiff
math.extras: change kelly criterion tests to use ratios.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 2 Apr 2015 15:03:49 +0000 (08:03 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 2 Apr 2015 15:03:49 +0000 (08:03 -0700)
extra/math/extras/extras-tests.factor

index 6fc69a25f2a4a5a6f04c216f1fd86e37066bffbd..da8288b6e47143c92c579040eff7f8163ca23b63 100644 (file)
@@ -158,6 +158,6 @@ IN: math.extras.test
     30 [1,b] [ mobius ] map
 ] unit-test
 
-{ 0.2 } [ 0.6 1 kelly ] unit-test
-{ 0.0 } [ 0.5 1 kelly ] unit-test
-{ -0.2 } [ 0.4 1 kelly ] unit-test
+{ 1/5 } [ 3/5 1 kelly ] unit-test
+{ 0 } [ 1/2 1 kelly ] unit-test
+{ -1/5 } [ 2/5 1 kelly ] unit-test