org.joone.structure
Class NodeFactory

java.lang.Object
  extended by org.joone.structure.NodeFactory

public class NodeFactory
extends java.lang.Object

A node factory. Use this calss to get various nodes, such as sigmoid or tanh types.

Author:
mg

Field Summary
static DoubleFunction gaussDerivativeFunction
          Gaussian derivative function
static DoubleFunction gaussFunction
          Gaussian function
static DoubleFunction linearDerivativeFunction
          Linear derivative function
static DoubleFunction linearFunction
          Linear function
static DoubleFunction logarithmicDerivativeFunction
          Derivative of logarithmic function
static DoubleFunction logarithmicFunction
          Logarithmic function
static DoubleFunction sigmoidDerivativeFunction
          Sigmoid derivative function
static DoubleFunction sigmoidFunction
          Sigmoid function
static DoubleFunction sineDerivativeFunction
          Return derivative of sine function
static DoubleFunction sineFunction
          Sine function
static DoubleFunction tanhDerivativeFunction
          Tanh derivative function
static DoubleFunction tanhFunction
          Tanh function
 
Constructor Summary
NodeFactory()
           
 
Method Summary
static Node getGaussNode()
          Return a gauss node
static Node getLinearNode()
          Return a linear node
static Node getLogarithmicNode()
          Return a logarithmic node
static Node getSigmoidNode()
          Return a sigmoid node
static Node getSineNode()
          Return a sine node
static Node getTanhNode()
          Return a tanh node
static javax.swing.tree.MutableTreeNode getTreeNode(Node node)
          Given a node, return a suitable treenode description of it
static void setNodeFunctions(AbstractNode node, Layer layer)
          Set the transport and derivative functions of a node from the type of layer it is found in
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linearFunction

public static final DoubleFunction linearFunction
Linear function


linearDerivativeFunction

public static final DoubleFunction linearDerivativeFunction
Linear derivative function


sigmoidFunction

public static final DoubleFunction sigmoidFunction
Sigmoid function


sigmoidDerivativeFunction

public static final DoubleFunction sigmoidDerivativeFunction
Sigmoid derivative function


tanhFunction

public static DoubleFunction tanhFunction
Tanh function


tanhDerivativeFunction

public static final DoubleFunction tanhDerivativeFunction
Tanh derivative function


gaussFunction

public static final DoubleFunction gaussFunction
Gaussian function


gaussDerivativeFunction

public static final DoubleFunction gaussDerivativeFunction
Gaussian derivative function


logarithmicFunction

public static final DoubleFunction logarithmicFunction
Logarithmic function


logarithmicDerivativeFunction

public static final DoubleFunction logarithmicDerivativeFunction
Derivative of logarithmic function


sineFunction

public static final DoubleFunction sineFunction
Sine function


sineDerivativeFunction

public static final DoubleFunction sineDerivativeFunction
Return derivative of sine function

Constructor Detail

NodeFactory

public NodeFactory()
Method Detail

getLinearNode

public static Node getLinearNode()
Return a linear node


getSigmoidNode

public static Node getSigmoidNode()
Return a sigmoid node


getTanhNode

public static Node getTanhNode()
Return a tanh node


getGaussNode

public static Node getGaussNode()
Return a gauss node


getLogarithmicNode

public static Node getLogarithmicNode()
Return a logarithmic node


getSineNode

public static Node getSineNode()
Return a sine node


setNodeFunctions

public static void setNodeFunctions(AbstractNode node,
                                    Layer layer)
Set the transport and derivative functions of a node from the type of layer it is found in


getTreeNode

public static javax.swing.tree.MutableTreeNode getTreeNode(Node node)
Given a node, return a suitable treenode description of it



Submit Feedback to pmarrone@users.sourceforge.net