C# Class Encog.Neural.SOM.Training.Neighborhood.NeighborhoodBubble

A neighborhood function that uses a simple bubble. A radius is defined, and any neuron that is plus or minus that width from the winning neuron will be updated as a result of training.
Inheritance: INeighborhoodFunction
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Function ( int currentNeuron, int bestNeuron ) : double

Determine how much the current neuron should be affected by training based on its proximity to the winning neuron.

NeighborhoodBubble ( int radius ) : System

Create a bubble neighborhood function that will return 1.0 (full update) for any neuron that is plus or minus the width distance from the winning neuron.

Method Details

Function() public method

Determine how much the current neuron should be affected by training based on its proximity to the winning neuron.
public Function ( int currentNeuron, int bestNeuron ) : double
currentNeuron int THe current neuron being evaluated.
bestNeuron int The winning neuron.
return double

NeighborhoodBubble() public method

Create a bubble neighborhood function that will return 1.0 (full update) for any neuron that is plus or minus the width distance from the winning neuron.
public NeighborhoodBubble ( int radius ) : System
radius int bubble, is actually two times this parameter.
return System