![]() |
Rosetta Protocols
2014.16.56682
|
Class for counting the number of matches given a particular discretization level. More...
#include <MatchSet.hh>
Public Types | |
| typedef core::Real | Real |
| typedef core::Size | Size |
| typedef core::Vector | Vector |
| typedef numeric::geometry::BoundingBox < Vector > | BoundingBox |
| typedef numeric::geometry::hashing::Bin6D | Bin6D |
| typedef utility::vector1< Size > | HitCounts |
| typedef boost::unordered_map < boost::uint64_t, HitCounts, numeric::geometry::hashing::bin_index_hasher > | HitHash |
Public Member Functions | |
| MatchCounter () | |
| virtual | ~MatchCounter () |
| void | set_bounding_box (BoundingBox const &bb) |
| Use the same bounding box as the HitHasher / OccupiedSpaceHash. More... | |
| void | set_n_geometric_constraints (Size ngeomcsts) |
| void | set_uniform_xyz_bin_width (Real bin_width) |
| Give the same xyz bin witdh given to the HitHasher / OccupiedSpaceHash. More... | |
| void | set_uniform_euler_angle_bin_width (Real bin_width_degrees) |
| Give the same euler-angle bin witdh given to the HitHasher / OccupiedSpaceHash. More... | |
| void | set_xyz_bin_widths (Vector const &bin_widths) |
| Give the same xyz bin witdhs given to the HitHasher / OccupiedSpaceHash. More... | |
| void | set_euler_bin_widths (Vector const &euler_bin_widths) |
| Give the same euler-angle bin witdhs given to the HitHasher / OccupiedSpaceHash. More... | |
| void | initialize () |
| Call this after the bounding-box and the bin-widths have been set up. Must be called before "add_hits" it called. This initializes the SixDCoordinateBinner. More... | |
| void | add_hits (Size geomcst_id, std::list< Hit > const &hitlist) |
| Add hits from a list of hits for a particular geometric constraint. More... | |
| void | add_hits (Size geomcst_id, std::list< Hit const * > const &hitptrlist) |
| Add hit from the input list of hits for a particular geometric constraint. More... | |
| Size | count_n_matches () const |
| Possibly slow method to predict the total number of matches given a set of hits and a particular grid resolution. (The main function that this class provides). More... | |
Class for counting the number of matches given a particular discretization level.
| typedef boost::unordered_map< boost::uint64_t, HitCounts, numeric::geometry::hashing::bin_index_hasher > protocols::match::MatchCounter::HitHash |
| protocols::match::MatchCounter::MatchCounter | ( | ) |
|
virtual |
Add hits from a list of hits for a particular geometric constraint.
References binner_, hash_, initialized_, and n_geom_csts_.
Referenced by protocols::match::Matcher::predict_n_matches_for_hit_subsets().
| void protocols::match::MatchCounter::add_hits | ( | Size | geomcst_id, |
| std::list< Hit const * > const & | hitptrlist | ||
| ) |
Add hit from the input list of hits for a particular geometric constraint.
References binner_, hash_, initialized_, and n_geom_csts_.
| MatchCounter::Size protocols::match::MatchCounter::count_n_matches | ( | ) | const |
Possibly slow method to predict the total number of matches given a set of hits and a particular grid resolution. (The main function that this class provides).
References protocols::match::advance_to_neighbor_bin(), utility::LexicographicalIterator::at_end(), utility::LexicographicalIterator::begin(), begin, bin, binner_, utility::LexicographicalIterator::continue_at_dimension(), hash_, initialized_, n_geom_csts_, utility::FixedSizeLexicographicalIterator< S >::set_position_from_index(), and protocols::analysis::total.
Referenced by protocols::match::Matcher::predict_n_matches_for_hit_subsets().
| void protocols::match::MatchCounter::initialize | ( | ) |
Call this after the bounding-box and the bin-widths have been set up. Must be called before "add_hits" it called. This initializes the SixDCoordinateBinner.
hash based on halfbin widths.
References bb_, binner_, euler_bin_widths_, initialized_, and xyz_bin_widths_.
Referenced by protocols::match::Matcher::predict_n_matches_for_hit_subsets().
| void protocols::match::MatchCounter::set_bounding_box | ( | BoundingBox const & | bb | ) |
Use the same bounding box as the HitHasher / OccupiedSpaceHash.
References bb_, and initialized_.
Referenced by protocols::match::Matcher::predict_n_matches_for_hit_subsets().
| void protocols::match::MatchCounter::set_euler_bin_widths | ( | Vector const & | euler_bin_widths | ) |
Give the same euler-angle bin witdhs given to the HitHasher / OccupiedSpaceHash.
References euler_bin_widths_, and initialized_.
Referenced by protocols::match::Matcher::predict_n_matches_for_hit_subsets().
| void protocols::match::MatchCounter::set_n_geometric_constraints | ( | Size | ngeomcsts | ) |
References initialized_, and n_geom_csts_.
Referenced by protocols::match::Matcher::predict_n_matches_for_hit_subsets().
| void protocols::match::MatchCounter::set_uniform_euler_angle_bin_width | ( | Real | bin_width_degrees | ) |
Give the same euler-angle bin witdh given to the HitHasher / OccupiedSpaceHash.
References euler_bin_widths_, and initialized_.
| void protocols::match::MatchCounter::set_uniform_xyz_bin_width | ( | Real | bin_width | ) |
Give the same xyz bin witdh given to the HitHasher / OccupiedSpaceHash.
References initialized_, and xyz_bin_widths_.
| void protocols::match::MatchCounter::set_xyz_bin_widths | ( | Vector const & | bin_widths | ) |
Give the same xyz bin witdhs given to the HitHasher / OccupiedSpaceHash.
References initialized_, and xyz_bin_widths_.
Referenced by protocols::match::Matcher::predict_n_matches_for_hit_subsets().
|
private |
Referenced by initialize(), and set_bounding_box().
|
private |
Referenced by add_hits(), count_n_matches(), and initialize().
|
private |
Referenced by initialize(), set_euler_bin_widths(), and set_uniform_euler_angle_bin_width().
|
private |
Referenced by add_hits(), and count_n_matches().
|
private |
|
private |
Referenced by add_hits(), count_n_matches(), and set_n_geometric_constraints().
|
private |
Referenced by initialize(), set_uniform_xyz_bin_width(), and set_xyz_bin_widths().
1.8.7