yawn.nn
Class NeuralNode

java.lang.Object
  extended by yawn.nn.NeuralNode
Direct Known Subclasses:
PerceptronNode, PredictionNeuralNode, RadialBasisFunctionsNeuralNode

public abstract class NeuralNode
extends java.lang.Object

An abstract neural node. $Id: NeuralNode.java,v 1.6 2005/04/07 17:28:28 supermarti Exp $

Version:
$Revision: 1.6 $
Author:
Luis Martí (luis dot marti at uc3m dot es)

Field Summary
protected  Pattern input
           
protected  int inputSize
           
 
Constructor Summary
NeuralNode(int inputSize)
           
 
Method Summary
protected abstract  double activationFunction(Pattern input)
           
 int getInputSize()
           
 double output()
           
 void reset()
          resets the current activation.
 void setInput(Pattern val)
          sets the current input of the node
 void setInputElement(double val, int i)
           
 void setInputSize(int inputSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected Pattern input

inputSize

protected int inputSize
Constructor Detail

NeuralNode

public NeuralNode(int inputSize)
Method Detail

setInputSize

public void setInputSize(int inputSize)
Parameters:
inputSize -

getInputSize

public int getInputSize()

reset

public void reset()
resets the current activation. By default removes the current input.


setInput

public void setInput(Pattern val)
sets the current input of the node

Parameters:
val - the input

output

public double output()

activationFunction

protected abstract double activationFunction(Pattern input)

setInputElement

public void setInputElement(double val,
                            int i)


Copyright © 2003-2005 GIAA, Universidad Carlos III de Madrid. All Rights Reserved.