org.knime.base.data.neural
Class InputPerceptron

java.lang.Object
  extended by org.knime.base.data.neural.Perceptron
      extended by org.knime.base.data.neural.InputPerceptron

public class InputPerceptron
extends Perceptron

Class representing an input perceptron.

Author:
Nicolas Cebron, University of Konstanz

Constructor Summary
InputPerceptron()
          Constructs a perceptron with input 0.
InputPerceptron(double input)
          Constructs a perceptron with given input.
 
Method Summary
 double activationFunction(double in)
          Activation function, returns the input.
 double getInput()
          Returns the current input of the perceptron.
 double output()
          Returns the current input of the perceptron.
 void setInput(double input)
          Sets the input to given value.
 
Methods inherited from class org.knime.base.data.neural.Perceptron
evaluate, getClassValue, getThreshold, getWeight, getWeights, random, scalarProduct, setClassValue, setThreshold, setWeight, setWeights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputPerceptron

public InputPerceptron(double input)
Constructs a perceptron with given input.

Parameters:
input - input for the perceptron

InputPerceptron

public InputPerceptron()
Constructs a perceptron with input 0.

Method Detail

getInput

public double getInput()
Returns the current input of the perceptron.

Returns:
current input

setInput

public void setInput(double input)
Sets the input to given value.

Parameters:
input - new input

output

public double output()
Returns the current input of the perceptron.

Specified by:
output in class Perceptron
Returns:
current input

activationFunction

public double activationFunction(double in)
Activation function, returns the input.

Specified by:
activationFunction in class Perceptron
Parameters:
in - input
Returns:
in


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.