jAudioFeatureExtractor.AudioFeatures
Class MetaFeatureFactory

java.lang.Object
  extended by jAudioFeatureExtractor.AudioFeatures.FeatureExtractor
      extended by jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory
Direct Known Subclasses:
Derivative, Mean, StandardDeviation

public abstract class MetaFeatureFactory
extends FeatureExtractor

This class combines 2 sets of functionality:

This class is used in the following manner:
  1. Create an instance of the class
  2. Set dependant MetaFeatureFactory class
  3. Cycle over features, generating 1 instance per feature

NOTE: Subclasses of this type must correctly set the three protected classes required by FeatureExtractor in the defineFeature method before returning an instance.

Author:
Daniel McEnnis

Field Summary
protected  FeatureExtractor fe_
           
 
Fields inherited from class jAudioFeatureExtractor.AudioFeatures.FeatureExtractor
definition, dependencies, offsets, parent
 
Constructor Summary
MetaFeatureFactory()
           
 
Method Summary
 void chainMetaFeatureFactory(MetaFeatureFactory mff)
          Factory method for setting up the construction order for
abstract  MetaFeatureFactory defineFeature(FeatureExtractor fe)
          Factory method for generating a specific feature with a given set of hierarchical metafeatures.
 void setParent(DataModel parent)
          Gemeric code that permits setParent to apply to all children as well as the current feature.
 void setWindow(int n)
          Generic window that allows leaves of a composite to be set as well.
 
Methods inherited from class jAudioFeatureExtractor.AudioFeatures.FeatureExtractor
clone, extractFeature, getDepenedencies, getDepenedencyOffsets, getElement, getFeatureDefinition, setElement
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fe_

protected FeatureExtractor fe_
Constructor Detail

MetaFeatureFactory

public MetaFeatureFactory()
Method Detail

chainMetaFeatureFactory

public void chainMetaFeatureFactory(MetaFeatureFactory mff)
Factory method for setting up the construction order for

Parameters:
mff - dependant meta feature used to scale setup

defineFeature

public abstract MetaFeatureFactory defineFeature(FeatureExtractor fe)
Factory method for generating a specific feature with a given set of hierarchical metafeatures. Will typically split into two paths: one for when applying directly to features and another for recursively acting on a dependant metafeature.

Parameters:
fe - Feature to be used as base for feature extraction
Returns:
completed metafeature.

setWindow

public void setWindow(int n)
               throws java.lang.Exception
Generic window that allows leaves of a composite to be set as well.

Overrides:
setWindow in class FeatureExtractor
Parameters:
n - the number of windows of offset to be used in calculating this feature
Throws:
java.lang.Exception

setParent

public void setParent(DataModel parent)
Gemeric code that permits setParent to apply to all children as well as the current feature.

Overrides:
setParent in class FeatureExtractor
Parameters:
parent - container frame which holds the model for displaying features in the feature display panel.