|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbodhidharma.data_structures.Feature
bodhidharma.midi_parsing.multi_dimensional_features.FeatureMultiDimensional
public abstract class FeatureMultiDimensional
An abstract class for holding a feature with a multiple values. Each class implementing this abstract class will hold the value of a single feature that is extracted from a recording.
The getValue
method returns the values of the feature
and the getValue
method sets them.
The constructor of a class implementing this interface should take in an intermediate representation of a recording and derive the value of the feature from this. If the second argument of the constructor is null, then the object should be initialized so that the value of the feature is null.
Feature
Field Summary | |
---|---|
protected double[] |
value
|
Constructor Summary | |
---|---|
FeatureMultiDimensional()
|
Method Summary | |
---|---|
abstract java.lang.String |
getCode()
Returns the code number of the feature. |
abstract java.lang.String |
getDescription()
Returns a sentence or two describing the feature. |
abstract java.lang.String |
getName()
Returns the name of the feature. |
double[] |
getValue()
Returns the values of the feature for the recording whose data was used to construct this object. |
void |
setValue(double[] new_values)
Sets the values of the feature for the recording whose data was used to construct this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] value
Constructor Detail |
---|
public FeatureMultiDimensional()
Method Detail |
---|
public double[] getValue()
public void setValue(double[] new_values)
public abstract java.lang.String getName()
getName
in class Feature
public abstract java.lang.String getDescription()
getDescription
in class Feature
public abstract java.lang.String getCode()
getCode
in class Feature
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |