![]() |
Rosetta
2021.16
|
holds all small scores (score components) for a given fragment More...
#include <FragmentScoreMap.hh>

Public Member Functions | |
| FragmentScoreMap (core::Size n_componens) | |
| creates a new map for a given number of components More... | |
| FragmentScoreMapOP | clone () const |
| creates a new deep copy of this map More... | |
| core::Size | size () const |
| core::Real | at (core::Size score_index) const |
| utility::vector1< core::Real > & | get_score_components () const |
| returns the vector of score components More... | |
| void | set_score_component (core::Real score_value, core::Size component_id) |
| sets a new score value for a given component More... | |
| core::Real | get_most_recent_total_score () |
| returns the total score that has been evaluated recently More... | |
| bool | was_modified () |
| If the map has been modified, the total score it holds is not up-to-date and must be recalculated. More... | |
| core::Real | get_quota_score () |
| void | set_quota_score (core::Real quota_score) |
Private Attributes | |
| utility::vector1< core::Real > | small_scores_ |
| core::Real | recent_total_ |
| core::Real | recent_quota_score_ |
| bool | was_modified_ |
Friends | |
| class | FragmentScoreManager |
holds all small scores (score components) for a given fragment
each scoring method puts its own result into the map. The total score is a dot product of the vector from this map and a vector of weights
|
inline |
creates a new map for a given number of components
usually the new map should be created by FragmentScoreManager::create_empty_map()
References recent_quota_score_, recent_total_, small_scores_, and was_modified_.
Referenced by clone().
|
inline |
References small_scores_.
|
inline |
creates a new deep copy of this map
References FragmentScoreMap(), recent_total_, small_scores_, and was_modified_.
|
inline |
returns the total score that has been evaluated recently
the method does not compute anything. You must check if the map has been modified after the last total score calculation. If so, you must recompute the total again
References recent_total_.
|
inline |
References recent_quota_score_.
|
inline |
returns the vector of score components
References small_scores_.
Referenced by protocols::frag_picker::FragmentScoreFilter::compute().
|
inline |
References recent_quota_score_.
|
inline |
sets a new score value for a given component
References small_scores_, and was_modified_.
|
inline |
References small_scores_.
|
inline |
If the map has been modified, the total score it holds is not up-to-date and must be recalculated.
References was_modified_.
|
friend |
|
private |
Referenced by FragmentScoreMap(), get_quota_score(), and set_quota_score().
|
private |
Referenced by clone(), FragmentScoreMap(), and get_most_recent_total_score().
|
private |
Referenced by at(), clone(), FragmentScoreMap(), get_score_components(), set_score_component(), and size().
|
private |
Referenced by clone(), FragmentScoreMap(), set_score_component(), and was_modified().
1.8.7