com.meapsoft.featextractors
Class AvgSpecFlatness

java.lang.Object
  extended bycom.meapsoft.featextractors.FeatureExtractor
      extended bycom.meapsoft.featextractors.AvgSpecFlatness

public class AvgSpecFlatness
extends FeatureExtractor

A simple feature calculation that averages the spectral flatness of all spectral frames in a given chunk. The feature varies between 0 and 1 with 1 being perfectly flat.


Constructor Summary
AvgSpecFlatness()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvgSpecFlatness

public AvgSpecFlatness()
Method Detail

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