org.encog.neural.networks.logic
Class BAMLogic

java.lang.Object
  extended by org.encog.neural.networks.logic.BAMLogic
All Implemented Interfaces:
Serializable, NeuralLogic

public class BAMLogic
extends Object
implements NeuralLogic

Provides the neural logic for an BAM type network. See BAMPattern for more information on this type of network.

See Also:
Serialized Form

Constructor Summary
BAMLogic()
           
 
Method Summary
 void addPattern(NeuralData inputPattern, NeuralData outputPattern)
          Add a pattern to the neural network.
 void clear()
          Clear any connection weights.
 NeuralDataMapping compute(NeuralDataMapping input)
          Compute the network for the specified input.
 NeuralData compute(NeuralData input, NeuralOutputHolder useHolder)
          Setup the network logic, read parameters from the network.
 int getF1Neurons()
           
 int getF2Neurons()
           
 BasicNetwork getNetwork()
           
 void init(BasicNetwork network)
          Setup the network logic, read parameters from the network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BAMLogic

public BAMLogic()
Method Detail

addPattern

public void addPattern(NeuralData inputPattern,
                       NeuralData outputPattern)
Add a pattern to the neural network.

Parameters:
inputPattern - The input pattern.
outputPattern - The output pattern(for this input).

clear

public void clear()
Clear any connection weights.


compute

public NeuralData compute(NeuralData input,
                          NeuralOutputHolder useHolder)
Setup the network logic, read parameters from the network. NOT USED, call compute(NeuralInputData).

Specified by:
compute in interface NeuralLogic
Parameters:
input - NOT USED
useHolder - NOT USED
Returns:
NOT USED

compute

public NeuralDataMapping compute(NeuralDataMapping input)
Compute the network for the specified input.

Parameters:
input - The input to the network.
Returns:
The output from the network.

getF1Neurons

public int getF1Neurons()
Returns:
The count of input neurons.

getF2Neurons

public int getF2Neurons()
Returns:
The count of output neurons.

getNetwork

public BasicNetwork getNetwork()
Returns:
The network.

init

public void init(BasicNetwork network)
Setup the network logic, read parameters from the network.

Specified by:
init in interface NeuralLogic
Parameters:
network - The network that this logic class belongs to.


Copyright © 2011. All Rights Reserved.