Changeset 370 for trunk/lib/statistics/Histogram.h
- Timestamp:
- Aug 5, 2005, 3:26:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/statistics/Histogram.h
r363 r370 96 96 97 97 /// 98 /// @return The value of the histogram corresponding to bin \a 99 /// bin. 98 /// @return The value in the middle of bin \a k. 100 99 /// 101 /// @note No check is done that \a binis within the size of the100 /// @note No check is done that \a k is within the size of the 102 101 /// histogram. 103 102 /// 104 inline double observation_value(const size_t bin) const105 { return xmin_+spacing()*( bin+0.5); }103 inline double observation_value(const size_t k) const 104 { return xmin_+spacing()*(k+0.5); } 106 105 107 106 /// … … 131 130 132 131 /// 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]; } 135 134 136 135 ///
Note: See TracChangeset
for help on using the changeset viewer.