saaps.network
Class Layer

java.lang.Object
  |
  +--saaps.network.Layer

public class Layer
extends java.lang.Object

The Layer class consist of a collection of Neuron objects.


Constructor Summary
Layer(Jama.Matrix w, Jama.Matrix b)
          A layer is created from the weight matrix and the bias matrix using the default activation function (TANSIG).
Layer(Jama.Matrix w, Jama.Matrix b, int af)
          A layer is created from the weight matrix, the bias matrix and the activation function.
 
Method Summary
 int getNumOfNeurons()
          Get the number of neurons in the layer.
 Jama.Matrix sim(Jama.Matrix input)
          Calculate the output from the layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer(Jama.Matrix w,
             Jama.Matrix b,
             int af)
A layer is created from the weight matrix, the bias matrix and the activation function. All neurons in the layer have the same activation functions.
Parameters:
w - weight matrix
b - bias matrix
af - activation function

Layer

public Layer(Jama.Matrix w,
             Jama.Matrix b)
A layer is created from the weight matrix and the bias matrix using the default activation function (TANSIG). All neurons in the layer have the same activation functions.
Parameters:
w - weight matrix
b - bias matrix
Method Detail

sim

public Jama.Matrix sim(Jama.Matrix input)
Calculate the output from the layer.
Parameters:
input - the input matrix

getNumOfNeurons

public int getNumOfNeurons()
Get the number of neurons in the layer.