diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-11-14 16:28:43 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-11-14 16:28:43 +0100 |
commit | 5cfa964fa28e79f8aa129ddd96362bc7d47af3e1 (patch) | |
tree | 89fa7d1ddd977becc74aae55f447b28f6789bf8f /algorithm.rb | |
parent | adc053d9e5592039d7b53b08477b781419356750 (diff) |
Integrated PCR/PLSR tests
Diffstat (limited to 'algorithm.rb')
-rw-r--r-- | algorithm.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/algorithm.rb b/algorithm.rb index fdc311c..9f56387 100644 --- a/algorithm.rb +++ b/algorithm.rb @@ -129,12 +129,12 @@ class AlgorithmTest < Test::Unit::TestCase maxcols = 2 res1 = OpenTox::Algorithm::Neighbors::pcr(:n_prop => n_prop, :q_prop => q_prop, :acts => acts, :maxcols => maxcols) - #puts res1 - #maxcols = 1 - #res2 = OpenTox::Algorithm::Neighbors::pcr(:n_prop => n_prop, :q_prop => q_prop, :acts => acts, :maxcols => maxcols) - #puts res2 - assert_in_delta res1, 1.51255020120858, 10E-06 - #assert_equal res1, res2 + + maxcols = 1 + res2 = OpenTox::Algorithm::Neighbors::pcr(:n_prop => n_prop, :q_prop => q_prop, :acts => acts, :maxcols => maxcols) + + assert_in_delta res1, 1.4958008960423, 10E-06 + assert_equal res1, res2 end |