com.meapsoft.featextractors
Class AvgMelSpec

java.lang.Object
  extended bycom.meapsoft.featextractors.FeatureExtractor
      extended bycom.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.


Field Summary
protected  double[] linSpec
           
protected  double[] melCenter
           
protected  double[] melOfLin
           
protected  double[] melWidth
           
protected  int N
           
protected  int outDim
           
 
Constructor Summary
AvgMelSpec()
           
AvgMelSpec(int N, float sampleRate, int outDim)
           
 
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
 

Field Detail

melCenter

protected double[] melCenter

melWidth

protected double[] melWidth

melOfLin

protected double[] melOfLin

linSpec

protected double[] linSpec

N

protected int N

outDim

protected int outDim
Constructor Detail

AvgMelSpec

public AvgMelSpec()

AvgMelSpec

public AvgMelSpec(int N,
                  float sampleRate,
                  int outDim)
Method Detail

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