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.
#include <GSelfOrganizingMap.h>
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... | |
|
inlinevirtual |
Virtual destructor for good memory hygiene.
|
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.
|
pure virtual |
Returns the weight of this window function at the given width and distance.
Implemented in GClasses::SOM::UniformWindowFunction, and GClasses::SOM::GaussianWindowFunction.