ARB
Public Member Functions | Static Public Member Functions | List of all members
GroupPenalty Class Reference

#include <NT_tree_cmp.h>

Public Member Functions

 GroupPenalty ()
 
 GroupPenalty (double penalty_, double ingroup_ratio_, double outgroup_ratio_, int unreg_groupsize)
 
bool doesMatch () const
 
bool betterThan (const GroupPenalty &other) const
 
double get_penalty () const
 
bool isPerfectMatch () const
 
double get_ingroup_ratio () const
 
double get_outgroup_ratio () const
 
int get_groupsize () const
 
int get_unknown () const
 
bool shouldHaveBeenKeeled () const
 
void mark_as_keeled ()
 
void addPenalty (double p)
 
void registerUnfound (const GroupMatchScorer &scorer, const TSpecSet &tset)
 

Static Public Member Functions

static GroupPenalty NoMatch ()
 

Detailed Description

Definition at line 48 of file NT_tree_cmp.h.

Constructor & Destructor Documentation

GroupPenalty::GroupPenalty ( )
inline

Definition at line 67 of file NT_tree_cmp.h.

Referenced by NoMatch().

GroupPenalty::GroupPenalty ( double  penalty_,
double  ingroup_ratio_,
double  outgroup_ratio_,
int  unreg_groupsize 
)
inline

Definition at line 75 of file NT_tree_cmp.h.

References nt_assert.

Member Function Documentation

bool GroupPenalty::doesMatch ( ) const
inline

Definition at line 88 of file NT_tree_cmp.h.

Referenced by addPenalty(), and GroupMatchScorer::matchGroups().

bool GroupPenalty::betterThan ( const GroupPenalty other) const
inline
double GroupPenalty::get_penalty ( ) const
inline

Definition at line 91 of file NT_tree_cmp.h.

Referenced by SpecSetRegistry::write_node_information().

bool GroupPenalty::isPerfectMatch ( ) const
inline

Definition at line 92 of file NT_tree_cmp.h.

Referenced by SpecSetRegistry::write_node_information().

double GroupPenalty::get_ingroup_ratio ( ) const
inline

Definition at line 93 of file NT_tree_cmp.h.

Referenced by SpecSetRegistry::write_node_information().

double GroupPenalty::get_outgroup_ratio ( ) const
inline

Definition at line 94 of file NT_tree_cmp.h.

Referenced by SpecSetRegistry::write_node_information().

int GroupPenalty::get_groupsize ( ) const
inline

Definition at line 96 of file NT_tree_cmp.h.

References nt_assert.

Referenced by SpecSetRegistry::write_node_information().

int GroupPenalty::get_unknown ( ) const
inline

Definition at line 97 of file NT_tree_cmp.h.

References nt_assert.

bool GroupPenalty::shouldHaveBeenKeeled ( ) const
inline

Definition at line 99 of file NT_tree_cmp.h.

Referenced by SpecSetRegistry::write_node_information().

static GroupPenalty GroupPenalty::NoMatch ( )
inlinestatic

Definition at line 101 of file NT_tree_cmp.h.

References GroupPenalty().

Referenced by SpecSetRegistry::search_best_match().

void GroupPenalty::mark_as_keeled ( )
inline

Definition at line 103 of file NT_tree_cmp.h.

Referenced by GroupMatchScorer::matchGroups().

void GroupPenalty::addPenalty ( double  p)
inline

Definition at line 104 of file NT_tree_cmp.h.

References doesMatch(), and nt_assert.

Referenced by GroupMatchScorer::matchGroups(), and registerUnfound().

void GroupPenalty::registerUnfound ( const GroupMatchScorer scorer,
const TSpecSet tset 
)

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