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 FreeformNeuronconnection - The input connection.public void addOutput(FreeformConnection connection)
addOutput in interface FreeformNeuronconnection - The output connection.public void addTempTraining(int i,
double value)
addTempTraining in interface TempTrainingDatai - The index.value - The value to add.public void allocateTempTraining(int l)
allocateTempTraining in interface TempTrainingDatal - The length.public void clearTempTraining()
clearTempTraining in interface TempTrainingDatapublic double getActivation()
getActivation in interface FreeformNeuronpublic InputSummation getInputSummation()
getInputSummation in interface FreeformNeuronpublic List<FreeformConnection> getOutputs()
getOutputs in interface FreeformNeuronpublic double getSum()
getSum in interface FreeformNeuronpublic double getTempTraining(int index)
getTempTraining in interface TempTrainingDataindex - The indfex.public boolean isBias()
isBias in interface FreeformNeuronpublic void performCalculation()
performCalculation in interface FreeformNeuronpublic void setActivation(double theActivation)
setActivation in interface FreeformNeurontheActivation - THe activation.public void setBias(boolean bias)
setBias in interface FreeformNeuronbias - True, if this neuron is considered a bias neuron.public void setInputSummation(InputSummation theInputSummation)
setInputSummation in interface FreeformNeurontheInputSummation - The input summation method.public void setTempTraining(int index,
double value)
setTempTraining in interface TempTrainingDataindex - The index.value - The value.public void updateContext()
updateContext in interface FreeformNeuronCopyright © 2014. All Rights Reserved.