classifier.nn
Class Neuron

java.lang.Object
  extended byclassifier.nn.Node
      extended byclassifier.nn.Neuron
All Implemented Interfaces:
NetworkComponent, java.io.Serializable

public class Neuron
extends Node
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Neuron(int layer, int num, activationFunction actFunc)
           
 
Method Summary
 void addLinkFrom(Network net, int layer, int numNode, double weight)
           
 java.lang.Integer getBias()
           
 double getBiasWeight()
           
 LinkFrom getLinkFrom(int i)
           
 int getNumLinks()
           
 java.lang.Object getOutput()
           
 void removeLinkFrom(Network net, int numLink)
           
 void setBiasWeight(double w)
           
 void setInput(java.lang.Object input)
           
 
Methods inherited from class classifier.nn.Node
addLinkTo, getLayer, getLinkTo, getLinkTo, getNum, getNumLinkTo, removeLinkTo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Neuron

public Neuron(int layer,
              int num,
              activationFunction actFunc)
Method Detail

getBias

public java.lang.Integer getBias()

setInput

public void setInput(java.lang.Object input)
Specified by:
setInput in class Node

getOutput

public java.lang.Object getOutput()
Specified by:
getOutput in class Node

setBiasWeight

public void setBiasWeight(double w)

getBiasWeight

public double getBiasWeight()

addLinkFrom

public void addLinkFrom(Network net,
                        int layer,
                        int numNode,
                        double weight)

getNumLinks

public int getNumLinks()

getLinkFrom

public LinkFrom getLinkFrom(int i)

removeLinkFrom

public void removeLinkFrom(Network net,
                           int numLink)