|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjAudioFeatureExtractor.Aggregators.Aggregator
jAudioFeatureExtractor.Aggregators.MultipleFeatureHistogram
public class MultipleFeatureHistogram
This specific algorithm correlates different feature dimensions provided, binning them into equal bins relative to each feature's range. The resulting feature set, similar to the area method of moments, captures cross-feature information. However, this feature uses an extremely large feature set that grows exponentially with the number of features added. On the positive side, the order of the features is irrelevant to its performance.
First used in 2000, it was not formally published until McEnnis and Fujinaga 2005.
Field Summary |
---|
Fields inherited from class jAudioFeatureExtractor.Aggregators.Aggregator |
---|
LINE_SEP |
Constructor Summary | |
---|---|
MultipleFeatureHistogram()
Constructs a new aggregator. |
|
MultipleFeatureHistogram(java.lang.String[] fe,
int bins)
Constructs a fully functional aggregator. |
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. |
java.lang.String[] |
getParamaters()
Provide a list of the values of all parameters this aggregator uses. |
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 |
setParameters(java.lang.String[] features,
java.lang.String[] params)
Set parameters of the aggregator to the given values. |
Methods inherited from class jAudioFeatureExtractor.Aggregators.Aggregator |
---|
calculateOffset, collapseFeatures, getAggregatorDefinition, getResults, outputACEFeatureKeyEntries, outputACEValueEntries, outputARFFHeaderEntries, outputARFFValueEntries, setSource |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipleFeatureHistogram()
public MultipleFeatureHistogram(java.lang.String[] fe, int bins)
Method Detail |
---|
public java.lang.String[] getParamaters()
Aggregator
getParamaters
in class Aggregator
public void setParameters(java.lang.String[] features, java.lang.String[] params) throws java.lang.Exception
Aggregator
setParameters
in class Aggregator
features
- strings matching features for specific aggregation.params
- strings that can be cast by toString to the appropriate parameter types.
java.lang.Exception
public void aggregate(double[][][] values) throws java.lang.Exception
Aggregator
aggregate
in class Aggregator
values
- complete array of the extracted features. Indecis are window,
feature, and then feature value.
java.lang.Exception
public java.lang.Object clone()
Aggregator
clone
in class Aggregator
public FeatureDefinition getFeatureDefinition()
Aggregator
getFeatureDefinition
in class Aggregator
public java.lang.String[] getFeaturesToApply()
Aggregator
getFeaturesToApply
in class Aggregator
public void init(int[] featureIndecis) throws java.lang.Exception
Aggregator
init
in class Aggregator
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |