}
public void changeEquation() {
boolean der = this.derivative.isSelected();
ActivationFunction newActivation = null;
switch (this.select.getSelectedIndex()) {
case 0:
newActivation = new ActivationBiPolar();
break;
case 1:
newActivation = new ActivationCompetitive();
break;
case 2:
newActivation = new ActivationGaussian(0, 1, 1);
break;
case 3:
newActivation = new ActivationLinear();
break;
case 4:
newActivation = new ActivationLOG();
break;
case 5:
newActivation = new ActivationSigmoid();
break;
case 6:
newActivation = new ActivationSIN();
break;
case 7:
newActivation = new ActivationSoftMax();
break;
case 8:
newActivation = new ActivationStep();
break;
case 9:
newActivation = new ActivationTANH();
break;
case 10:
newActivation = new ActivationRamp();
break;
}
if( this.activation.getClass() != newActivation.getClass() )
{
this.activation = newActivation;
}
this.equation.setupEquation(newActivation,!der);