|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbodhidharma.data_structures.FeatureSet
public class FeatureSet
Part of the Bodhidharma automatic music classification project. Holds the features extracted from a MIDI recording. Features may be one-dimensional or multi-dimensional.
Feature
,
MIDIIntermediateRepresentations
Field Summary | |
---|---|
Feature[] |
features
The array of features for a recording |
Constructor Summary | |
---|---|
FeatureSet(Feature[] given_features)
Stores the given array in the features field. |
|
FeatureSet(java.lang.String file_path,
java.lang.String[] features_to_extract)
Takes in the name of a MIDI file, extracts the features from it and stores them in features,/i>. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Feature[] features
Constructor Detail |
---|
public FeatureSet(java.lang.String file_path, java.lang.String[] features_to_extract) throws java.lang.Exception
Only the features whose names are referred to in features_to_extract are extracted. An exception is thrown if an unidentified feature name is encountered.
Exceptions are thrown if there is a problem during parsing or if an improper feature value is found.
file_path
- The path of a MIDI filefeatures_to_extract
- Names of features to extract.
java.lang.Exception
public FeatureSet(Feature[] given_features)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |