org.encog.neural.som.training.basic.neighborhood
public class NeighborhoodBubble extends Object implements NeighborhoodFunction
| Constructor and Description |
|---|
NeighborhoodBubble(int radius)
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)
radius - The width of the bubble, this is the distance that the neuron
can be from the winning neuron. The true width, across the
bubble, is actually two times this parameter.public double function(int currentNeuron,
int bestNeuron)
function in interface NeighborhoodFunctioncurrentNeuron - THe current neuron being evaluated.bestNeuron - The winning neuron.public double getRadius()
getRadius in interface NeighborhoodFunctionpublic void setRadius(double radius)
setRadius in interface NeighborhoodFunctionradius - The new radius.Copyright © 2014. All Rights Reserved.