|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.som.training.basic.neighborhood.NeighborhoodSingle
public class NeighborhoodSingle
A very simple neighborhood function that will return 1.0 (full effect) for the winning neuron, and 0.0 (no change) for everything else.
| Constructor Summary | |
|---|---|
NeighborhoodSingle()
|
|
| 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. |
double |
getRadius()
The radius for this neighborhood function is always 1. |
void |
setRadius(double radius)
Set the radius. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NeighborhoodSingle()
| Method Detail |
|---|
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 radius.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||