|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simnet.interfaces.Neuron
org.simnet.neurons.LinearNeuron
org.simnet.neurons.TraceNeuron
public class TraceNeuron
TraceNeuron is used to model Sutton and Barto's model of conditioning via "eligibility traces."
| Field Summary |
|---|
| Fields inherited from class org.simnet.interfaces.Neuron |
|---|
activation, fanIn, fanOut, lowerBound, upperBound |
| Constructor Summary | |
|---|---|
TraceNeuron()
Default constructor needed for external calls which create neurons then set their parameters. |
|
TraceNeuron(Neuron n)
This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied. |
|
| Method Summary | |
|---|---|
void |
clear()
Set activation to 0; override for other "clearing" behavior. |
Neuron |
duplicate()
Returns a duplicate TraceNeuron (used, e.g., in copy/paste). |
double |
getC1()
|
double |
getC2()
|
double |
getDifference()
Returns the difference betwen the predicted and actual output of this neuron. |
double |
getDifferenceHistory()
Returns the difference betwen the predicted and actual output of this neuron. |
static String |
getName()
|
int |
getTimeType()
|
String |
getToolTipText()
Returns string for tool tip or short description. |
double |
getTrace()
|
double |
getTraceHistory()
|
void |
setC1(double c1)
Sets the c1 value. |
void |
setC2(double c2)
Sets the c2 value. |
void |
update()
Update neuron. |
| Methods inherited from class org.simnet.neurons.LinearNeuron |
|---|
getAddNoise, getBias, getClipping, getNoiseGenerator, getSlope, setAddNoise, setBias, setClipping, setNoiseGenerator, setSlope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TraceNeuron()
public TraceNeuron(Neuron n)
n - Neuron to make the type| Method Detail |
|---|
public int getTimeType()
getTimeType in class LinearNeuronpublic Neuron duplicate()
duplicate in class LinearNeuronpublic void update()
update in class LinearNeuronpublic double getDifference()
public double getDifferenceHistory()
public double getTrace()
public static String getName()
public double getC1()
public void setC1(double c1)
c1 - value to be setpublic double getC2()
public void setC2(double c2)
c2 - value to setpublic void clear()
Neuron
clear in class NeuronNeuronpublic String getToolTipText()
Neuron
getToolTipText in class NeuronNeuronpublic double getTraceHistory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||