GClasses
|
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>
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. |
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.
virtual GClasses::SOM::NeighborhoodWindowFunction::~NeighborhoodWindowFunction | ( | ) | [inline, virtual] |
Virtual destructor for good memory hygiene.
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.