Ignore:
Timestamp:
Aug 25, 2008, 3:54:18 PM (13 years ago)
Author:
Peter
Message:

refs #416 moving quantile normalizer to new dir. Also moved the algorithm to a class (rather than free function).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/utility_test.cc

    r1385 r1432  
    3737
    3838using namespace theplu::yat;
    39 void test_quantile_normalize(test::Suite&);
    4039void test_inverse(test::Suite&);
    4140
     
    151150  }
    152151
    153   test_quantile_normalize(suite);
    154152  test_inverse(suite);
    155153
     
    218216 
    219217}
    220 
    221 
    222 void test_quantile_normalize(test::Suite& suite)
    223 {
    224   suite.err() << "Testing quantile normalization\n";
    225  
    226   utility::Matrix m(2,2);
    227   m(0,0) = 0;
    228   m(0,1) = 10;
    229   m(1,0) = 2;
    230   m(1,1) = 4;
    231   utility::quantile_normalize(m);
    232   suite.err() << "Testing m(0,0)\n";
    233   suite.add(suite.equal(m(0,0), 2));
    234   suite.err() << "Testing m(0,1)\n";
    235   suite.add(suite.equal(m(0,1), 6));
    236   suite.err() << "Testing m(1,0)\n";
    237   suite.add(suite.equal(m(1,0), 6));
    238   suite.err() << "Testing m(1,1)\n";
    239   suite.add(suite.equal(m(1,1), 2));
    240 
    241 }
Note: See TracChangeset for help on using the changeset viewer.