|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.training.competitive.neighborhood.NeighborhoodBubble
public class NeighborhoodBubble
A neighborhood function that uses a simple bubble. A width is defined, and any neuron that is plus or minus that width from the winning neuron will be updated as a result of training.
| Constructor Summary | |
|---|---|
NeighborhoodBubble(int width)
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 Summary | |
|---|---|
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. |
int |
getWidth()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NeighborhoodBubble(int width)
width - 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.| Method Detail |
|---|
public double function(int currentNeuron,
int bestNeuron)
function in interface NeighborhoodFunctioncurrentNeuron - THe current neuron being evaluated.bestNeuron - The winning neuron.
public int getWidth()
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||