public Function ( int currentNeuron, int bestNeuron ) : double | ||
currentNeuron | int | THe current neuron being evaluated. |
bestNeuron | int | The winning neuron. |
return | double |
public double Function(int currentNeuron, int bestNeuron)
{
int distance = Math.Abs(bestNeuron - currentNeuron);
if (distance <= _radius)
{
return 1.0d;
}
return 0.0d;
}