![]() |
Rosetta
2021.16
|
comparator based on the linear combination of some score components More...
#include <CommonFragmentComparators.hh>

Public Member Functions | |
| CompareByScoreCombination (utility::vector1< core::Size > which_components, utility::vector1< core::Real > weights) | |
| Sets up the comparator for a given FragmentScoreManager. More... | |
| bool | operator() (ScoredCandidate first_candidate, ScoredCandidate second_candidate) override |
| compares two fragment candidates More... | |
| ~CompareByScoreCombination () override=default | |
Private Attributes | |
| utility::vector1< core::Size > | components_ |
| utility::vector1< core::Real > | weights_ |
comparator based on the linear combination of some score components
returns true if first pair has lower weighted score than the second one
|
inline |
Sets up the comparator for a given FragmentScoreManager.
Only the scoring manager knows how to calculate the total score from a vector of small scores (those gathered in a FragmentScoreMap object)
References components_, and weights_.
|
overridedefault |
|
inlineoverridevirtual |
compares two fragment candidates
returns true if second pair has greater total score than the first one. Using this comparator to sort fragment candidates order them descending according to their total score
Implements protocols::frag_picker::FragmentComparatorBase.
References components_, and weights_.
|
private |
Referenced by CompareByScoreCombination(), and operator()().
|
private |
Referenced by CompareByScoreCombination(), and operator()().
1.8.7