org.knime.base.data.neural
Class Layer

java.lang.Object
  extended by org.knime.base.data.neural.Layer
Direct Known Subclasses:
HiddenLayer, InputLayer

public abstract class Layer
extends Object

An abstract class defining a layer in a Neural Network.

Author:
Nicolas Cebron, University of Konstanz

Constructor Summary
Layer()
          Used to construct an empty layer which cannot be used unless perceptrons are set.
Layer(Perceptron[] perceptrons)
          Constructs a layer with given perceptrons.
 
Method Summary
 Perceptron getPerceptron(int i)
          Returns perceptron at a given position.
 Perceptron[] getPerceptrons()
          Returns all perceptrons in the layer.
 void setPerceptron(int i, Perceptron perceptron)
          Sets perceptron at a given position.
 void setPerceptrons(Perceptron[] perceptrons)
          Sets all perceptrons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer(Perceptron[] perceptrons)
Constructs a layer with given perceptrons.

Parameters:
perceptrons - perceptrons for this layer

Layer

public Layer()
Used to construct an empty layer which cannot be used unless perceptrons are set.

Method Detail

getPerceptrons

public Perceptron[] getPerceptrons()
Returns all perceptrons in the layer.

Returns:
perceptrons in layer

getPerceptron

public Perceptron getPerceptron(int i)
Returns perceptron at a given position.

Parameters:
i - position
Returns:
perceptron at position i

setPerceptrons

public void setPerceptrons(Perceptron[] perceptrons)
Sets all perceptrons.

Parameters:
perceptrons - new perceptrons for the layer

setPerceptron

public void setPerceptron(int i,
                          Perceptron perceptron)
Sets perceptron at a given position.

Parameters:
i - position
perceptron - new perceptron for position i


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.