|
My Project
|
ヒストグラム More...
#include <histogram.h>
Public Member Functions | |
| Histogram (size_t w, size_t len, int start=0, bool show_on_destruct=false) | |
| ~Histogram () | |
| size_t | safeIndex (size_t i) const |
| double & | frequency (size_t i) |
| void | add (int value, double weight=1.0) |
| double | frequency (size_t i) const |
| void | show (std::ostream &os) const |
| size_t | length () const |
| size_t | width () const |
| int | start () const |
| void | merge (const Histogram &) |
| 結果を合算する length や width が異なっていたら何もしない | |
| void | showRatio (std::ostream &os, const Histogram &numerator) const |
| \frac{*this}{numerator} を表示 length や width が異なっていたら何もしない | |
Private Attributes | |
| boost::scoped_array< double > | data |
| size_t | length_ |
| size_t | width_ |
| int | start_ |
| bool | show_on_destruct |
ヒストグラム
Definition at line 15 of file histogram.h.
| osl::stat::Histogram::Histogram | ( | size_t | w, |
| size_t | len, | ||
| int | start = 0, | ||
| bool | show_on_destruct = false ) |
Definition at line 7 of file histogram.cc.
References data, length_, show_on_destruct, start_, and width_.
Referenced by merge(), and showRatio().
| osl::stat::Histogram::~Histogram | ( | ) |
Definition at line 14 of file histogram.cc.
References show(), and show_on_destruct.
|
inline |
Definition at line 29 of file histogram.h.
References frequency(), start_, and width_.
|
inline |
|
inline |
Definition at line 37 of file histogram.h.
References data, and safeIndex().
|
inline |
Definition at line 40 of file histogram.h.
References length_.
| void osl::stat::Histogram::merge | ( | const Histogram & | o | ) |
結果を合算する length や width が異なっていたら何もしない
Definition at line 20 of file histogram.cc.
References data, Histogram(), length_, start_, and width_.
|
inline |
Definition at line 24 of file histogram.h.
References length_.
Referenced by frequency(), and frequency().
| void osl::stat::Histogram::show | ( | std::ostream & | os | ) | const |
Definition at line 34 of file histogram.cc.
References data, length_, start_, and width_.
Referenced by ~Histogram().
| void osl::stat::Histogram::showRatio | ( | std::ostream & | os, |
| const Histogram & | numerator ) const |
\frac{*this}{numerator} を表示 length や width が異なっていたら何もしない
Definition at line 46 of file histogram.cc.
References data, Histogram(), length_, start_, and width_.
|
inline |
Definition at line 42 of file histogram.h.
References start_.
|
inline |
Definition at line 41 of file histogram.h.
References width_.
|
private |
Definition at line 17 of file histogram.h.
Referenced by frequency(), frequency(), Histogram(), merge(), show(), and showRatio().
|
private |
Definition at line 18 of file histogram.h.
Referenced by Histogram(), length(), merge(), safeIndex(), show(), and showRatio().
|
private |
Definition at line 20 of file histogram.h.
Referenced by Histogram(), and ~Histogram().
|
private |
Definition at line 19 of file histogram.h.
Referenced by add(), Histogram(), merge(), show(), showRatio(), and start().
|
private |
Definition at line 18 of file histogram.h.
Referenced by add(), Histogram(), merge(), show(), showRatio(), and width().