Changeset 1750


Ignore:
Timestamp:
Jan 26, 2009, 1:45:27 PM (12 years ago)
Author:
Peter
Message:

added a compilation test for qQN::operator() with weighted iterators. refs #478

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/normalization_test.cc

    r1740 r1750  
    180180  for (size_t i=0; i<100; ++i)
    181181    vec.push_back(utility::DataWeight(i, 1.0));
    182   qQuantileNormalizer(vec.begin(), vec.end(), 5);
     182  qQuantileNormalizer qQN(vec.begin(), vec.end(), 5);
     183  qQN(vec.begin(), vec.end(), vec.begin());
    183184}
    184185
  • trunk/yat/normalizer/qQuantileNormalizer.h

    r1740 r1750  
    208208                                 utility::unweighted_iterator_tag tag) const
    209209  {
     210    utility::check_iterator_is_unweighted(first);
     211    utility::check_iterator_is_unweighted(result);
    210212    size_t N = last-first;
    211213    utility::yat_assert<std::runtime_error>
Note: See TracChangeset for help on using the changeset viewer.