net.beadsproject.beads.analysis
Class FeatureTrack

java.lang.Object
  extended by net.beadsproject.beads.analysis.FeatureTrack
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<FeatureFrame>

public class FeatureTrack
extends java.lang.Object
implements java.io.Serializable, java.lang.Iterable<FeatureFrame>

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.

Author:
ollie
See Also:
Serialized Form

Constructor Summary
FeatureTrack()
          Instantiates a new FeatureTrack.
 
Method Summary
 void add(FeatureFrame ff)
          Adds the specified FeatureFrame.
 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.
 java.util.Iterator<FeatureFrame> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTrack

public FeatureTrack()
Instantiates a new FeatureTrack.

Method Detail

add

public void add(FeatureFrame ff)
Adds the specified FeatureFrame.

Parameters:
ff - the FeatureFrame.

get

public FeatureFrame get(int index)
Gets the FeatureFrame at the given index.

Parameters:
index - the index.
Returns:
the FeatureFrame.

getFrameAt

public FeatureFrame getFrameAt(double timeMS)
Gets the frame for the given offset, in milliseconds, into the FeatureLayer.

Parameters:
timeMS - the millisecond offset.
Returns:
the FeatureFrame at this time.

iterator

public java.util.Iterator<FeatureFrame> iterator()
Specified by:
iterator in interface java.lang.Iterable<FeatureFrame>