|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjAudioFeatureExtractor.Aggregators.Aggregator
jAudioFeatureExtractor.Aggregators.AreaMoments
public class AreaMoments
This specific aggregator was originally intended to be the first 10 statistical moments of a 2D area. This algorithm was first used in graphic machine learning by Fujinaga in 1998. Its first use in digital signal processing is in McEnnis and Fujinaga 2005.
It is a specific feature as the effectiveness of the resulting features is heavily dependent on the importance of the feature ordering.
The algorithm treats the image as a 2D function f(x,y) = z where x and y are indecis of the underlying matrix. The order of x and y is increased together from order 0 to order 3, caluclated with a coeefcient calculated by the binomial of the x and y order.
The original DSP version is a collaborative effort between the author of the code and Ichiro Fujinaga.
Fujinaga, I. Adaptive Optical Music Recognition. PhD thesis, McGill University, 1997.
Code utilizes the Colt matrix package available under either LGPL or BSD license. See Colt's online documentation for more details.
Field Summary |
---|
Fields inherited from class jAudioFeatureExtractor.Aggregators.Aggregator |
---|
LINE_SEP |
Constructor Summary | |
---|---|
AreaMoments()
Constructs an AreaMoments 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. |
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[] featureNames,
java.lang.String[] params)
Set parameters of the aggregator to the given values. |
Methods inherited from class jAudioFeatureExtractor.Aggregators.Aggregator |
---|
calculateOffset, collapseFeatures, getAggregatorDefinition, getParamaters, 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 AreaMoments()
Method Detail |
---|
public void aggregate(double[][][] values)
Aggregator
aggregate
in class Aggregator
values
- complete array of the extracted features. Indecis are window,
feature, and then feature value.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.public void setParameters(java.lang.String[] featureNames, java.lang.String[] params) throws java.lang.Exception
Aggregator
setParameters
in class Aggregator
featureNames
- strings matching features for specific aggregation.params
- strings that can be cast by toString to the appropriate parameter types.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |