jAudioFeatureExtractor.AudioFeatures
クラス Mean

java.lang.Object
  上位を拡張 jAudioFeatureExtractor.AudioFeatures.FeatureExtractor
      上位を拡張 jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory
          上位を拡張 jAudioFeatureExtractor.AudioFeatures.Mean

public class Mean
extends MetaFeatureFactory

Calculates the running mean of an underlying feature.

作成者:
Daniel McEnnis

フィールドの概要
protected  int runningAverage
           
 
クラス jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory から継承されたフィールド
fe_
 
クラス jAudioFeatureExtractor.AudioFeatures.FeatureExtractor から継承されたフィールド
definition, dependencies, offsets, parent
 
コンストラクタの概要
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
 
メソッドの概要
 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.
 
クラス jAudioFeatureExtractor.AudioFeatures.MetaFeatureFactory から継承されたメソッド
chainMetaFeatureFactory, setParent
 
クラス jAudioFeatureExtractor.AudioFeatures.FeatureExtractor から継承されたメソッド
getDepenedencies, getDepenedencyOffsets
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

runningAverage

protected int runningAverage
コンストラクタの詳細

Mean

public Mean()
Basic constructor that initializes the metafeautres values properly for use as a factory.


Mean

public Mean(MetaFeatureFactory mff)
Convenience constructor to create a new factory object with the given dependant metafeature

パラメータ:
mff - metafeature factory that this newly created object should depend upon.
メソッドの詳細

defineFeature

public MetaFeatureFactory defineFeature(FeatureExtractor fe)
Factory method for this class which generates a fully usable MetaFeature object. Using the structure stored in this Mean object, create a new FeatureExtractor with the given specific FeatureExtraction as a base. If we are calulating the mean of another meta-feature, recursively create the underlying meta feature first.

定義:
クラス MetaFeatureFactory 内の defineFeature
パラメータ:
fe - Feature to be used as base for feature extraction
戻り値:
completed metafeature.

extractFeature

public double[] extractFeature(double[] samples,
                               double sampling_rate,
                               double[][] other_feature_values)
                        throws java.lang.Exception
Calculates the mean over last 100 windows

定義:
クラス FeatureExtractor 内の extractFeature
パラメータ:
samples - signal being processed
sampling_rate - sample rate of the signal
other_feature_values - dependancies of the current signal
戻り値:
mean over last 100 values of dependant feature.
例外:
java.lang.Exception - Throws an informative exception if the feature cannot be calculated.

setWindow

public void setWindow(int n)
               throws java.lang.Exception
Changes the number of dependant samples extracted for each object.

オーバーライド:
クラス MetaFeatureFactory 内の setWindow
パラメータ:
n - number of samples that should be included in the running average.
例外:
java.lang.Exception - thrown if n is equal to or less than one

getElement

public java.lang.String getElement(int index)
                            throws java.lang.Exception
Function permitting an unintelligent outside function (ie. EditFeatures frame) to get the default values used to populate the table's entries. The correct index values are inferred from definition.attribute value.

As a metafeature, recursively calls children for the feature requested.

オーバーライド:
クラス FeatureExtractor 内の getElement
パラメータ:
index - which of AreaMoment's attributes should be edited.
例外:
java.lang.Exception

setElement

public void setElement(int index,
                       java.lang.String value)
                throws java.lang.Exception
Function permitting an unintelligent outside function (ie. EditFeatures frame) to set the default values used to popylate the table's entries. Like getElement, the correct index values are inferred from the definition.attributes value.

As a metafeature, recursively calls children to set the feature requested.

オーバーライド:
クラス FeatureExtractor 内の setElement
パラメータ:
index - attribute to be set
value - new value of the attribute
例外:
java.lang.Exception

clone

public java.lang.Object clone()
Create an identical copy of this feature. This permits FeatureExtractor to use the prototype pattern to create new composite features using metafeatures.

定義:
クラス FeatureExtractor 内の clone

getFeatureDefinition

public FeatureDefinition getFeatureDefinition()
Overridden to regenerate the feature definition. Perhaps its should be kept purely virtual, but currently, attributes and dimensions are recalculated for each iteration. This is necessary so that changes in children's defintions get propogated back to the top level. As of 05-08-05 LPC is the only feature that requires this.

オーバーライド:
クラス FeatureExtractor 内の getFeatureDefinition