|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjAudioFeatureExtractor.Aggregators.Aggregator
jAudioFeatureExtractor.Aggregators.Mean
public class Mean
Calculates the mean of a feature accross all windows where it is defined. When the feature has more than one dimension, the mean has an equal number of dimensions and the value of each dimension is the mean of that dimension. If the feature has a variable number of dimensions, the dimensionality of the result is the largest number of dimensions present and the mean for each dimension is calculated over all values defined for that dimension.
Field Summary |
---|
Fields inherited from class jAudioFeatureExtractor.Aggregators.Aggregator |
---|
LINE_SEP |
Constructor Summary | |
---|---|
Mean()
|
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[] featureIndeci)
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 |
setSource(FeatureExtractor feature)
|
Methods inherited from class jAudioFeatureExtractor.Aggregators.Aggregator |
---|
calculateOffset, collapseFeatures, getAggregatorDefinition, getParamaters, getResults, outputACEFeatureKeyEntries, outputACEValueEntries, outputARFFHeaderEntries, outputARFFValueEntries, setParameters |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mean()
Method Detail |
---|
public java.lang.String[] getFeaturesToApply()
getFeaturesToApply
in class Aggregator
public FeatureDefinition getFeatureDefinition()
Aggregator
getFeatureDefinition
in class Aggregator
Aggregator.getFeatureDefinition()
public void init(int[] featureIndeci) throws java.lang.Exception
Aggregator
init
in class Aggregator
featureIndeci
- 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 java.lang.Object clone()
Aggregator
clone
in class Aggregator
public void setSource(FeatureExtractor feature)
setSource
in class Aggregator
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |