jAudioFeatureExtractor.AudioFeatures
Class MetaFeatureFactory
java.lang.Object
jAudioFeatureExtractor.AudioFeatures.FeatureExtractor
jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory
- Direct Known Subclasses:
- Derivative, Mean, StandardDeviation
public abstract class MetaFeatureFactory
- extends FeatureExtractor
This class combines 2 sets of functionality:
- Factory for generating instances of a particular metafeature
- Instance of this particular metafeature
This class is used in the following manner:
- Create an instance of the class
- Set dependant MetaFeatureFactory class
- 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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fe_
protected FeatureExtractor fe_
MetaFeatureFactory
public MetaFeatureFactory()
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.