jAudioFeatureExtractor.Aggregators
クラス Mean

java.lang.Object
  上位を拡張 jAudioFeatureExtractor.Aggregators.Aggregator
      上位を拡張 jAudioFeatureExtractor.Aggregators.Mean

public class Mean
extends Aggregator

Calculates the mean of a feature accross all windows where it is defined. When the feature has more than one dimension, the mean has an equal number of dimensions and the value of each dimension is the mean of that dimension. If the feature has a variable number of dimensions, the dimensionality of the result is the largest number of dimensions present and the mean for each dimension is calculated over all values defined for that dimension.

作成者:
Daniel McEnnis

フィールドの概要
 
クラス jAudioFeatureExtractor.Aggregators.Aggregator から継承されたフィールド
LINE_SEP
 
コンストラクタの概要
Mean()
           
 
メソッドの概要
 void aggregate(double[][][] values)
          Aggregates the values of the features specified by the init function accross all windows of the data recieved.
 java.lang.Object clone()
          Create a new aggregator of the same class
 FeatureDefinition getFeatureDefinition()
          Description of a particular instantiation of an aggregate.
 java.lang.String[] getFeaturesToApply()
          Provide a list of features that are to be aggregated by this feature.
 void init(int[] featureIndeci)
          Specifies which Features are to be extracted and the index of these features in the values array that will passed into the aggregate function
 void setSource(FeatureExtractor feature)
           
 
クラス jAudioFeatureExtractor.Aggregators.Aggregator から継承されたメソッド
calculateOffset, collapseFeatures, getAggregatorDefinition, getParamaters, getResults, outputACEFeatureKeyEntries, outputACEValueEntries, outputARFFHeaderEntries, outputARFFValueEntries, setParameters
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Mean

public Mean()
メソッドの詳細

getFeaturesToApply

public java.lang.String[] getFeaturesToApply()
Provide a list of features that are to be aggregated by this feature. Returning null indicates that this aggregator accepts only one feature and every feature avaiable should be used.

オーバーライド:
クラス Aggregator 内の getFeaturesToApply
戻り値:
list of features to be used by this aggregator or null

getFeatureDefinition

public FeatureDefinition getFeatureDefinition()
クラス Aggregator の記述:
Description of a particular instantiation of an aggregate. This should not be called until after the specific features have been specified by the init function.

オーバーライド:
クラス Aggregator 内の getFeatureDefinition
戻り値:
Feature Definition describing this instantiation of this aggregate object
関連項目:
Aggregator.getFeatureDefinition()

init

public void init(int[] featureIndeci)
          throws java.lang.Exception
クラス Aggregator の記述:
Specifies which Features are to be extracted and the index of these features in the values array that will passed into the aggregate function

オーバーライド:
クラス Aggregator 内の init
パラメータ:
featureIndeci - Indecis of these features in the array passed in aggregate
例外:
java.lang.Exception - if either parameter is null, of dicffering lengths, or contain invalid index values.

clone

public java.lang.Object clone()
クラス Aggregator の記述:
Create a new aggregator of the same class

オーバーライド:
クラス Aggregator 内の clone

setSource

public void setSource(FeatureExtractor feature)
オーバーライド:
クラス Aggregator 内の setSource

aggregate

public void aggregate(double[][][] values)
クラス Aggregator の記述:
Aggregates the values of the features specified by the init function accross all windows of the data recieved.

オーバーライド:
クラス Aggregator 内の aggregate
パラメータ:
values - complete array of the extracted features. Indecis are window, feature, and then feature value.