Ignore:
Timestamp:
Aug 5, 2005, 3:26:10 PM (17 years ago)
Author:
Peter
Message:

improved docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/statistics/Histogram.h

    r363 r370  
    9696
    9797    ///
    98     /// @return The value of the histogram corresponding to bin \a
    99     /// bin.
     98    /// @return The value in the middle of bin \a k.
    10099    ///
    101     /// @note No check is done that \a bin is within the size of the
     100    /// @note No check is done that \a k is within the size of the
    102101    /// histogram.
    103102    ///
    104     inline double observation_value(const size_t bin) const
    105       { return xmin_+spacing()*(bin+0.5); }
     103    inline double observation_value(const size_t k) const
     104      { return xmin_+spacing()*(k+0.5); }
    106105
    107106    ///
     
    131130
    132131    ///
    133     /// @return The count of bin \a bin.in the histogram.
    134     inline double operator[](size_t bin) const { return histogram_[bin]; }
     132    /// @return The count of bin \a k.in the histogram.
     133    inline double operator[](size_t k) const { return histogram_[k]; }
    135134
    136135    ///
Note: See TracChangeset for help on using the changeset viewer.