JMSLTM Numerical Library 4.0

com.imsl.datamining.neural
Class Perceptron

java.lang.Object
  extended bycom.imsl.datamining.neural.Node
      extended bycom.imsl.datamining.neural.Perceptron
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OutputPerceptron

public class Perceptron
extends Node

A Perceptron node in a neural network. Perceptrons are created by factory methods in a network layer.

Each perceptron has an activation function (g) and a bias (mu). The value of a perceptron is given by g(sum_i w_i X_i + mu), where X_i are the values of nodes input to this perceptron with weights w_i.

Network training will use existing bias values for the starting values for the trainer. Upon completion of network training, the bias values are set to the values computed by the trainer.

See Also:
Feed Forward Class Example 1, Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 Activation getActivation()
          Returns the activation function.
 double getBias()
          Returns the bias for this perceptron.
 void setActivation(Activation activation)
          Sets the activation function.
 void setBias(double bias)
          Sets the bias for this perceptron.
 
Methods inherited from class com.imsl.datamining.neural.Node
getLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

getActivation

public Activation getActivation()
Returns the activation function.

Returns:
An Activation object indicating the activation function.

getBias

public double getBias()
Returns the bias for this perceptron.

Returns:
A double representing the bias for this perceptron.

setActivation

public void setActivation(Activation activation)
Sets the activation function.

Parameters:
activation - An Activation object which represents the activation g to be used by this perceptron.

setBias

public void setBias(double bias)
Sets the bias for this perceptron.

Parameters:
bias - A double scalar value to which the bias is to be set. The bias has a default value of 0.

JMSLTM Numerical Library 4.0

Copyright 1970-2006 Visual Numerics, Inc.
Built June 1 2006.