public class SinusoidalRule extends NeuronUpdateRule implements BoundedUpdateRule, ActivityGenerator
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
SinusoidalRule() |
Modifier and Type | Method and Description |
---|---|
SinusoidalRule |
deepCopy()
Returns a deep copy of the update rule.
|
boolean |
getAddNoise() |
java.lang.String |
getDescription()
Returns a brief description of this update rule.
|
double |
getFrequency() |
double |
getLowerBound()
Returns the lower bound.
|
Randomizer |
getNoiseGenerator() |
double |
getPhase() |
double |
getRandomValue()
Returns a random value between the upper and lower bounds of this neuron.
|
Network.TimeType |
getTimeType()
Returns the type of time update (discrete or continuous) associated with
this neuron.
|
double |
getUpperBound()
Returns the upper bound.
|
void |
init(Neuron neuron)
TODO: Doesn't feel like good API...
|
void |
setAddNoise(boolean addNoise) |
void |
setFrequency(double frequency) |
void |
setLowerBound(double floor)
Sets the lower bound of this neuron update rule's activation.
|
void |
setNoiseGenerator(Randomizer noise) |
void |
setPhase(double phase) |
void |
setUpperBound(double ceiling)
Sets the upper bound of this neuron update rule's activation.
|
void |
update(Neuron neuron)
Apply the update rule.
|
clear, contextualDecrement, contextualIncrement, decrementActivation, getDefaultIncrement, getGraphicalLowerBound, getGraphicalUpperBound, getIncrement, getInputType, getToolTipText, incrementActivation, isSkipsSynapticUpdates, isSpikingNeuron, setIncrement, setInputType
public Network.TimeType getTimeType()
getTimeType
in class NeuronUpdateRule
public void init(Neuron neuron)
init
in interface ActivityGenerator
public SinusoidalRule deepCopy()
deepCopy
in class NeuronUpdateRule
public void update(Neuron neuron)
update
in class NeuronUpdateRule
neuron
- parent neuronpublic Randomizer getNoiseGenerator()
public void setNoiseGenerator(Randomizer noise)
noise
- The noise to set.public boolean getAddNoise()
public void setAddNoise(boolean addNoise)
addNoise
- The addNoise to set.public double getPhase()
public void setPhase(double phase)
phase
- The phase to set.public double getFrequency()
public void setFrequency(double frequency)
frequency
- The frequency to set.public java.lang.String getDescription()
NeuronUpdateRule
getDescription
in class NeuronUpdateRule
public void setUpperBound(double ceiling)
BoundedUpdateRule
setUpperBound
in interface BoundedUpdateRule
ceiling
- the upper boundpublic void setLowerBound(double floor)
BoundedUpdateRule
setLowerBound
in interface BoundedUpdateRule
floor
- the lower boundpublic double getRandomValue()
NeuronUpdateRule
getRandomValue
in class NeuronUpdateRule
public double getUpperBound()
BoundedUpdateRule
getUpperBound
in interface BoundedUpdateRule
public double getLowerBound()
BoundedUpdateRule
getLowerBound
in interface BoundedUpdateRule