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 TempTrainingDatai - The index.value - The value to add.public void addWeight(double delta)
addWeight in interface FreeformConnectiondelta - THe value to add.public void allocateTempTraining(int l)
allocateTempTraining in interface TempTrainingDatal - The length.public void clearTempTraining()
clearTempTraining in interface TempTrainingDatapublic FreeformNeuron getSource()
getSource in interface FreeformConnectionpublic FreeformNeuron getTarget()
getTarget in interface FreeformConnectionpublic double getTempTraining(int index)
getTempTraining in interface TempTrainingDataindex - The indfex.public double getWeight()
getWeight in interface FreeformConnectionpublic boolean isRecurrent()
isRecurrent in interface FreeformConnectionpublic void setRecurrent(boolean recurrent)
setRecurrent in interface FreeformConnectionrecurrent - True, if this is a recurrent connection.public void setSource(FreeformNeuron source)
setSource in interface FreeformConnectionsource - The source neuron.public void setTarget(FreeformNeuron target)
setTarget in interface FreeformConnectiontarget - The target neuron.public void setTempTraining(int index,
double value)
setTempTraining in interface TempTrainingDataindex - The index.value - The value.public void setWeight(double weight)
setWeight in interface FreeformConnectionweight - The weight.Copyright © 2014. All Rights Reserved.