Changeset 1464


Ignore:
Timestamp:
Sep 1, 2008, 11:39:55 PM (13 years ago)
Author:
Peter
Message:

fixing so we are testing ColumnNormalizer?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/normalization_test.cc

    r1463 r1464  
    3434using namespace theplu::yat;
    3535void test_centralizer(test::Suite&);
    36 void test_column_normalizer(test::Suite&);
     36void test_column_normalize(test::Suite&);
    3737void test_quantile_normalize(test::Suite&);
    3838
     
    4343
    4444  test_centralizer(suite);
     45  test_column_normalize(suite);
    4546  test_quantile_normalize(suite);
    4647
     
    6566void test_column_normalize(test::Suite& suite)
    6667{
    67   suite.err() << "Testing QuantileNormalizer\n";
     68  using namespace normalization;
     69  suite.err() << "Testing ColumnNormalizer\n";
    6870 
    6971  utility::Matrix m(2,2);
     
    7274  m(1,0) = 2;
    7375  m(1,1) = 4;
    74   normalization::QuantileNormalizer qn;
     76  ColumnNormalizer<Centralizer<> > qn;
    7577  qn(m, m);
    7678  suite.err() << "Testing m(0,0)\n";
    77   suite.add(suite.equal(m(0,0), 2));
     79  suite.add(suite.equal(m(0,0), -1));
    7880  suite.err() << "Testing m(0,1)\n";
    79   suite.add(suite.equal(m(0,1), 6));
     81  suite.add(suite.equal(m(0,1), 3));
    8082  suite.err() << "Testing m(1,0)\n";
    81   suite.add(suite.equal(m(1,0), 6));
     83  suite.add(suite.equal(m(1,0), 1));
    8284  suite.err() << "Testing m(1,1)\n";
    83   suite.add(suite.equal(m(1,1), 2));
     85  suite.add(suite.equal(m(1,1), -3));
    8486}
    8587
Note: See TracChangeset for help on using the changeset viewer.