w2img::LinearRBF::Strategy Class Reference

Inheritance diagram for w2img::LinearRBF::Strategy:

w2img::LinearRBF::UniformStrategy w2img::LinearRBF::DataDrivenUniformStrategy w2img::LinearRBF::KMeansStrategy List of all members.

Detailed Description

Abstract base class of strategies to find centers and influence radius from the training data itself.

Author:
Lakshman
Version:
Id
w2img_LinearRBF.h,v 1.8 2009/06/02 20:17:57 lakshman Exp


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 > &centers)=0
 sub-classes implement this method to update the two pieces of data.

Protected Attributes

double influenceRadius
std::vector< LinearRBF::Inputcenters


Constructor & Destructor Documentation

virtual w2img::LinearRBF::Strategy::~Strategy (  )  [inline, virtual]

w2img::LinearRBF::Strategy::Strategy (  )  [inline]


Member Function Documentation

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.


Member Data Documentation

std::vector<LinearRBF::Input> w2img::LinearRBF::Strategy::centers [protected]

double w2img::LinearRBF::Strategy::influenceRadius [protected]


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7