Neural Networks  0.0.1
 All Classes Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Node Class Reference

Public Member Functions

 Node (int type)
 
void setInput (Double inputValue)
 
void calculateOutput ()
 
double getSum ()
 
double getOutput ()
 

Public Attributes

ArrayList< NodeWeightPairparents =null
 

Detailed Description

Class for internal organization of a Neural Network. There are 5 types of nodes. Check the type attribute of the node for details

Constructor & Destructor Documentation

Node.Node ( int  type)
inline

Constructor of Node. The type of node is constructed as 0=input,1=biasToHidden,2=hidden,3=biasToOutput,4=Output

Member Function Documentation

void Node.calculateOutput ( )
inline

Calculate the output of a sigmoid activate function. You can assume that outputs of the parent nodes have already been calculated You can get this value by using getOutput()

double Node.getOutput ( )
inline

Return the output of a node. same as input for input nodes, 1.00 for bias nodes.

Returns
the output of thsi node
double Node.getSum ( )
inline

Any one uses this?

void Node.setInput ( Double  inputValue)
inline

Set the input value of this node. Only work if the node is input type (type = 0)

Parameters
inputValue

Member Data Documentation

ArrayList<NodeWeightPair> Node.parents =null

Array List that will contain the parents (including the bias node) with weights if applicable


The documentation for this class was generated from the following file: