|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simbrain.world.odorworld.Stimulus
public class Stimulus
Stimulus.
| Field Summary | |
|---|---|
static String[] |
DECAYFUNCTIONS
String array of decay functions. |
static String |
GAUSSIAN
String value. |
static String |
LINEAR
String value. |
static String |
QUADRATIC
String value. |
static String |
STEP
String value. |
| Constructor Summary | |
|---|---|
Stimulus()
Default constructor. |
|
Stimulus(double[] distalstim,
String decay,
double disp,
boolean addNoise,
double noiseLevel)
Instance of stimulus initializing values to be set. |
|
| Method Summary | |
|---|---|
boolean |
getAddNoise()
Return the add noise. |
String |
getDecayFunction()
Return the decay function. |
int |
getDecayFunctionIndex(String df)
Helper function for combo boxes. |
static String[] |
getDecayFunctions()
Return the decay functions. |
double |
getDispersion()
Return the dispersion. |
double |
getNoiseLevel()
Return the noise level. |
double |
getPeak()
|
double[] |
getStimulus()
Return the stimulus. |
double[] |
getStimulus(double distance)
Calculate what impact the object will have on the creature's receptors (input nodes) based on its distance from this object and its features (whether it is a "noisy object", and how the stimulus decays. |
int |
getStimulusDimension()
Return the dimension of the stimulus. |
String |
getStimulusS()
Return the stimulus string. |
double[] |
getStimulusVector()
Return the stimulus vector. |
boolean |
isAddNoise()
Return add noise. |
void |
randomize()
Randomize values. |
void |
setAddNoise(boolean b)
Sets the add noise. |
void |
setDecayFunction(String decay)
Sets the decay funcion. |
void |
setDispersion(double d)
Sets the dispersion. |
void |
setNoiseLevel(double d)
Sets the noise level. |
void |
setPeak(double peak)
|
void |
setStimulusS(String vectorString)
Sets the stimulus string. |
void |
setStimulusVector(double[] newStim)
Sets the stimulus vector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STEP
public static final String LINEAR
public static final String GAUSSIAN
public static final String QUADRATIC
public static final String[] DECAYFUNCTIONS
| Constructor Detail |
|---|
public Stimulus(double[] distalstim,
String decay,
double disp,
boolean addNoise,
double noiseLevel)
distalstim - Distal stimulusdecay - Decay ratedisp - DispersionaddNoise - Add noisenoiseLevel - Level of noisepublic Stimulus()
| Method Detail |
|---|
public void randomize()
public int getStimulusDimension()
public void setStimulusVector(double[] newStim)
newStim - New stimuluspublic double[] getStimulusVector()
public boolean isAddNoise()
public double[] getStimulus()
public String getStimulusS()
public void setStimulusS(String vectorString)
vectorString - Stimulus stringpublic double getNoiseLevel()
public void setAddNoise(boolean b)
b - the add noisepublic boolean getAddNoise()
public void setDecayFunction(String decay)
decay - decay functionpublic void setNoiseLevel(double d)
d - Noise levelpublic void setDispersion(double d)
d - Dispersionpublic double getDispersion()
public String getDecayFunction()
public double[] getStimulus(double distance)
distance - distance of creature from object
public int getDecayFunctionIndex(String df)
df - the decayfunction index to return
public static String[] getDecayFunctions()
public double getPeak()
public void setPeak(double peak)
peak - The peak to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||