*/
public static Perceptron createPerceptron(int inputNeuronsCount, int outputNeuronsCount, TransferFunctionType transferFunctionType, Class learningRule) {
Perceptron nnet = new Perceptron(inputNeuronsCount, outputNeuronsCount, transferFunctionType);
if (learningRule.getName().equals(PerceptronLearning.class.getName())) {
nnet.setLearningRule(new PerceptronLearning());
} else if (learningRule.getName().equals(BinaryDeltaRule.class.getName())) {
nnet.setLearningRule(new BinaryDeltaRule());
}
return nnet;