public final class Stimulus extends Object implements Serializable, Transmissible
Modifier and Type | Field and Description |
---|---|
Seed |
seed |
SimulatorParser |
simulatorParser |
Constructor and Description |
---|
Stimulus(ModelFactory modelFactory,
SimulatorParser simulatorParser,
double strength,
int type,
double onTime,
double offTime,
double freq,
double decay,
Seed seed,
int channel) |
Modifier and Type | Method and Description |
---|---|
void |
background(String pre,
String suf)
Stimulate the whole layer of neurons.
|
void |
background(String pre,
String suf,
int hostId)
Injecting noise to the whole layer.
|
int |
getChannel() |
double |
getDecay() |
double |
getFreq() |
double |
getNextTime(double currTime)
Get the next time given current time.
|
double |
getOffTime() |
double |
getOnTime() |
double |
getStrength() |
int |
getType() |
ArrayList<PInputEvent> |
init(int sourceID) |
double |
nonlinearFilter(double x,
double gamma,
double k)
Non linear filter to simualte Retina
|
void |
plotFilledSquare(int x1,
int y1,
int x2,
int y2,
String pre,
String suf) |
void |
plotFilledSquare(int x1,
int y1,
int x2,
int y2,
String pre,
String suf,
int hostId)
Stimulate a filled square of neurons
|
void |
plotImg(String pre,
String suf,
String filename,
double[][] filter)
Given image file, stimulate the layer of neurons accourding to image
intensity
|
void |
plotImg(String pre,
String suf,
String filename,
double[][] filter,
double gamma,
double k,
int hostId) |
void |
plotLine(int x1,
int y1,
int x2,
int y2,
String pre,
String suf) |
void |
plotLine(int x1,
int y1,
int x2,
int y2,
String pre,
String suf,
int hostId)
Stimulate a line of neurons
|
void |
plotMatrix(String pre,
String suf,
int cenX,
int cenY,
double[][] matrix) |
void |
plotMatrix(String pre,
String suf,
int cenX,
int cenY,
double[][] matrix,
int hostId)
Stimulate the layer of neurons with a given matrix.
|
void |
plotRImg(String pre,
String suf,
String filename,
double[][] filter)
Given image file, stimulate the layer of neurons accourding to reverse
of image intensity.
|
void |
plotRImg(String pre,
String suf,
String filename,
double[][] filter,
double gamma,
double k,
int hostId)
Plot reverse image.
|
void |
plotSquare(int x1,
int y1,
int x2,
int y2,
String pre,
String suf) |
void |
plotSquare(int x1,
int y1,
int x2,
int y2,
String pre,
String suf,
int hostId)
Stimulate a square of neurons.
|
public SimulatorParser simulatorParser
public Stimulus(ModelFactory modelFactory, SimulatorParser simulatorParser, double strength, int type, double onTime, double offTime, double freq, double decay, Seed seed, int channel)
public int getChannel()
public double getDecay()
public double getFreq()
public double getOffTime()
public double getOnTime()
public double getStrength()
public int getType()
public ArrayList<PInputEvent> init(int sourceID)
public double getNextTime(double currTime)
public void plotSquare(int x1, int y1, int x2, int y2, String pre, String suf, int hostId)
x1
- y1
- x2
- y2
- pre
- suf
- hostId
- public void plotFilledSquare(int x1, int y1, int x2, int y2, String pre, String suf, int hostId)
public void plotLine(int x1, int y1, int x2, int y2, String pre, String suf, int hostId)
public void plotImg(String pre, String suf, String filename, double[][] filter)
public void plotRImg(String pre, String suf, String filename, double[][] filter)
public void plotMatrix(String pre, String suf, int cenX, int cenY, double[][] matrix, int hostId)
public void plotMatrix(String pre, String suf, int cenX, int cenY, double[][] matrix)
public void background(String pre, String suf)
public void background(String pre, String suf, int hostId)
public void plotRImg(String pre, String suf, String filename, double[][] filter, double gamma, double k, int hostId)
public double nonlinearFilter(double x, double gamma, double k)
x
- gamma
- k
- public void plotImg(String pre, String suf, String filename, double[][] filter, double gamma, double k, int hostId)
public void plotSquare(int x1, int y1, int x2, int y2, String pre, String suf)
public void plotFilledSquare(int x1, int y1, int x2, int y2, String pre, String suf)