Inheritance diagram for w2img::LinearRBF::Strategy:
Public Member Functions | |
virtual | ~Strategy () |
Strategy () | |
void | update (const std::vector< LinearRBF::Input > &inputs, const std::vector< double > &outputs) |
update based on new training data. | |
double | getInfluenceRadius () const |
const std::vector< LinearRBF::Input > & | getCenters () const |
Static Public Member Functions | |
static double | findDistanceSquared (const std::vector< double > &a, const std::vector< double > &b) |
static double | findAverageDistance (const std::vector< LinearRBF::Input > &) |
Protected Member Functions | |
virtual void | update (const std::vector< LinearRBF::Input > &inputs, const std::vector< double > &outputs, double &influence_radius, std::vector< LinearRBF::Input > ¢ers)=0 |
sub-classes implement this method to update the two pieces of data. | |
Protected Attributes | |
double | influenceRadius |
std::vector< LinearRBF::Input > | centers |
virtual w2img::LinearRBF::Strategy::~Strategy | ( | ) | [inline, virtual] |
w2img::LinearRBF::Strategy::Strategy | ( | ) | [inline] |
static double w2img::LinearRBF::Strategy::findAverageDistance | ( | const std::vector< LinearRBF::Input > & | ) | [static] |
static double w2img::LinearRBF::Strategy::findDistanceSquared | ( | const std::vector< double > & | a, | |
const std::vector< double > & | b | |||
) | [static] |
const std::vector<LinearRBF::Input>& w2img::LinearRBF::Strategy::getCenters | ( | ) | const [inline] |
double w2img::LinearRBF::Strategy::getInfluenceRadius | ( | ) | const [inline] |
virtual void w2img::LinearRBF::Strategy::update | ( | const std::vector< LinearRBF::Input > & | inputs, | |
const std::vector< double > & | outputs, | |||
double & | influence_radius, | |||
std::vector< LinearRBF::Input > & | centers | |||
) | [protected, pure virtual] |
sub-classes implement this method to update the two pieces of data.
Implemented in w2img::LinearRBF::UniformStrategy, w2img::LinearRBF::DataDrivenUniformStrategy, and w2img::LinearRBF::KMeansStrategy.
void w2img::LinearRBF::Strategy::update | ( | const std::vector< LinearRBF::Input > & | inputs, | |
const std::vector< double > & | outputs | |||
) |
update based on new training data.
std::vector<LinearRBF::Input> w2img::LinearRBF::Strategy::centers [protected] |
double w2img::LinearRBF::Strategy::influenceRadius [protected] |