|
Rosetta
|
#include <DistanceHistogram.hh>

Public Member Functions | |
| DistanceHistogram (void) | |
| Create a histogram that collects distances between two predefined atom types. More... | |
| Size | operator() (Real distance) const |
| Returns the number of counts for a given distance. More... | |
| Size | get (Real distance) const |
| Returns the number of counts for a given distance. More... | |
| Size | get (Size bin) const |
| Returns the number of counts for a given bin. More... | |
| Real | distance (Size bin) const |
| tells waht distance falls into a certain bin More... | |
| void | insert (Real distance) |
| Adds a distance observation to the histogram. More... | |
| Size | size () |
| Returns the size of this histogram. More... | |
| void | zeros () |
| Clears this histogram by filling each cell with 0.0. More... | |
| Size | total () const |
| Returns the total number of counts in this histogram. More... | |
| Size | last_nonempty_bin () const |
Private Attributes | |
| Real | factor_ |
| Real | max_dist_ |
| Size | last_nonempty_bin_ |
| utility::vector1< Size > | h_ |
|
inline |
Create a histogram that collects distances between two predefined atom types.
tells waht distance falls into a certain bin
References factor_.
Referenced by get(), insert(), and operator()().
Returns the number of counts for a given distance.
References distance(), factor_, and h_.
Returns the number of counts for a given bin.
References h_.
|
inline |
Adds a distance observation to the histogram.
References protocols::match::upstream::b, distance(), factor_, h_, and last_nonempty_bin_.
|
inline |
References last_nonempty_bin_.
Returns the number of counts for a given distance.
References distance(), factor_, and h_.
|
inline |
Returns the size of this histogram.
References h_.
|
inline |
Returns the total number of counts in this histogram.
References h_.
|
inline |
Clears this histogram by filling each cell with 0.0.
References h_, and last_nonempty_bin_.
|
private |
Referenced by distance(), get(), insert(), and operator()().
|
private |
|
private |
Referenced by insert(), last_nonempty_bin(), and zeros().
|
private |