w2img::LinearRBF::UniformStrategy Class Reference

Inheritance diagram for w2img::LinearRBF::UniformStrategy:

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

Detailed Description

Pass in the min, max and required number of centers for each of the components of the input vector to get a vector of uniformly spaced centers.

The training data are not used at all.m

If min = 0, max = 10 and number = 4, you will get centers at 2, 4, 6 and 8 i.e. there is nothing at the end points.


Public Member Functions

virtual ~UniformStrategy ()
virtual void update (const std::vector< LinearRBF::Input > &inputs, const std::vector< double > &outputs, double &influence_radius, std::vector< LinearRBF::Input > &centers)
 sub-classes implement this method to update the two pieces of data.
 UniformStrategy (const LinearRBF::Input &minbounds, const LinearRBF::Input &maxbounds, const std::vector< size_t > &number)
 Pass in the min, max and required number of centers for each of the components of the input vector to get a vector of uniformly spaced centers.
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

 UniformStrategy ()
 plan to call init later.
void init (const LinearRBF::Input &minbounds, const LinearRBF::Input &maxbounds, const std::vector< size_t > &number)

Protected Attributes

double influenceRadius
std::vector< LinearRBF::Inputcenters


Constructor & Destructor Documentation

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

w2img::LinearRBF::UniformStrategy::UniformStrategy ( const LinearRBF::Input minbounds,
const LinearRBF::Input maxbounds,
const std::vector< size_t > &  number 
)

Pass in the min, max and required number of centers for each of the components of the input vector to get a vector of uniformly spaced centers.

The training data are not used at all.m

If min = 0, max = 10 and number = 4, you will get centers at 2, 4, 6 and 8 i.e. there is nothing at the end points.

w2img::LinearRBF::UniformStrategy::UniformStrategy (  )  [inline, protected]

plan to call init later.


Member Function Documentation

static double w2img::LinearRBF::Strategy::findAverageDistance ( const std::vector< LinearRBF::Input > &   )  [static, inherited]

static double w2img::LinearRBF::Strategy::findDistanceSquared ( const std::vector< double > &  a,
const std::vector< double > &  b 
) [static, inherited]

const std::vector<LinearRBF::Input>& w2img::LinearRBF::Strategy::getCenters (  )  const [inline, inherited]

double w2img::LinearRBF::Strategy::getInfluenceRadius (  )  const [inline, inherited]

void w2img::LinearRBF::UniformStrategy::init ( const LinearRBF::Input minbounds,
const LinearRBF::Input maxbounds,
const std::vector< size_t > &  number 
) [protected]

void w2img::LinearRBF::Strategy::update ( const std::vector< LinearRBF::Input > &  inputs,
const std::vector< double > &  outputs 
) [inherited]

update based on new training data.

virtual void w2img::LinearRBF::UniformStrategy::update ( const std::vector< LinearRBF::Input > &  inputs,
const std::vector< double > &  outputs,
double &  influence_radius,
std::vector< LinearRBF::Input > &  centers 
) [virtual]

sub-classes implement this method to update the two pieces of data.

Implements w2img::LinearRBF::Strategy.

Reimplemented in w2img::LinearRBF::DataDrivenUniformStrategy, and w2img::LinearRBF::KMeansStrategy.


Member Data Documentation

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

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


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