Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
core::scoring::saxs::DistanceHistogram Class Reference

#include <DistanceHistogram.hh>

Inheritance diagram for core::scoring::saxs::DistanceHistogram:
Inheritance graph
[legend]
Collaboration diagram for core::scoring::saxs::DistanceHistogram:
Collaboration graph
[legend]

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< Sizeh_
 

Detailed Description

Definition at line 38 of file DistanceHistogram.hh.

Constructor & Destructor Documentation

core::scoring::saxs::DistanceHistogram::DistanceHistogram ( void  )
inline

Create a histogram that collects distances between two predefined atom types.

Definition at line 42 of file DistanceHistogram.hh.

Member Function Documentation

Real core::scoring::saxs::DistanceHistogram::distance ( Size  bin) const
inline

tells waht distance falls into a certain bin

Definition at line 54 of file DistanceHistogram.hh.

References factor_.

Referenced by get().

Size core::scoring::saxs::DistanceHistogram::get ( Real  distance) const
inline

Returns the number of counts for a given distance.

Definition at line 48 of file DistanceHistogram.hh.

References distance(), factor_, and h_.

Size core::scoring::saxs::DistanceHistogram::get ( Size  bin) const
inline

Returns the number of counts for a given bin.

Definition at line 51 of file DistanceHistogram.hh.

References h_.

void core::scoring::saxs::DistanceHistogram::insert ( Real  distance)
inline

Adds a distance observation to the histogram.

Definition at line 57 of file DistanceHistogram.hh.

References protocols::match::upstream::b, factor_, h_, and last_nonempty_bin_.

Size core::scoring::saxs::DistanceHistogram::last_nonempty_bin ( ) const
inline

Definition at line 78 of file DistanceHistogram.hh.

References last_nonempty_bin_.

Size core::scoring::saxs::DistanceHistogram::operator() ( Real  distance) const
inline

Returns the number of counts for a given distance.

Definition at line 45 of file DistanceHistogram.hh.

References factor_, and h_.

Size core::scoring::saxs::DistanceHistogram::size ( )
inline

Returns the size of this histogram.

Definition at line 65 of file DistanceHistogram.hh.

References h_.

Size core::scoring::saxs::DistanceHistogram::total ( ) const
inline

Returns the total number of counts in this histogram.

Definition at line 71 of file DistanceHistogram.hh.

References h_.

void core::scoring::saxs::DistanceHistogram::zeros ( )
inline

Clears this histogram by filling each cell with 0.0.

Definition at line 68 of file DistanceHistogram.hh.

References h_, and last_nonempty_bin_.

Member Data Documentation

Real core::scoring::saxs::DistanceHistogram::factor_
private

Definition at line 80 of file DistanceHistogram.hh.

Referenced by distance(), get(), insert(), and operator()().

utility::vector1<Size> core::scoring::saxs::DistanceHistogram::h_
private

Definition at line 83 of file DistanceHistogram.hh.

Referenced by get(), insert(), operator()(), size(), total(), and zeros().

Size core::scoring::saxs::DistanceHistogram::last_nonempty_bin_
private

Definition at line 82 of file DistanceHistogram.hh.

Referenced by insert(), last_nonempty_bin(), and zeros().

Real core::scoring::saxs::DistanceHistogram::max_dist_
private

Definition at line 81 of file DistanceHistogram.hh.


The documentation for this class was generated from the following file: