Examples of InputFunction


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

Examples of org.neuroph.core.input.InputFunction

  }


        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

Examples of org.neuroph.core.input.InputFunction

   * 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

Examples of tv.floe.metronome.classification.neuralnetworks.input.InputFunction

    Config c = new Config();
   
    c.parse(null);
   
    Class inFuncClass = (Class) c.getConfValue("inputFunction");
    InputFunction f = (InputFunction) inFuncClass.newInstance();
   
   
   
    assertEquals("tv.floe.metronome.classification.neuralnetworks.input.WeightedSum", f.getClass().getName() );
   
    System.out.println("> f: " + f.getClass().getName());
   
   
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.