public class GoertzelFilter extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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 secondspublic double getPower(double[] signal,
int offset)
signal - sampled signal.offset - index of the first sample of the signal.Copyright © 2016 TeleStax, Inc.. All Rights Reserved.