org.encog.neural.networks.logic
Class ART1Logic

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

public class ART1Logic
extends ARTLogic

Provides the neural logic for an ART1 type network. See ART1Pattern for more information on this type of network.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.encog.neural.networks.logic.ARTLogic
PROPERTY_A1, PROPERTY_B1, PROPERTY_C1, PROPERTY_D1, PROPERTY_L, PROPERTY_VIGILANCE
 
Constructor Summary
ART1Logic()
           
 
Method Summary
 void adjustWeights()
          Adjust the weights for the pattern just presented.
 void compute(BiPolarNeuralData input, BiPolarNeuralData output)
          Compute the output from the ART1 network.
 NeuralData compute(NeuralData input, NeuralOutputHolder useHolder)
          Compute the output for the BasicNetwork class.
 double getA1()
           
 double getB1()
           
 double getC1()
           
 double getD1()
           
 double getL()
           
 double getVigilance()
           
 int getWinner()
           
 boolean hasWinner()
           
 void init(BasicNetwork network)
          Setup the network logic, read parameters from the network.
 double magnitude(BiPolarNeuralData input)
          Get the magnitude of the specified input.
 void reset()
          Reset the weight matrix back to starting values.
 void setA1(double a1)
          Set the A1 parameter.
 void setB1(double b1)
          Set the B1 parameter.
 void setC1(double c1)
          Set the C1 parameter.
 void setD1(double d1)
          Set the D1 parameter.
 void setL(double l)
          Set the L parameter.
 void setVigilance(double vigilance)
          Set the vigilance.
 
Methods inherited from class org.encog.neural.networks.logic.ARTLogic
getNetwork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ART1Logic

public ART1Logic()
Method Detail

adjustWeights

public void adjustWeights()
Adjust the weights for the pattern just presented.


compute

public void compute(BiPolarNeuralData input,
                    BiPolarNeuralData output)
Compute the output from the ART1 network. This can be called directly or used by the BasicNetwork class. Both input and output should be bipolar numbers.

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

compute

public NeuralData compute(NeuralData input,
                          NeuralOutputHolder useHolder)
Compute the output for the BasicNetwork class.

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

getA1

public double getA1()
Returns:
The A1 parameter.

getB1

public double getB1()
Returns:
The B1 parameter.

getC1

public double getC1()
Returns:
The C1 parameter.

getD1

public double getD1()
Returns:
The D1 parameter.

getL

public double getL()
Returns:
The L parameter.

getVigilance

public double getVigilance()
Returns:
The vigilance parameter.

getWinner

public int getWinner()
Returns:
The winning neuron.

hasWinner

public boolean hasWinner()
Returns:
Does this network have a "winner"?

init

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

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

magnitude

public double magnitude(BiPolarNeuralData input)
Get the magnitude of the specified input.

Parameters:
input - The input to calculate the magnitude for.
Returns:
The magnitude of the specified pattern.

reset

public void reset()
Reset the weight matrix back to starting values.


setA1

public void setA1(double a1)
Set the A1 parameter.

Parameters:
a1 - The new value.

setB1

public void setB1(double b1)
Set the B1 parameter.

Parameters:
b1 - The new value.

setC1

public void setC1(double c1)
Set the C1 parameter.

Parameters:
c1 - The new value.

setD1

public void setD1(double d1)
Set the D1 parameter.

Parameters:
d1 - The new value.

setL

public void setL(double l)
Set the L parameter.

Parameters:
l - The new value.

setVigilance

public void setVigilance(double vigilance)
Set the vigilance.

Parameters:
vigilance - The new value.


Copyright © 2011. All Rights Reserved.