#include <histogram.h>
Inheritance diagram for Histo::OneDBinList

Public Types | |
| typedef vector<Value>::size_type | size_type |
Public Methods | |
| OneDBinList (const int num_bins) | |
| OneDBinList& | add (size_type bin, Value val=1) |
| Add the specified value to the histogram bin specified. More... | |
Summary access functions | |
Report statistics about the whole histogram. | |
| size_type | num_bins () const |
| Value | total_value () const |
| Not merely the sum of the current values, if histogram is a difference. More... | |
| Count | total_count () const |
| Not merely the count of the current values, if histogram is a difference. More... | |
| Value | max_value () const |
| Value | min_value () const |
| Count | max_count () const |
| Count | min_count () const |
Element access functions | |
Return the value of a single bin in the histogram. | |
| Value | value (size_type i) const |
| Count | count (size_type i) const |
| double | value_percent (size_type i) const |
| double | count_percent (size_type i) const |
Protected Attributes | |
| vector<Count> | counts |
| vector<Value> | values |
| Count | total_c |
| Value | total_v |
Friends | |
| class | operator- |
This class is designed to include some classes which are not, strictly speaking, histograms, e.g. if their total counts are less than the sum of the individual counts, or if individual counts are less than zero.
Definition at line 26 of file histogram.h.
|
|||
|
Definition at line 37 of file histogram.h. |
|
||||
|
Definition at line 39 of file histogram.h. |
|
||||||
|
Add the specified value to the histogram bin specified.
Definition at line 44 of file histogram.h. |
|
||||
|
Definition at line 75 of file histogram.h. |
|
||||
|
Definition at line 77 of file histogram.h. |
|
||||
|
Definition at line 65 of file histogram.h. |
|
||||
|
Definition at line 63 of file histogram.h. |
|
||||
|
Definition at line 66 of file histogram.h. |
|
||||
|
Definition at line 64 of file histogram.h. |
|
||||
|
Definition at line 57 of file histogram.h. |
|
||||
|
Not merely the count of the current values, if histogram is a difference.
Definition at line 61 of file histogram.h. |
|
||||
|
Not merely the sum of the current values, if histogram is a difference.
Definition at line 59 of file histogram.h. |
|
||||
|
Definition at line 74 of file histogram.h. |
|
||||
|
Definition at line 76 of file histogram.h. |
|
|||
|
Definition at line 28 of file histogram.h. |
|
|||
|
Definition at line 30 of file histogram.h. |
|
|||
|
Definition at line 31 of file histogram.h. |
|
|||
|
Definition at line 29 of file histogram.h. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000