|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.neural.freeform.basic.BasicFreeformConnection
public class BasicFreeformConnection
A basic freeform connection.
Constructor Summary | |
---|---|
BasicFreeformConnection(FreeformNeuron theSource,
FreeformNeuron theTarget)
Construct a basic freeform connection. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicFreeformConnection(FreeformNeuron theSource, FreeformNeuron theTarget)
theSource
- The source neuron.theTarget
- The target neuron.Method Detail |
---|
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.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |