diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-14 10:46:41 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-14 10:46:41 +0200 |
commit | 87643923d809614805b007b447c0a0d0962c179d (patch) | |
tree | 917a70f3261580ea46e988e31bbe72bb2046e466 /transform.rb | |
parent | 9ac725fe02df34b83e9064d0e88ed7e06bb425cc (diff) |
PCA test v2
Diffstat (limited to 'transform.rb')
-rw-r--r-- | transform.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/transform.rb b/transform.rb index a753129..820bdd2 100644 --- a/transform.rb +++ b/transform.rb @@ -6,7 +6,6 @@ require 'test/unit' class TransformTest < Test::Unit::TestCase - def test_pca d = GSL::Matrix.alloc([1,1.1,2,1.9,3,3.3], 3, 2) @@ -15,7 +14,7 @@ class TransformTest < Test::Unit::TestCase rd = GSL::Matrix.alloc([1.05098674493306, 1.043223563717, 1.91019734898661, 2.0, 3.03881590608033, 3.256776436283], 3, 2) # Lossy - 2.times do + 2.times do # repeat to ensure idempotency pca = OpenTox::Algorithm::Transform::PCA.new(d, 0.05) assert_equal pca.data_matrix, d assert_equal pca.data_transformed_matrix, td |