|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beadsproject.beads.analysis.FeatureFrame
public class FeatureFrame
A FeatureFrame stores a set of features for a single chunk of audio data.
Constructor Summary | |
---|---|
FeatureFrame(double startTimeMS,
double endTimeMS)
Instantiates a new FeatureFrame. |
Method Summary | |
---|---|
void |
add(java.lang.String s,
java.lang.Object f)
Adds a set of features with the given name. |
int |
compareTo(FeatureFrame other)
Returns -1, 0 or 1 as required by Java's Comparator interface, using the frame's start time as the thing to compare. |
boolean |
containsTime(double timeMS)
Checks whether the given time in milliseconds is within this frame. |
java.lang.Object |
get(java.lang.String s)
Gets the features for the given name. |
double |
getEndTimeMS()
Gets the end time in milliseconds. |
double |
getStartTimeMS()
Gets the start time in milliseconds. |
java.util.Enumeration<java.lang.String> |
keys()
Returns an Enumeration over the set of names used to identify the features. |
int |
numFeatures()
|
void |
setEndTimeMS(double endTimeMS)
Sets the end time in milliseconds. |
void |
setStartTimeMS(double startTimeMS)
Sets the start time in milliseconds. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FeatureFrame(double startTimeMS, double endTimeMS)
startTimeMS
- the start time in milliseconds.endTimeMS
- the end time in milliseconds.Method Detail |
---|
public double getStartTimeMS()
public void setStartTimeMS(double startTimeMS)
startTimeMS
- the new start time in milliseconds.public double getEndTimeMS()
public void setEndTimeMS(double endTimeMS)
endTimeMS
- the new end time in milliseconds.public void add(java.lang.String s, java.lang.Object f)
s
- the name used to identify the feature set.f
- the features.public java.lang.Object get(java.lang.String s)
s
- the name.
public java.util.Enumeration<java.lang.String> keys()
public boolean containsTime(double timeMS)
timeMS
- the time in milliseconds.
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(FeatureFrame other)
Comparator
interface, using the frame's start time as the thing to compare.
compareTo
in interface java.lang.Comparable<FeatureFrame>
other
- the FeatureFrame to compare to.
public int numFeatures()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |