|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.dsp.SignalPower
public final class SignalPower
A power metering algorithm.
Method Summary | |
---|---|
static void |
biasAndRange(short[] sdata,
int off,
int samples,
float[] out)
Calculate the bias and range of the given input signal. |
static double |
calculatePowerDb(short[] sdata,
int off,
int samples)
Calculate the power of the given input signal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final void biasAndRange(short[] sdata, int off, int samples, float[] out)
sdata
- Buffer containing the input samples to process.off
- Offset in sdata of the data of interest.samples
- Number of data samples to process.out
- A float array in which the results will be placed
Must have space for two entries, which will be
set to:
java.lang.NullPointerException
- Null output array reference.
java.lang.ArrayIndexOutOfBoundsException
- Output array too small.public static final double calculatePowerDb(short[] sdata, int off, int samples)
sdata
- Buffer containing the input samples to process.off
- Offset in sdata of the data of interest.samples
- Number of data samples to process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |