org.encog.neural.som.training.basic.neighborhood
public class NeighborhoodSingle extends Object implements NeighborhoodFunction
Constructor and Description |
---|
NeighborhoodSingle() |
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()
The radius for this neighborhood function is always 1.
|
void |
setRadius(double radius)
Set the radius.
|
public double function(int currentNeuron, int bestNeuron)
function
in interface NeighborhoodFunction
currentNeuron
- THe current neuron being evaluated.bestNeuron
- The winning neuron.public double getRadius()
getRadius
in interface NeighborhoodFunction
public void setRadius(double radius)
setRadius
in interface NeighborhoodFunction
radius
- The radius.Copyright © 2014. All Rights Reserved.