Package simulatedAcquisition.sounds
Class RandomQuadratics
java.lang.Object
simulatedAcquisition.sounds.SimSignal
simulatedAcquisition.sounds.RandomQuadratics
- Direct Known Subclasses:
BlueWhaleD
,RandomMystecete
,RandomWhistles
,RightWhales
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
double[]
double[]
getMeanR()
getName()
double[]
getSignal
(int channel, float sampleRate, double sampleOffset) Get a single simulated signal.double[]
void
Called just before simsound loops through channels and propagation paths so that parameters of a new sound can be set up.void
setCurveR
(double[] curveR) void
setLengthR
(double[] lengthR) void
setMeanR
(double[] meanR) void
setSlopeR
(double[] slopeR)
-
Constructor Details
-
RandomQuadratics
public RandomQuadratics()
-
-
Method Details
-
getName
-
prepareSignal
public void prepareSignal()Description copied from class:SimSignal
Called just before simsound loops through channels and propagation paths so that parameters of a new sound can be set up. Generally, if the sounds are deterministic and all the same, nothing has to be done here. but if sounds contain random elements, then it will be necessary to set up the random bit here so that the generatet sound is the same on all channels.- Overrides:
prepareSignal
in classSimSignal
-
getSignal
public double[] getSignal(int channel, float sampleRate, double sampleOffset) Description copied from class:SimSignal
Get a single simulated signal.- Specified by:
getSignal
in classSimSignal
- Parameters:
sampleRate
- sample rate of datasampleOffset
- sample offset - 0invalid input: '<'=sampleOffsetinvalid input: '<'1
How far into the sound the first sample is, i.e. 0 means that the first sample point will be right on the start of the sound (value 0 if it's sin wave based), value 0.5 would be half a sample later.- Returns:
- a signal for a single channel.
-
getLengthR
public double[] getLengthR() -
setLengthR
public void setLengthR(double[] lengthR) -
getMeanR
public double[] getMeanR() -
setMeanR
public void setMeanR(double[] meanR) -
getSlopeR
public double[] getSlopeR() -
setSlopeR
public void setSlopeR(double[] slopeR) -
getCurveR
public double[] getCurveR() -
setCurveR
public void setCurveR(double[] curveR)
-