![]() |
Rosetta Utilities
2015.02
|
#include <IntervalSet.hh>
Public Member Functions | |
IntervalSet () | |
IntervalSet (T start, T end) | |
IntervalSet (T start1, T end1, T start2, T end2) | |
utility::vector0< T > const & | endpoints () const |
vector of interval set end points More... | |
void | clear () |
clear the contents More... | |
void | set (T start, T end) |
set the inverval set to contain a single interval More... | |
void | set (T start1, T end1, T start2, T end2) |
set the interval set to contain two intervals More... | |
void | push_back (T start, T end) |
add an interval to the end of the set More... | |
T | length () |
calculate the total length of all the intervals More... | |
bool | is_inside (T point) |
determine if a point is within one of the intervals More... | |
IntervalSet | operator& (IntervalSet const &right) |
calculate the intersection of two IntervalSets More... | |
T | random_point (random::RandomGenerator &RG) |
pick a random number uniformly from all the intervals More... | |
Private Attributes | |
utility::vector0< T > | endpoints_ |
|
inline |
|
inline |
|
inline |
|
inline |
clear the contents
|
inline |
vector of interval set end points
|
inline |
determine if a point is within one of the intervals
|
inline |
calculate the total length of all the intervals
Referenced by numeric::IntervalSet< double >::random_point().
|
inline |
calculate the intersection of two IntervalSets
[in] | right | - the second Interval set |
|
inline |
add an interval to the end of the set
|
inline |
pick a random number uniformly from all the intervals
[in] | RG | - random number generator to use |
|
inline |
set the inverval set to contain a single interval
|
inline |
set the interval set to contain two intervals
|
private |
Referenced by numeric::IntervalSet< double >::clear(), numeric::IntervalSet< double >::endpoints(), numeric::IntervalSet< double >::IntervalSet(), numeric::IntervalSet< double >::is_inside(), numeric::IntervalSet< double >::length(), numeric::IntervalSet< double >::operator&(), numeric::IntervalSet< double >::push_back(), numeric::IntervalSet< double >::random_point(), and numeric::IntervalSet< double >::set().