概要 | パッケージ | クラス | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## jAudioFeatureExtractor.Aggregators
クラス Aggregator

    java.lang.Object
      jAudioFeatureExtractor.Aggregators.Aggregator

直系の既知のサブクラス:
  AreaMoments, DummyAgg, Mean, MFCC, MultipleFeatureHistogram, StandardDeviation

    public abstract class Aggregator

extends java.lang.Object

Aggregator is an interface for specifying the mechanism for collapsing frame-by-frame features into per-file data. There exists two types of aggregators - specific aggregators and generic aggregators.

Generic aggregators aggregate for each feature (seperately) that is to be saved and should override init and setSource methods. Specific aggregators can aggregate any number of features, but these features must be specified in advance.

作成者:
  Daniel McEnnis

フィールドの概要
`static java.lang.String` | `LINE_SEP` Convenience variable containing the end of line characters for this system.

コンストラクタの概要
`Aggregator()`

メソッドの概要
`void` | `aggregate(double[][][] values)` Aggregates the values of the features specified by the init function accross all windows of the data recieved.
`protected int` | `calculateOffset(double[][][] values, int[] featureList)`
`java.lang.Object` | `clone()` Create a new aggregator of the same class
`protected int[][]` | `collapseFeatures(double[][][] values, int[] indecis)`
`AggregatorDefinition` | `getAggregatorDefinition()`
`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.
`java.lang.String[]` | `getParamaters()` Provide a list of the values of all parameters this aggregator uses.
`double[]` | `getResults()`
`void` | `init(int[] featureIndecis)` 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` | `outputACEFeatureKeyEntries(java.io.DataOutputStream output)` Output the feature definition entry (for an ACE feature definition file) for this particular instantiation of the aggreagtor.
`void` | `outputACEValueEntries(java.io.DataOutputStream output)` Output the data definition array
`void` | `outputARFFHeaderEntries(java.io.DataOutputStream output)`
`void` | `outputARFFValueEntries(java.io.DataOutputStream output)`
`void` | `setParameters(java.lang.String[] featureNames, java.lang.String[] params)`
`void` | `setSource(FeatureExtractor feature)`

クラス java.lang.Object から継承されたメソッド
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

フィールドの詳細

### LINE_SEP

    public static final java.lang.String LINE_SEP

  Convenience variable containing the end of line characters for this system.

コンストラクタの詳細

### Aggregator

    public Aggregator()

メソッドの詳細

### 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.

  戻り値:
    list of features to be used by this aggregator or null

### getParamaters

    public java.lang.String[] getParamaters()

  Provide a list of the values of all parameters this aggregator uses. Aggregators without parameters return null.

  戻り値:
    list of the values of parmeters or null.

### clone

    public java.lang.Object clone()

  Create a new aggregator of the same class

  オーバーライド:
    クラス `java.lang.Object` 内の `clone`

### getFeatureDefinition

    public FeatureDefinition getFeatureDefinition()

  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.

  戻り値:
    Feature Definition describing this instantiation of this aggregate object

### getAggregatorDefinition

    public AggregatorDefinition getAggregatorDefinition()

### init

    public void init(int[] featureIndecis)
              throws java.lang.Exception

  Specifies which Features are to be extracted and the index of these features in the values array that will passed into the aggregate function

  パラメータ:
    `source` - FeatureExtractor references used for this instantiation
    `featureIndecis` - 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.

### setSource

    public void setSource(FeatureExtractor feature)

### aggregate

    public void aggregate(double[][][] values)
                   throws java.lang.Exception

  Aggregates the values of the features specified by the init function accross all windows of the data recieved.

  パラメータ:
    `values` - complete array of the extracted features. Indecis are window, feature, and then feature value.
  例外:
    `java.lang.Exception`

### outputACEFeatureKeyEntries

    public void outputACEFeatureKeyEntries(java.io.DataOutputStream output)
                                    throws java.lang.Exception

  Output the feature definition entry (for an ACE feature definition file) for this particular instantiation of the aggreagtor.

  パラメータ:
    `output` - output stream to be used.
  例外:
    `java.lang.Exception`

### outputACEValueEntries

    public void outputACEValueEntries(java.io.DataOutputStream output)
                               throws java.lang.Exception

  Output the data definition array

  パラメータ:
    `output` -
  例外:
    `java.lang.Exception`

### outputARFFHeaderEntries

    public void outputARFFHeaderEntries(java.io.DataOutputStream output)
                                 throws java.lang.Exception

  パラメータ:
    `output` -
  例外:
    `java.lang.Exception`

### outputARFFValueEntries

    public void outputARFFValueEntries(java.io.DataOutputStream output)
                                throws java.lang.Exception

  パラメータ:
    `output` -
  例外:
    `java.lang.Exception`

### setParameters

    public void setParameters(java.lang.String[] featureNames,
                              java.lang.String[] params)
                       throws java.lang.Exception

  例外:
    `java.lang.Exception`

### calculateOffset

    protected int calculateOffset(double[][][] values,
                                  int[] featureList)

### collapseFeatures

    protected int[][] collapseFeatures(double[][][] values,
                                       int[] indecis)

### getResults

    public double[] getResults()

概要 | パッケージ | クラス | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド