org.vizzini.ai.neuralnetwork.layer
Class InputLayer

java.lang.Object
  extended by org.vizzini.util.AbstractBean
      extended by org.vizzini.ai.neuralnetwork.layer.AbstractLayer
          extended by org.vizzini.ai.neuralnetwork.layer.AbstractFunctionLayer
              extended by org.vizzini.ai.neuralnetwork.layer.InputLayer
All Implemented Interfaces:
Cloneable, ILayer

public class InputLayer
extends AbstractFunctionLayer

Provides an input layer for a neural network.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from class org.vizzini.util.AbstractBean
IGNORE_PROPERTIES
 
Constructor Summary
InputLayer()
          Construct this object.
InputLayer(String name, int nodeCount)
          Construct this object with the given parameters.
InputLayer(String name, int nodeCount, boolean isBiasNodeUsed)
          Construct this object with the given parameters.
 
Method Summary
 void setActivationFunction(IActivationFunction function)
          Set the activation function.
 void setInputs(double[] inputs)
           
 
Methods inherited from class org.vizzini.ai.neuralnetwork.layer.AbstractFunctionLayer
clearOutputs, equals, evaluate, getActivationFunction, init, isBiasNodeUsed, setBiasNodeUsed
 
Methods inherited from class org.vizzini.ai.neuralnetwork.layer.AbstractLayer
clear, clearInputs, clone, getInput, getInputCount, getInputs, getMaxValueIndex, getName, getOutput, getOutputCount, getOutputs, hashCode, setInput, setInputCount, setName, setOutput, setOutputCount, setOutputs, toDetailString, toString
 
Methods inherited from class org.vizzini.util.AbstractBean
appendArray, appendCollection, appendList, appendMap, compareBooleans, compareObjects, getIgnoreProperties
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputLayer

public InputLayer()
Construct this object.

Since:
v0.3

InputLayer

public InputLayer(String name,
                  int nodeCount)
Construct this object with the given parameters.

Parameters:
name - Name.
nodeCount - Node count.
Since:
v0.3

InputLayer

public InputLayer(String name,
                  int nodeCount,
                  boolean isBiasNodeUsed)
Construct this object with the given parameters.

Parameters:
name - Name.
nodeCount - Node count.
isBiasNodeUsed - Flag indicating if a bias node is used.
Since:
v0.3
Method Detail

setActivationFunction

public void setActivationFunction(IActivationFunction function)
Set the activation function.

Specified by:
setActivationFunction in interface ILayer
Overrides:
setActivationFunction in class AbstractFunctionLayer
Parameters:
function - Activation function.
Since:
v0.3

setInputs

public void setInputs(double[] inputs)
Specified by:
setInputs in interface ILayer
Overrides:
setInputs in class AbstractLayer
Parameters:
inputs - The inputs to set.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02