Ignore:
Timestamp:
May 24, 2008, 2:25:07 AM (13 years ago)
Author:
Peter
Message:

change template name to RandomAccessIterator? to clarify that percentile only works with random access iterators (sice std::sort is used)

File:
1 edited

Legend:

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

    r1317 r1323  
    2424#include "Percentiler.h"
    2525
     26#include <cassert>
     27
    2628namespace theplu {
    2729namespace yat {
     
    3032  Percentiler::Percentiler(double perc, bool sorted)
    3133    : perc_(perc), sorted_(sorted)
    32   {}
     34  {
     35    assert(perc_<=100.0);
     36    assert(perc_>=0.0);
     37  }
    3338
    3439}}} // of namespace statistics, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.