|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjAudioFeatureExtractor.AudioFeatures.FeatureExtractor
jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory
jAudioFeatureExtractor.AudioFeatures.Derivative
public class Derivative
Class implementing the most basic discrete derivative of a dependant feature. Extends the MetaFeatureFactory abstract class.
Field Summary |
---|
Fields inherited from class jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory |
---|
fe_ |
Fields inherited from class jAudioFeatureExtractor.AudioFeatures.FeatureExtractor |
---|
definition, dependencies, offsets, parent |
Constructor Summary | |
---|---|
Derivative()
Basic constructor that initializes the metaFeature class variables appropiaretely for factory use |
|
Derivative(MetaFeatureFactory mff)
A convenience consrtuctor that extends the basic constructor to allow specifying a dependant MetaFeatureFactory object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Create an identical copy of this feature. |
MetaFeatureFactory |
defineFeature(FeatureExtractor fe)
Factory class for creating a new FeatureExtraction object. |
double[] |
extractFeature(double[] samples,
double sampling_rate,
double[][] other_feature_values)
Extracts the difference between adjacent points as a basic implementation of a discrete dirivative. |
java.lang.String |
getElement(int index)
Function permitting an unintelligent outside function (ie. |
FeatureDefinition |
getFeatureDefinition()
Overridden to regenerate the feature definition. |
void |
setElement(int index,
java.lang.String value)
Function permitting an unintelligent outside function (ie. |
Methods inherited from class jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory |
---|
chainMetaFeatureFactory, setParent, setWindow |
Methods inherited from class jAudioFeatureExtractor.AudioFeatures.FeatureExtractor |
---|
getDepenedencies, getDepenedencyOffsets |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Derivative()
public Derivative(MetaFeatureFactory mff)
mff
- dependant MetaFeatureFactory objectMethod Detail |
---|
public MetaFeatureFactory defineFeature(FeatureExtractor fe)
defineFeature
in class MetaFeatureFactory
fe
- base feature that this feature is to be bvased upon.
public double[] extractFeature(double[] samples, double sampling_rate, double[][] other_feature_values) throws java.lang.Exception
extractFeature
in class FeatureExtractor
samples
- signal to be analyzed. Not used by this featuresampling_rate
- sampling rate of the signal. Not used by this featureother_feature_values
- provides most recent and next most recent values to be
compared
java.lang.Exception
- Throws an informative exception if the feature cannot be
calculated.public java.lang.String getElement(int index) throws java.lang.Exception
As a metafeature, recursively calls children for the feature requested.
getElement
in class FeatureExtractor
index
- which of AreaMoment's attributes should be edited.
java.lang.Exception
public void setElement(int index, java.lang.String value) throws java.lang.Exception
As a metafeature, recursively calls children to set the feature requested.
setElement
in class FeatureExtractor
index
- attribute to be setvalue
- new value of the attribute
java.lang.Exception
public java.lang.Object clone()
clone
in class FeatureExtractor
public FeatureDefinition getFeatureDefinition()
getFeatureDefinition
in class FeatureExtractor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |