GClasses

GClasses::SOM::NeighborhoodWindowFunction Class Reference

Function that given a width, and a distance from the center of the neighborhood returns a weight to be used to calculate the influence of neighboring nodes at that distance. For each radius, can tell a distance d (possibly infinity) from the center for which all weights for distances greater than or equal to d will be 0. More...

#include <GSelfOrganizingMap.h>

Inheritance diagram for GClasses::SOM::NeighborhoodWindowFunction:
GClasses::SOM::GaussianWindowFunction GClasses::SOM::UniformWindowFunction

List of all members.

Public Member Functions

virtual double operator() (double width, double distance) const =0
 Returns the weight of this window function at the given width and distance.
virtual double minZeroDistance (double width) const =0
 If d >= minZeroDistance(width) then operator()(width, d) == 0.
virtual ~NeighborhoodWindowFunction ()
 Virtual destructor for good memory hygiene.

Detailed Description

Function that given a width, and a distance from the center of the neighborhood returns a weight to be used to calculate the influence of neighboring nodes at that distance. For each radius, can tell a distance d (possibly infinity) from the center for which all weights for distances greater than or equal to d will be 0.


Constructor & Destructor Documentation

virtual GClasses::SOM::NeighborhoodWindowFunction::~NeighborhoodWindowFunction ( ) [inline, virtual]

Virtual destructor for good memory hygiene.


Member Function Documentation

virtual double GClasses::SOM::NeighborhoodWindowFunction::minZeroDistance ( double  width) const [pure virtual]

If d >= minZeroDistance(width) then operator()(width, d) == 0.

This is essential for avoiding unnecesary computations at smaller window sizes

Implemented in GClasses::SOM::GaussianWindowFunction, and GClasses::SOM::UniformWindowFunction.

virtual double GClasses::SOM::NeighborhoodWindowFunction::operator() ( double  width,
double  distance 
) const [pure virtual]

Returns the weight of this window function at the given width and distance.

Implemented in GClasses::SOM::GaussianWindowFunction, and GClasses::SOM::UniformWindowFunction.