bodhidharma.midi_parsing.multi_dimensional_features
Class FeatureMultiDimensional

java.lang.Object
  extended by bodhidharma.data_structures.Feature
      extended by bodhidharma.midi_parsing.multi_dimensional_features.FeatureMultiDimensional
Direct Known Subclasses:
BasicPitchHistogramFeature, BeatHistogramFeature, FifthsPitchHistogramFeature, InitialTimeSignatureFeature, MelodicIntervalHistogramFeature, NotePrevalenceOfPitchedInstrumentsFeature, NotePrevalenceOfUnpitchedInstrumentsFeature, PitchClassDistributionFeature, PitchedInstrumentsPresentFeature, TimePrevalenceOfPitchedInstrumentsFeature, UnpitchedInstrumentsPresentFeature

public abstract class FeatureMultiDimensional
extends Feature

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.

See Also:
Feature
Author:
Cory McKay

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

value

protected double[] value
Constructor Detail

FeatureMultiDimensional

public FeatureMultiDimensional()
Method Detail

getValue

public double[] getValue()
Returns the values of the feature for the recording whose data was used to construct this object.


setValue

public void setValue(double[] new_values)
Sets the values of the feature for the recording whose data was used to construct this object.


getName

public abstract java.lang.String getName()
Returns the name of the feature.

Specified by:
getName in class Feature

getDescription

public abstract java.lang.String getDescription()
Returns a sentence or two describing the feature.

Specified by:
getDescription in class Feature

getCode

public abstract java.lang.String getCode()
Returns the code number of the feature.

Specified by:
getCode in class Feature