Changeset 231 for trunk/src/Histogram.h


Ignore:
Timestamp:
Feb 21, 2005, 3:50:17 PM (17 years ago)
Author:
Peter
Message:

filled incomplete stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Histogram.h

    r215 r231  
    136136
    137137  private:
     138    // Returns zero if outside boundaries
    138139    inline size_t bin(double d)
    139       { std::cout << "Histogram::bin Jari, implement me!" << std::endl; return 0; };
    140 //      { return (((d<xmin_) || (d>xmax_)) ? -1 :
    141 //                static_cast<int>(floor((d-xmin_)/spacing_))); }
     140    { return (((d<xmin_) || (d>xmax_)) ? 0 :
     141              static_cast<size_t>(floor((d-xmin_)/spacing() ))); }
    142142
    143143    std::vector<double> histogram_;
Note: See TracChangeset for help on using the changeset viewer.