org.simnet.neurons
Class SigmoidalNeuron

java.lang.Object
  extended by org.simnet.interfaces.Neuron
      extended by org.simnet.neurons.SigmoidalNeuron
All Implemented Interfaces:
GaugeSource

public class SigmoidalNeuron
extends Neuron

SigmoidalNeuron.


Field Summary
static int ARCTAN
          Arctan.
static int BARE
          Tanh.
static int SIGM
          Standard Sigmoidal.
static int TANH
          Tanh.
 
Fields inherited from class org.simnet.interfaces.Neuron
activation, fanIn, fanOut, lowerBound, upperBound
 
Constructor Summary
SigmoidalNeuron()
          Default constructor needed for external calls which create neurons then set their parameters.
SigmoidalNeuron(Neuron n)
          This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.
 
Method Summary
 Neuron duplicate()
           
 boolean getAddNoise()
           
 double getBias()
           
 boolean getClipping()
           
static String[] getFunctionList()
           
 int getImplementationIndex()
           
static String getName()
           
 RandomSource getNoiseGenerator()
           
 double getSlope()
           
 int getTimeType()
           
 void setAddNoise(boolean addNoise)
           
 void setBias(double inflectionY)
           
 void setClipping(boolean clipping)
           
 void setImplementationIndex(int index)
           
 void setNoiseGenerator(RandomSource noise)
           
 void setSlope(double inflectionPointSlope)
           
 void update()
          Update neuron.
 
Methods inherited from class org.simnet.interfaces.Neuron
addActivation, addSource, addTarget, checkBounds, clear, clip, connectedToWeight, containsString, debug, decrementActivation, deleteConnectedSynapses, deleteFanIn, deleteFanOut, duplicate, getActivation, getAverageInput, getBuffer, getFanIn, getFanOut, getGaugeValue, getHelp, getId, getIncrement, getInputValue, getLowerBound, getMotorCoupling, getNeuronTypeIndex, getNumberOfActiveInputs, getParentNetwork, getSensoryCoupling, getSummedIncomingWeights, getToolTipText, getTotalInput, getType, getTypeList, getUpperBound, getWeightedInputs, getX, getY, incrementActivation, initCastor, isInput, isOutput, randomize, randomizeBuffer, round, setActivation, setBuffer, setFanIn, setFanOut, setId, setIncrement, setInputValue, setLowerBound, setMotorCoupling, setParentNetwork, setSensoryCoupling, setTypeList, setUpperBound, setX, setY, toString, updateConnectedOutward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TANH

public static final int TANH
Tanh.

See Also:
Constant Field Values

BARE

public static final int BARE
Tanh.

See Also:
Constant Field Values

ARCTAN

public static final int ARCTAN
Arctan.

See Also:
Constant Field Values

SIGM

public static final int SIGM
Standard Sigmoidal.

See Also:
Constant Field Values
Constructor Detail

SigmoidalNeuron

public SigmoidalNeuron()
Default constructor needed for external calls which create neurons then set their parameters.


SigmoidalNeuron

public SigmoidalNeuron(Neuron n)
This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.

Parameters:
n - Neuron to be made of type.
Method Detail

getTimeType

public int getTimeType()
Specified by:
getTimeType in class Neuron
Returns:
Time type.

update

public void update()
Update neuron.

Specified by:
update in class Neuron

duplicate

public Neuron duplicate()
Specified by:
duplicate in class Neuron
Returns:
duplicate SigmoidalNeuron (used, e.g., in copy/paste).

getBias

public double getBias()
Returns:
Returns the inflectionPoint.

setBias

public void setBias(double inflectionY)
Parameters:
inflectionY - The inflectionY to set.

getSlope

public double getSlope()
Returns:
Returns the inflectionPointSlope.

setSlope

public void setSlope(double inflectionPointSlope)
Parameters:
inflectionPointSlope - The inflectionPointSlope to set.

getFunctionList

public static String[] getFunctionList()
Returns:
Returns the functionList.

setImplementationIndex

public void setImplementationIndex(int index)
Parameters:
index - The impementatinIndex to set

getImplementationIndex

public int getImplementationIndex()
Returns:
Returns the implementationIndex

getNoiseGenerator

public RandomSource getNoiseGenerator()
Returns:
Returns the noise.

setNoiseGenerator

public void setNoiseGenerator(RandomSource noise)
Parameters:
noise - The noise to set.

getAddNoise

public boolean getAddNoise()
Returns:
Returns the addNoise.

setAddNoise

public void setAddNoise(boolean addNoise)
Parameters:
addNoise - The addNoise to set.

getName

public static String getName()
Returns:
Name of neuron type.

getClipping

public boolean getClipping()
Returns:
Returns the clipping.

setClipping

public void setClipping(boolean clipping)
Parameters:
clipping - The clipping to set.