org.encog.neural.freeform.basic
Class BasicFreeformConnection
- java.lang.Object
-
- org.encog.neural.freeform.basic.BasicFreeformConnection
-
- All Implemented Interfaces:
- java.io.Serializable, FreeformConnection, TempTrainingData
public class BasicFreeformConnection extends java.lang.Object implements FreeformConnection, java.io.Serializable
A basic freeform connection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BasicFreeformConnection(FreeformNeuron theSource, FreeformNeuron theTarget)Construct a basic freeform connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddTempTraining(int i, double value)Add to the specified temp value.voidaddWeight(double delta)Add to the connection weight.voidallocateTempTraining(int l)Allocate the specified length of temp training.voidclearTempTraining()Clear the temp training.FreeformNeurongetSource()FreeformNeurongetTarget()doublegetTempTraining(int index)Get the specified temp training.doublegetWeight()booleanisRecurrent()voidsetRecurrent(boolean recurrent)Determine if this is a recurrent connecton.voidsetSource(FreeformNeuron source)Set the source neuron.voidsetTarget(FreeformNeuron target)Set the target neuron.voidsetTempTraining(int index, double value)Set a temp training value.voidsetWeight(double weight)Set the weight.java.lang.StringtoString()
-
-
-
Constructor Detail
-
BasicFreeformConnection
public BasicFreeformConnection(FreeformNeuron theSource, FreeformNeuron theTarget)
Construct a basic freeform connection.- Parameters:
theSource- The source neuron.theTarget- The target neuron.
-
-
Method Detail
-
addTempTraining
public void addTempTraining(int i, double value)Add to the specified temp value.- Specified by:
addTempTrainingin interfaceTempTrainingData- Parameters:
i- The index.value- The value to add.
-
addWeight
public void addWeight(double delta)
Add to the connection weight.- Specified by:
addWeightin interfaceFreeformConnection- Parameters:
delta- THe value to add.
-
allocateTempTraining
public void allocateTempTraining(int l)
Allocate the specified length of temp training.- Specified by:
allocateTempTrainingin interfaceTempTrainingData- Parameters:
l- The length.
-
clearTempTraining
public void clearTempTraining()
Clear the temp training.- Specified by:
clearTempTrainingin interfaceTempTrainingData
-
getSource
public FreeformNeuron getSource()
- Specified by:
getSourcein interfaceFreeformConnection- Returns:
- The source neuron.
-
getTarget
public FreeformNeuron getTarget()
- Specified by:
getTargetin interfaceFreeformConnection- Returns:
- The target neuron.
-
getTempTraining
public double getTempTraining(int index)
Get the specified temp training.- Specified by:
getTempTrainingin interfaceTempTrainingData- Parameters:
index- The indfex.- Returns:
- The temp training value.
-
getWeight
public double getWeight()
- Specified by:
getWeightin interfaceFreeformConnection- Returns:
- The weight.
-
isRecurrent
public boolean isRecurrent()
- Specified by:
isRecurrentin interfaceFreeformConnection- Returns:
- Is this a recurrent connection?
-
setRecurrent
public void setRecurrent(boolean recurrent)
Determine if this is a recurrent connecton.- Specified by:
setRecurrentin interfaceFreeformConnection- Parameters:
recurrent- True, if this is a recurrent connection.
-
setSource
public void setSource(FreeformNeuron source)
Set the source neuron.- Specified by:
setSourcein interfaceFreeformConnection- Parameters:
source- The source neuron.
-
setTarget
public void setTarget(FreeformNeuron target)
Set the target neuron.- Specified by:
setTargetin interfaceFreeformConnection- Parameters:
target- The target neuron.
-
setTempTraining
public void setTempTraining(int index, double value)Set a temp training value.- Specified by:
setTempTrainingin interfaceTempTrainingData- Parameters:
index- The index.value- The value.
-
setWeight
public void setWeight(double weight)
Set the weight.- Specified by:
setWeightin interfaceFreeformConnection- Parameters:
weight- The weight.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG