jAudioFeatureExtractor.Aggregators
Class DummyAgg

java.lang.Object
  extended by jAudioFeatureExtractor.Aggregators.Aggregator
      extended by jAudioFeatureExtractor.Aggregators.DummyAgg

public class DummyAgg
extends Aggregator

DummyAgg

Dummy aggregator for testing aggregator loading.

Author:
Daniel McEnnis

Field Summary
 double[][][] data
           
 FeatureDefinition definition
           
 int[] featureIndex
           
 FeatureExtractor[] featureName
           
 FeatureExtractor[] presetFeature
           
 
Fields inherited from class jAudioFeatureExtractor.Aggregators.Aggregator
LINE_SEP
 
Constructor Summary
DummyAgg()
           
DummyAgg(FeatureExtractor[] f)
           
 
Method Summary
 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[] 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 entries of a the ACE format
 void outputARFFHeaderEntries(java.io.DataOutputStream output)
          Output the header entries of a Weka ARFF file.
 void outputARFFValueEntries(java.io.DataOutputStream output)
          Output the data in the ARFF body.
 void setSource(FeatureExtractor feature)
           
 
Methods inherited from class jAudioFeatureExtractor.Aggregators.Aggregator
calculateOffset, collapseFeatures, getAggregatorDefinition, getParamaters, getResults, setParameters
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

featureIndex

public int[] featureIndex

featureName

public FeatureExtractor[] featureName

presetFeature

public FeatureExtractor[] presetFeature

definition

public FeatureDefinition definition

data

public double[][][] data
Constructor Detail

DummyAgg

public DummyAgg()

DummyAgg

public DummyAgg(FeatureExtractor[] f)
Method Detail

aggregate

public void aggregate(double[][][] values)
Description copied from class: Aggregator
Aggregates the values of the features specified by the init function accross all windows of the data recieved.

Overrides:
aggregate in class Aggregator
Parameters:
values - complete array of the extracted features. Indecis are window, feature, and then feature value.

clone

public java.lang.Object clone()
Description copied from class: Aggregator
Create a new aggregator of the same class

Overrides:
clone in class Aggregator

getFeatureDefinition

public FeatureDefinition getFeatureDefinition()
Description copied from class: 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.

Overrides:
getFeatureDefinition in class Aggregator
Returns:
Feature Definition describing this instantiation of this aggregate object

init

public void init(int[] featureIndecis)
          throws java.lang.Exception
Description copied from class: 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

Overrides:
init in class Aggregator
Parameters:
featureIndecis - Indecis of these features in the array passed in aggregate
Throws:
java.lang.Exception - if either parameter is null, of dicffering lengths, or contain invalid index values.

setSource

public void setSource(FeatureExtractor feature)
Overrides:
setSource in class Aggregator

getFeaturesToApply

public java.lang.String[] getFeaturesToApply()
Description copied from class: Aggregator
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.

Overrides:
getFeaturesToApply in class Aggregator
Returns:
list of features to be used by this aggregator or null

outputACEFeatureKeyEntries

public void outputACEFeatureKeyEntries(java.io.DataOutputStream output)
                                throws java.lang.Exception
Description copied from class: Aggregator
Output the feature definition entry (for an ACE feature definition file) for this particular instantiation of the aggreagtor.

Overrides:
outputACEFeatureKeyEntries in class Aggregator
Parameters:
output - output stream to be used.
Throws:
java.lang.Exception

outputACEValueEntries

public void outputACEValueEntries(java.io.DataOutputStream output)
                           throws java.lang.Exception
Description copied from class: Aggregator
Output the data definition entries of a the ACE format

Overrides:
outputACEValueEntries in class Aggregator
Parameters:
output - stream to write the data to
Throws:
java.lang.Exception

outputARFFHeaderEntries

public void outputARFFHeaderEntries(java.io.DataOutputStream output)
                             throws java.lang.Exception
Description copied from class: Aggregator
Output the header entries of a Weka ARFF file. This should only be called once the full aggregator output has been calculated.

Overrides:
outputARFFHeaderEntries in class Aggregator
Parameters:
output - stream to write the data to
Throws:
java.lang.Exception

outputARFFValueEntries

public void outputARFFValueEntries(java.io.DataOutputStream output)
                            throws java.lang.Exception
Description copied from class: Aggregator
Output the data in the ARFF body.

Overrides:
outputARFFValueEntries in class Aggregator
Throws:
java.lang.Exception