Changeset 1751


Ignore:
Timestamp:
Jan 26, 2009, 5:41:21 PM (12 years ago)
Author:
Peter
Message:

refs #478 - updated docs and simplified call to data_iterator and weight_iterator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/normalizer/qQuantileNormalizer.h

    r1750 r1751  
    4848     same). Also, within each column the rank of an element is not
    4949     changed.
    50 
    51      There is currently no weighted version of qQuantileNormalizer
    5250
    5351     The normalization goes like this
     
    9694
    9795       It is possible to normalize "in place"; it is permissible for
    98        \a matrix and \a result to reference the same Matrix.
    99 
    100        \note dimensions of \a matrix and \a result must match.
     96       \a first and \a result to be the same.
    10197     */
    10298    template<typename RandomAccessIterator1, typename RandomAccessIterator2>
     
    107103
    108104  /**
    109      \brief Partition a vector of data into equal sizes.
     105     \brief Partition a range of data into equal sizes.
    110106
    111107     The class also calculates the average of each part and assigns
     
    271267  {
    272268    // copy the weights
    273     std::copy(utility::weight_iterator<RandomAccessIterator1>(first),
    274               utility::weight_iterator<RandomAccessIterator1>(last),
    275               utility::weight_iterator<RandomAccessIterator2>(result));
     269    std::copy(utility::weight_iterator(first),
     270              utility::weight_iterator(last),
     271              utility::weight_iterator(result));
    276272    // apply algorithm on data part of range
    277     normalize(source, utility::data_iterator<RandomAccessIterator1>(first),
    278               utility::data_iterator<RandomAccessIterator1>(last),
    279               utility::data_iterator<RandomAccessIterator2>(result),
     273    normalize(source, utility::data_iterator(first),
     274              utility::data_iterator(last),
     275              utility::data_iterator(result),
    280276              utility::unweighted_iterator_tag());
    281277  }
Note: See TracChangeset for help on using the changeset viewer.