org.encog.neural.freeform.basic
public class BasicFreeformNeuron extends Object implements FreeformNeuron, Serializable
Constructor and Description |
---|
BasicFreeformNeuron(InputSummation theInputSummation) |
Modifier and Type | Method and Description |
---|---|
void |
addInput(FreeformConnection connection)
Add an input connection to this neuron.
|
void |
addOutput(FreeformConnection connection)
Add an output connection to this neuron.
|
void |
addTempTraining(int i,
double value)
Add to the specified temp value.
|
void |
allocateTempTraining(int l)
Allocate the specified length of temp training.
|
void |
clearTempTraining()
Clear the temp training.
|
double |
getActivation() |
InputSummation |
getInputSummation() |
List<FreeformConnection> |
getOutputs() |
double |
getSum() |
double |
getTempTraining(int index)
Get the specified temp training.
|
boolean |
isBias() |
void |
performCalculation()
Perform the internal calculation for this neuron.
|
void |
setActivation(double theActivation)
Set the activation, or final output for this neuron.
|
void |
setBias(boolean bias)
Determine if this neuron is a bias neuron.
|
void |
setInputSummation(InputSummation theInputSummation)
Set the input summation method.
|
void |
setTempTraining(int index,
double value)
Set a temp training value.
|
String |
toString() |
void |
updateContext()
Update the context value for this neuron.
|
public BasicFreeformNeuron(InputSummation theInputSummation)
public void addInput(FreeformConnection connection)
addInput
in interface FreeformNeuron
connection
- The input connection.public void addOutput(FreeformConnection connection)
addOutput
in interface FreeformNeuron
connection
- The output connection.public void addTempTraining(int i, double value)
addTempTraining
in interface TempTrainingData
i
- The index.value
- The value to add.public void allocateTempTraining(int l)
allocateTempTraining
in interface TempTrainingData
l
- The length.public void clearTempTraining()
clearTempTraining
in interface TempTrainingData
public double getActivation()
getActivation
in interface FreeformNeuron
public InputSummation getInputSummation()
getInputSummation
in interface FreeformNeuron
public List<FreeformConnection> getOutputs()
getOutputs
in interface FreeformNeuron
public double getSum()
getSum
in interface FreeformNeuron
public double getTempTraining(int index)
getTempTraining
in interface TempTrainingData
index
- The indfex.public boolean isBias()
isBias
in interface FreeformNeuron
public void performCalculation()
performCalculation
in interface FreeformNeuron
public void setActivation(double theActivation)
setActivation
in interface FreeformNeuron
theActivation
- THe activation.public void setBias(boolean bias)
setBias
in interface FreeformNeuron
bias
- True, if this neuron is considered a bias neuron.public void setInputSummation(InputSummation theInputSummation)
setInputSummation
in interface FreeformNeuron
theInputSummation
- The input summation method.public void setTempTraining(int index, double value)
setTempTraining
in interface TempTrainingData
index
- The index.value
- The value.public void updateContext()
updateContext
in interface FreeformNeuron
Copyright © 2014. All Rights Reserved.