mems::GreedyRemovalScorer Class Reference

#include <GreedyBreakpointElimination.h>

List of all members.

Public Member Functions

size_t getMoveCount ()
 GreedyRemovalScorer (std::vector< LCB > &adjacencies, double minimum_weight)
bool isValid (size_t lcbI, double move_score)
double operator() (size_t lcbI)
 return the relative change in score if lcbI were to be removed

void remove (uint lcbI, std::vector< std::pair< double, size_t > > &new_moves)
 call to indicate that the given LCB has been removed

double score ()

Private Attributes

std::vector< mems::LCBadjs
double min_weight
std::vector< double > scores
double total_weight


Constructor & Destructor Documentation

mems::GreedyRemovalScorer::GreedyRemovalScorer std::vector< LCB > &  adjacencies,
double  minimum_weight
 

Definition at line 941 of file GreedyBreakpointElimination.cpp.

References min_weight.


Member Function Documentation

size_t mems::GreedyRemovalScorer::getMoveCount  ) 
 

Definition at line 951 of file GreedyBreakpointElimination.cpp.

bool mems::GreedyRemovalScorer::isValid size_t  lcbI,
double  move_score
 

Definition at line 961 of file GreedyBreakpointElimination.cpp.

double mems::GreedyRemovalScorer::operator() size_t  lcbI  ) 
 

return the relative change in score if lcbI were to be removed

Definition at line 969 of file GreedyBreakpointElimination.cpp.

References min_weight.

void mems::GreedyRemovalScorer::remove uint  lcbI,
std::vector< std::pair< double, size_t > > &  new_moves
 

call to indicate that the given LCB has been removed

Definition at line 975 of file GreedyBreakpointElimination.cpp.

References min_weight, mems::RemoveLCBandCoalesce(), and uint.

double mems::GreedyRemovalScorer::score  ) 
 

Definition at line 956 of file GreedyBreakpointElimination.cpp.


Member Data Documentation

std::vector< mems::LCB > mems::GreedyRemovalScorer::adjs [private]
 

Definition at line 641 of file GreedyBreakpointElimination.h.

double mems::GreedyRemovalScorer::min_weight [private]
 

Definition at line 642 of file GreedyBreakpointElimination.h.

Referenced by GreedyRemovalScorer(), operator()(), and remove().

std::vector< double > mems::GreedyRemovalScorer::scores [private]
 

Definition at line 643 of file GreedyBreakpointElimination.h.

double mems::GreedyRemovalScorer::total_weight [private]
 

Definition at line 644 of file GreedyBreakpointElimination.h.


The documentation for this class was generated from the following files:
Generated on Fri Mar 14 06:01:40 2008 for libMems by doxygen 1.3.6