|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjAudioFeatureExtractor.Aggregators.AggregatorContainer
public class AggregatorContainer
Container object that handles the creation of aggregators. Encapsulates the process of matching aggregators to feature sets, calulating the content of aggregators from feature output, and the output of per-file data.
Constructor Summary | |
---|---|
AggregatorContainer()
Construct a new, empty container. |
Method Summary | |
---|---|
void |
add(Aggregator[] aggs)
Sets the aggregators to be used in per-file extraction. |
void |
add(FeatureExtractor[] feature)
Sets the feature set to use in extraction. |
void |
add(FeatureExtractor[] feature,
boolean[] toggle)
Adds a feature set, but only those that have the same toggle ` |
void |
aggregate(double[][][] values)
The input of this procedure executes all aggregators across all feature output. |
FeatureDefinition[] |
getFeatureDefinitions()
Returns an array of feature definitions. |
int |
getNumberOfAggregators()
Returns the number of concrete aggregators produced. |
double[][] |
getResults()
Returns a list of results of aggregator results. |
void |
outputACEFeatureKeyEntries(java.io.DataOutputStream output)
Output the header file for the ACE machine learning format. |
void |
outputACEValueEntries(java.io.DataOutputStream output)
Output the data file of the ACE machine learning format. |
void |
outputARFFHeaderEntries(java.io.DataOutputStream output)
Output the headers for the Weka machine learning format. |
void |
outputARFFValueEntries(java.io.DataOutputStream output)
Output the content in a Weka data format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregatorContainer()
Method Detail |
---|
public int getNumberOfAggregators()
public void add(Aggregator[] aggs) throws java.lang.Exception
java.lang.Exception
public void add(FeatureExtractor[] feature) throws java.lang.Exception
java.lang.Exception
public void add(FeatureExtractor[] feature, boolean[] toggle) throws java.lang.Exception
java.lang.Exception
public FeatureDefinition[] getFeatureDefinitions()
public void aggregate(double[][][] values) throws java.lang.Exception
values
-
java.lang.Exception
public void outputACEFeatureKeyEntries(java.io.DataOutputStream output) throws java.lang.Exception
output
- location to put the final output.
java.lang.Exception
- IO error occurs in processing.public void outputACEValueEntries(java.io.DataOutputStream output) throws java.lang.Exception
output
- location to put the final output data in.
java.lang.Exception
- IO Error occurs in processing.public void outputARFFHeaderEntries(java.io.DataOutputStream output) throws java.lang.Exception
output
- data stream to place output header info to.
java.lang.Exception
public void outputARFFValueEntries(java.io.DataOutputStream output) throws java.lang.Exception
output
- data stream to place the Weka data in.
java.lang.Exception
- IO error occurs.public double[][] getResults()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |