Changeset 3240


Ignore:
Timestamp:
May 24, 2014, 3:31:21 PM (7 years ago)
Author:
Peter
Message:

remove WS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/Percentiler.h

    r2470 r3240  
    4141namespace theplu {
    4242namespace yat {
    43 namespace statistics { 
     43namespace statistics {
    4444
    4545  /**
     
    8686       - \f$ (3.14+28)/2 \f$ if \f$ N=S_2 \f$
    8787       - \f$ 28 \f$ if \f$ S_2 < N \f$
    88        
    89        Note, that data point with weight zero is completely ignored. 
     88
     89       Note, that data point with weight zero is completely ignored.
    9090
    9191       Requirements: \c RandomAccessIterator should be a \ref
     
    9595     */
    9696    template<typename RandomAccessIterator>
    97     double operator()(RandomAccessIterator first, 
     97    double operator()(RandomAccessIterator first,
    9898                      RandomAccessIterator last) const
    9999    {
     
    102102      if (first==last)
    103103        return std::numeric_limits<double>::quiet_NaN();
    104       return calculate(first, last, sorted_, 
     104      return calculate(first, last, sorted_,
    105105       typename utility::weighted_iterator_traits<RandomAccessIterator>::type());
    106106    }
     
    130130  // unweighted version
    131131  template<typename RandomAccessIterator>
    132   double 
    133   Percentiler::calculate(RandomAccessIterator first, 
     132  double
     133  Percentiler::calculate(RandomAccessIterator first,
    134134                         RandomAccessIterator last,
    135135                         bool sorted,
     
    163163  // weighted version
    164164  template<typename RandomAccessIterator>
    165   double Percentiler::calculate(RandomAccessIterator first, 
     165  double Percentiler::calculate(RandomAccessIterator first,
    166166                                RandomAccessIterator last,
    167167                                bool sorted,
     
    182182        ++upper;
    183183      while (upper!=accum_w.begin() &&
    184              (upper==accum_w.end() || 
     184             (upper==accum_w.end() ||
    185185              trait.weight(first+(upper-accum_w.begin()))==0.0))
    186186        --upper;
     
    188188      while ( *(lower-1)>=w_bound-margin && lower>accum_w.begin())
    189189        --lower;
    190      
     190
    191191      return (trait.data(first+(upper-accum_w.begin()))+
    192192              trait.data(first+(lower-accum_w.begin())))/2;
Note: See TracChangeset for help on using the changeset viewer.