public virtual double Function(int currentNeuron, int bestNeuron) { if (currentNeuron == bestNeuron) { return 1.0d; } return 0.0d; }