saaps.ann.mlff
Class LinNeuron

java.lang.Object
  |
  +--saaps.ann.mlff.Neuron
        |
        +--saaps.ann.mlff.LinNeuron

public class LinNeuron
extends Neuron

Implementation of the linear neuron.


Constructor Summary
LinNeuron()
          Creates new LinNeuron
LinNeuron(Weights w)
          Create a linear neuron from a set of weights and bias.
 
Method Summary
 Data transFun(Data x)
          The linear transfer function.
 
Methods inherited from class saaps.ann.mlff.Neuron
getOutput, setInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinNeuron

public LinNeuron()
Creates new LinNeuron

LinNeuron

public LinNeuron(Weights w)
Create a linear neuron from a set of weights and bias.
Parameters:
w - The weights and bias
Method Detail

transFun

public Data transFun(Data x)
The linear transfer function.
Overrides:
transFun in class Neuron
Parameters:
x - The input to the transfer function
Returns:
The output from the transfer function