|
|||||||||
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.Mean
public class Mean
Calculates the running mean of an underlying feature.
Field Summary | |
---|---|
protected int |
runningAverage
|
Fields inherited from class jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory |
---|
fe_ |
Fields inherited from class jAudioFeatureExtractor.AudioFeatures.FeatureExtractor |
---|
definition, dependencies, offsets, parent |
Constructor Summary | |
---|---|
Mean()
Basic constructor that initializes the metafeautres values properly for use as a factory. |
|
Mean(MetaFeatureFactory mff)
Convenience constructor to create a new factory object with the given dependant metafeature |
Method Summary | |
---|---|
java.lang.Object |
clone()
Create an identical copy of this feature. |
MetaFeatureFactory |
defineFeature(FeatureExtractor fe)
Factory method for this class which generates a fully usable MetaFeature object. |
double[] |
extractFeature(double[] samples,
double sampling_rate,
double[][] other_feature_values)
Calculates the mean over last 100 windows |
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. |
void |
setWindow(int n)
Changes the number of dependant samples extracted for each object. |
Methods inherited from class jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory |
---|
chainMetaFeatureFactory, setParent |
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 |
Field Detail |
---|
protected int runningAverage
Constructor Detail |
---|
public Mean()
public Mean(MetaFeatureFactory mff)
mff
- metafeature factory that this newly created object should
depend upon.Method Detail |
---|
public MetaFeatureFactory defineFeature(FeatureExtractor fe)
defineFeature
in class MetaFeatureFactory
fe
- Feature to be used as base for feature extraction
public double[] extractFeature(double[] samples, double sampling_rate, double[][] other_feature_values) throws java.lang.Exception
extractFeature
in class FeatureExtractor
samples
- signal being processedsampling_rate
- sample rate of the signalother_feature_values
- dependancies of the current signal
java.lang.Exception
- Throws an informative exception if the feature cannot be
calculated.public void setWindow(int n) throws java.lang.Exception
setWindow
in class MetaFeatureFactory
n
- number of samples that should be included in the running
average.
java.lang.Exception
- thrown if n is equal to or less than onepublic 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 |