Ignore:
Timestamp:
Jan 19, 2009, 9:40:06 PM (13 years ago)
Author:
Peter
Message:

addresses #478 - preparing for weighted version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/normalization_test.cc

    r1736 r1737  
    4646void test_gauss_normalize(test::Suite&);
    4747void test_qquantile_normalize(test::Suite&);
     48void test_qquantile_normalize_weighted(test::Suite&);
    4849void test_quantile_normalize(test::Suite&);
    4950void test_row_normalize(test::Suite&);
     
    6061  test_column_normalize(suite);
    6162  test_qquantile_normalize(suite);
     63  test_qquantile_normalize_weighted(suite);
    6264  test_quantile_normalize(suite);
    6365  test_gauss_normalize(suite);
     
    165167             suite.equal_fix(m2(2,0),result2(1,1),1.0e-12) &&
    166168             suite.equal_fix(m2(3,0),result2(0,1),1.0e-12) );
     169}
     170
     171
     172void test_qquantile_normalize_weighted(test::Suite& suite)
     173{
     174  using namespace normalizer;
     175
     176  suite.err() << "Testing qQuantileNormalizer weighted\n";
     177
     178  std::vector<utility::DataWeight> vec;
     179  vec.reserve(100);
     180  for (size_t i=0; i<100; ++i)
     181    vec.push_back(utility::DataWeight(i, 1.0));
     182  //qQuantileNormalizer(vec.begin(), vec.end(), 5);
    167183}
    168184
Note: See TracChangeset for help on using the changeset viewer.