|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.resource.GoertzelFilter
public class GoertzelFilter
| Constructor Summary | |
|---|---|
GoertzelFilter()
Creates a new instance of the Goertzel Filter. |
|
GoertzelFilter(int f,
int N,
double len)
Creates a new instance of the Goertzel Filter for predefined frequency of the signal. |
|
| Method Summary | |
|---|---|
double |
getPower(double[] signal,
int offset)
Calculates power of the specified frequence of the specified signal. |
double |
getPower(double f,
double[] signal,
int offset,
int len,
double scale)
Calculates power of the specified frequence of the specified signal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GoertzelFilter()
public GoertzelFilter(int f,
int N,
double len)
the - length of this signal is samples.len - the length of the signal is seconds.the - frequency of the signal.| Method Detail |
|---|
public double getPower(double f,
double[] signal,
int offset,
int len,
double scale)
f - the frequence value.signal - sampled signal.offset - index of the first sample of the signal.len - the length of signal in samplesscale - the length of signal in seconds
public double getPower(double[] signal,
int offset)
signal - sampled signal.offset - index of the first sample of the signal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||