|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beadsproject.beads.analysis.FeatureTrack
public class FeatureTrack
Stores a set of features associated with a continuous period of audio data. A FeatureTrack can hold different views on the data. Time-based features are stored in lists mapping segments to features.
Constructor Summary | |
---|---|
FeatureTrack()
Instantiates a new FeatureTrack. |
Method Summary | |
---|---|
void |
add(FeatureFrame ff)
Adds the specified FeatureFrame. |
void |
addFeatureExtractor(FeatureExtractor<?,?> e)
Adds a new FeatureExtractor. |
FeatureFrame |
get(int index)
Gets the FeatureFrame at the given index. |
FeatureFrame |
getFrameAt(double timeMS)
Gets the frame for the given offset, in milliseconds, into the FeatureLayer. |
FeatureFrame |
getFrameBefore(double timeMS)
Gets the frame for the given offset, in milliseconds, into the FeatureLayer, or the last frame before then. |
FeatureFrame |
getLastFrame()
Gets the last FeatureFrame in this FeatureTrack. |
int |
getNumberOfFrames()
Returns the number of FeatureFrames stored in this FeatureTrack. |
java.util.Iterator<FeatureFrame> |
iterator()
|
void |
newSegment(TimeStamp startTime,
TimeStamp endTime)
Tells this FeatureTrack to log a new FeatureFrame with the given startTime and endTime. |
void |
removeFeatureExtractor(FeatureExtractor<?,?> e)
Removes the specified FeatureExtractor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureTrack()
Method Detail |
---|
public void add(FeatureFrame ff)
ff
- the FeatureFrame.public FeatureFrame get(int index)
index
- the index.
public FeatureFrame getFrameAt(double timeMS)
timeMS
- the millisecond offset.
public FeatureFrame getFrameBefore(double timeMS)
timeMS
- the millisecond offset.
public FeatureFrame getLastFrame()
public void addFeatureExtractor(FeatureExtractor<?,?> e)
e
- the FeatureExtractor.public void removeFeatureExtractor(FeatureExtractor<?,?> e)
e
- the FeatureExtractor.public void newSegment(TimeStamp startTime, TimeStamp endTime)
newSegment
in interface SegmentListener
public java.util.Iterator<FeatureFrame> iterator()
iterator
in interface java.lang.Iterable<FeatureFrame>
public int getNumberOfFrames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |