public class MeasurementsHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MeasurementsHelper.NoiseChangeType |
Constructor and Description |
---|
MeasurementsHelper(long sensingDuration)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
convolutionSum(double[] factors,
double[] vals,
int n,
int startIndex)
return convolution sum
|
void |
loadAudioSettings()
Loads the specified audio settings
|
void |
removeMeasurementsHelper(MeasurementsHelper helper)
remove a measurement helper
|
void |
start()
Starts measurement (new), resets variables and calls for new values to MeasurementsService
|
void |
startContinuous()
set up the recording and start recording
|
void |
stop()
Terminates current measurement.
|
public MeasurementsHelper(long sensingDuration)
sensingDuration
- sensing durationpublic double convolutionSum(double[] factors, double[] vals, int n, int startIndex)
factors
- vals
- n
- startIndex
- public void stop()
public void start() throws java.lang.Exception
java.lang.Exception
public void removeMeasurementsHelper(MeasurementsHelper helper)
helper
- measurement helper to removepublic void loadAudioSettings()
public void startContinuous() throws java.lang.Exception
java.lang.Exception