org.encog.neural.freeform.basic
public class BasicFreeformConnection extends Object implements FreeformConnection, Serializable
Constructor and Description |
---|
BasicFreeformConnection(FreeformNeuron theSource,
FreeformNeuron theTarget)
Construct a basic freeform connection.
|
Modifier and Type | Method and Description |
---|---|
void |
addTempTraining(int i,
double value)
Add to the specified temp value.
|
void |
addWeight(double delta)
Add to the connection weight.
|
void |
allocateTempTraining(int l)
Allocate the specified length of temp training.
|
void |
clearTempTraining()
Clear the temp training.
|
FreeformNeuron |
getSource() |
FreeformNeuron |
getTarget() |
double |
getTempTraining(int index)
Get the specified temp training.
|
double |
getWeight() |
boolean |
isRecurrent() |
void |
setRecurrent(boolean recurrent)
Determine if this is a recurrent connecton.
|
void |
setSource(FreeformNeuron source)
Set the source neuron.
|
void |
setTarget(FreeformNeuron target)
Set the target neuron.
|
void |
setTempTraining(int index,
double value)
Set a temp training value.
|
void |
setWeight(double weight)
Set the weight.
|
String |
toString() |
public BasicFreeformConnection(FreeformNeuron theSource, FreeformNeuron theTarget)
theSource
- The source neuron.theTarget
- The target neuron.public void addTempTraining(int i, double value)
addTempTraining
in interface TempTrainingData
i
- The index.value
- The value to add.public void addWeight(double delta)
addWeight
in interface FreeformConnection
delta
- THe value to add.public void allocateTempTraining(int l)
allocateTempTraining
in interface TempTrainingData
l
- The length.public void clearTempTraining()
clearTempTraining
in interface TempTrainingData
public FreeformNeuron getSource()
getSource
in interface FreeformConnection
public FreeformNeuron getTarget()
getTarget
in interface FreeformConnection
public double getTempTraining(int index)
getTempTraining
in interface TempTrainingData
index
- The indfex.public double getWeight()
getWeight
in interface FreeformConnection
public boolean isRecurrent()
isRecurrent
in interface FreeformConnection
public void setRecurrent(boolean recurrent)
setRecurrent
in interface FreeformConnection
recurrent
- True, if this is a recurrent connection.public void setSource(FreeformNeuron source)
setSource
in interface FreeformConnection
source
- The source neuron.public void setTarget(FreeformNeuron target)
setTarget
in interface FreeformConnection
target
- The target neuron.public void setTempTraining(int index, double value)
setTempTraining
in interface TempTrainingData
index
- The index.value
- The value.public void setWeight(double weight)
setWeight
in interface FreeformConnection
weight
- The weight.Copyright © 2014. All Rights Reserved.