KSquare Utilities
KKMLL::ClassProbList::ProbabilityComparer Class Reference

Public Member Functions

 ProbabilityComparer (bool _highToLow)
 
bool operator() (const ClassProbPtr left, const ClassProbPtr right)
 

Detailed Description

Definition at line 90 of file ClassProb.cpp.

Constructor & Destructor Documentation

KKMLL::ClassProbList::ProbabilityComparer::ProbabilityComparer ( bool  _highToLow)
inline

Definition at line 93 of file ClassProb.cpp.

Referenced by KKMLL::ClassProbList::SortByProbability().

93 : highToLow (_highToLow) {}

Member Function Documentation

bool KKMLL::ClassProbList::ProbabilityComparer::operator() ( const ClassProbPtr  left,
const ClassProbPtr  right 
)
inline

Definition at line 95 of file ClassProb.cpp.

References KKMLL::ClassProb::probability.

98  {
99  if (highToLow)
100  return (left->probability > right->probability);
101  else
102  return (left->probability < right->probability);
103  }
double probability
Definition: ClassProb.h:36

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