public class NeighborhoodBubble extends java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
double |
function(int currentNeuron,
int bestNeuron)
Determine how much the current neuron should be affected by training
based on its proximity to the winning neuron.
|
double |
getRadius() |
void |
setRadius(double radius)
Set the radius.
|
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.