Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
protocols::frag_picker::CompareByScoreCombination Class Reference

comparator based on the linear combination of some score components More...

#include <CommonFragmentComparators.hh>

Inheritance diagram for protocols::frag_picker::CompareByScoreCombination:
Inheritance graph
Collaboration diagram for protocols::frag_picker::CompareByScoreCombination:
Collaboration graph

Public Member Functions

 CompareByScoreCombination (utility::vector1< Size > which_components, utility::vector1< Real > weights)
 Sets up the comparator for a given FragmentScoreManager. More...
bool operator() (ScoredCandidate first_candidate, ScoredCandidate second_candidate)
 compares two fragment candidates More...
 ~CompareByScoreCombination ()

Private Attributes

utility::vector1< Sizecomponents_
utility::vector1< Realweights_

Detailed Description

comparator based on the linear combination of some score components

Detailed: returns true if first pair has lower weighted score than the second one

Constructor & Destructor Documentation

protocols::frag_picker::CompareByScoreCombination::CompareByScoreCombination ( utility::vector1< Size which_components,
utility::vector1< Real weights 

Sets up the comparator for a given FragmentScoreManager.

Detailed: 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_.

protocols::frag_picker::CompareByScoreCombination::~CompareByScoreCombination ( )

Member Function Documentation

bool protocols::frag_picker::CompareByScoreCombination::operator() ( ScoredCandidate  first_candidate,
ScoredCandidate  second_candidate 

compares two fragment candidates

Detailed: 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_.

Member Data Documentation

utility::vector1<Size> protocols::frag_picker::CompareByScoreCombination::components_
utility::vector1<Real> protocols::frag_picker::CompareByScoreCombination::weights_

The documentation for this class was generated from the following file: