Rosetta
|
#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 |
References numeric::IntervalSet< T >::endpoints_.
|
inline |
clear the contents
References numeric::IntervalSet< T >::endpoints_.
Referenced by pyrosetta.bindings.pose.ResidueLabelAccessor::discard().
|
inline |
vector of interval set end points
References numeric::IntervalSet< T >::endpoints_.
|
inline |
determine if a point is within one of the intervals
References numeric::IntervalSet< T >::endpoints_, create_a3b_hbs::i, and subloop_histogram::size.
|
inline |
calculate the total length of all the intervals
References numeric::IntervalSet< T >::endpoints_, create_a3b_hbs::i, ObjexxFCL::len(), and subloop_histogram::size.
Referenced by enumerate_junctions.Design::attach_valid(), enumerate_junctions.Design::output_string(), enumerate_junctions.Design::output_valid(), enumerate_junctions.DHR::print(), enumerate_junctions.Junction::print(), numeric::IntervalSet< T >::random_point(), enumerate_junctions.Junction::to_component(), enumerate_junctions.DHR::write_to_file(), and enumerate_junctions.Junction::write_to_file().
|
inline |
calculate the intersection of two IntervalSets
[in] | right | - the second Interval set |
References numeric::IntervalSet< T >::endpoints_, numeric::IntervalSet< T >::push_back(), and basic::options::OptionKeys::ufv::right.
|
inline |
add an interval to the end of the set
References end, numeric::IntervalSet< T >::endpoints_, subloop_histogram::size, and basic::options::OptionKeys::cutoutdomain::start.
Referenced by numeric::IntervalSet< T >::operator&().
|
inline |
pick a random number uniformly from all the intervals
[in] | RG | - random number generator to use |
References numeric::IntervalSet< T >::endpoints_, create_a3b_hbs::i, create_a3b_hbs::j, ObjexxFCL::len(), numeric::IntervalSet< T >::length(), numeric::random::RandomGenerator::random_range(), RG, subloop_histogram::size, and numeric::random::RandomGenerator::uniform().
|
inline |
set the inverval set to contain a single interval
References end, numeric::IntervalSet< T >::endpoints_, and basic::options::OptionKeys::cutoutdomain::start.
|
inline |
set the interval set to contain two intervals
References numeric::IntervalSet< T >::endpoints_.
|
private |
Referenced by numeric::IntervalSet< T >::clear(), numeric::IntervalSet< T >::endpoints(), numeric::IntervalSet< T >::IntervalSet(), numeric::IntervalSet< T >::is_inside(), numeric::IntervalSet< T >::length(), numeric::IntervalSet< T >::operator&(), numeric::IntervalSet< T >::push_back(), numeric::IntervalSet< T >::random_point(), and numeric::IntervalSet< T >::set().