From 5cfa964fa28e79f8aa129ddd96362bc7d47af3e1 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Mon, 14 Nov 2011 16:28:43 +0100 Subject: Integrated PCR/PLSR tests --- algorithm.rb | 12 ++++++------ 1 file 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 -- cgit v1.2.3