Package org.neuroph.core.input

Examples of org.neuroph.core.input.InputFunction


   *            specification of neuron properties
   * @return returns instance of neuron with specified properties
   */
  public static Neuron createNeuron(NeuronProperties neuronProperties) {

                InputFunction inputFunction = null;
                Class inputFunctionClass = neuronProperties.getInputFunction();
               
                if ( inputFunctionClass != null) {
                    inputFunction = createInputFunction(inputFunctionClass);
                } else {           
                    WeightsFunction weightsFunction = createWeightsFunction(neuronProperties.getWeightsFunction());
                    SummingFunction summingFunction = createSummingFunction(neuronProperties.getSummingFunction());
                   
                    inputFunction = new InputFunction(weightsFunction, summingFunction);                   
                }



    TransferFunction transferFunction = createTransferFunction(neuronProperties.getTransferFunctionProperties());
View Full Code Here


  }


        private static InputFunction createInputFunction(Class inputFunctionClass) {
            InputFunction inputFunction = null;

            try {
                inputFunction = (InputFunction) inputFunctionClass.newInstance();
            } catch (InstantiationException e) {
                System.err.println("InstantiationException while creating InputFunction!");
View Full Code Here

   * Creates an instance of Neuron with the weighted sum, input function
   * and Step transfer function. This is the original McCulloch-Pitts
   * neuron model.
   */
  public Neuron() {
    this.inputFunction = new InputFunction();
    this.transferFunction = new Step();
  }
View Full Code Here

TOP

Related Classes of org.neuroph.core.input.InputFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.