GClasses
GClasses::SOM::NeighborhoodWindowFunction Class Referenceabstract

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.

#include <GSelfOrganizingMap.h>

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

Public Member Functions

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

Constructor & Destructor Documentation

virtual GClasses::SOM::NeighborhoodWindowFunction::~NeighborhoodWindowFunction ( )
inlinevirtual

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::UniformWindowFunction, and GClasses::SOM::GaussianWindowFunction.

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::UniformWindowFunction, and GClasses::SOM::GaussianWindowFunction.