Class Layer

java.lang.Object
com.imsl.datamining.neural.Layer
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HiddenLayer, InputLayer, OutputLayer

public abstract class Layer extends Object implements Serializable
The base class for Layers in a neural network.
See Also:
  • Constructor Details

    • Layer

      protected Layer(FeedForwardNetwork network)
      Constructs a Layer.
      Parameters:
      network - The FeedForwardNetwork to which this Layer is to be associated.
  • Method Details

    • getIndex

      public int getIndex()
      Returns the index of this Layer.
      Returns:
      An int which contains the value of property index.
    • addNode

      protected void addNode(Node node)
      Associates a Perceptron with this Layer.
      Parameters:
      node - A Node to associate with this Layer.
    • getNodes

      public Node[] getNodes()
      Return a list of the Perceptrons in this Layer.
      Returns:
      An array containing the Nodes associated with this Layer.