com.meapsoft.featextractors
Class AvgMelSpec
java.lang.Object
com.meapsoft.featextractors.FeatureExtractor
com.meapsoft.featextractors.AvgMelSpec
- Direct Known Subclasses:
- AvgMFCC
- public class AvgMelSpec
- extends FeatureExtractor
Averages all spectral frames together into a single feature vector
and then converts the vector to the mel frequency scale.
Method Summary |
java.lang.String |
description()
Returns a short string describing what this feature extractor
does. |
double[] |
features(STFT stft,
long startFrame,
int length)
Extract features from a chunk of STFT data. |
double |
lin2mel(double fq)
|
double |
mel2lin(double mel)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
melCenter
protected double[] melCenter
melWidth
protected double[] melWidth
melOfLin
protected double[] melOfLin
linSpec
protected double[] linSpec
N
protected int N
outDim
protected int outDim
AvgMelSpec
public AvgMelSpec()
AvgMelSpec
public AvgMelSpec(int N,
float sampleRate,
int outDim)
lin2mel
public double lin2mel(double fq)
mel2lin
public double mel2lin(double mel)
features
public double[] features(STFT stft,
long startFrame,
int length)
- Description copied from class:
FeatureExtractor
- Extract features from a chunk of STFT data.
- Specified by:
features
in class FeatureExtractor
description
public java.lang.String description()
- Description copied from class:
FeatureExtractor
- Returns a short string describing what this feature extractor
does.
- Specified by:
description
in class FeatureExtractor