|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjass.engine.Out
jass.generators.StatPulses
public class StatPulses
Output random pulses. Interpulse time T is stochastic. Gaussian with mean meanT, and standard deviation stdT. Amplitudes are modeled as in RandPulses.
Field Summary | |
---|---|
protected double |
exponent
|
protected float |
gain
|
protected int |
interval_i
|
protected double |
meanT
|
protected int |
pulseInterval
|
protected float |
srate
|
protected double |
stdT
|
Fields inherited from class jass.engine.Out |
---|
buf, bufferSize, bufOld, lock |
Constructor Summary | |
---|---|
StatPulses(float srate,
int bufferSize)
|
Method Summary | |
---|---|
protected void |
computeBuffer()
Compute the next buffer and store in member float[] buf. |
float |
getMeanT()
Get mean interpulse time |
protected double |
getPulseInterval()
|
float |
getStdT()
Get std of interpulse time |
void |
reset()
Recompute pulse interval |
void |
setGain(float gain)
Set pulse gain |
void |
setMeanT(float meanT)
Set mean interpulse time |
void |
setProbabilityDistributionExponent(float exponent)
Set impulse prob. |
void |
setStdT(float stdT)
Set std of interpulse time |
Methods inherited from class jass.engine.Out |
---|
clearBuffer, copyToOld, getBuffer, getBuffer, getBufferSize, getTime, peekAtBuffer, resetTime, setBufferSize, setTime, setTimeAndNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double meanT
protected float srate
protected double stdT
protected float gain
protected double exponent
protected int pulseInterval
protected int interval_i
Constructor Detail |
---|
public StatPulses(float srate, int bufferSize)
Method Detail |
---|
public void setMeanT(float meanT)
meanT
- mean interpulse timepublic void setGain(float gain)
gain
- gainpublic void setStdT(float stdT)
stdT
- standard deviationpublic float getMeanT()
public float getStdT()
public void setProbabilityDistributionExponent(float exponent)
exponent
- exponent of prob. distributionprotected double getPulseInterval()
public void reset()
protected void computeBuffer()
Out
computeBuffer
in class Out
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |