com.meapsoft
Class FeatChunk

java.lang.Object
  extended bycom.meapsoft.Chunk
      extended bycom.meapsoft.FeatChunk
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
EDLChunk

public class FeatChunk
extends Chunk
implements java.lang.Cloneable

Representation of a FeatFile Chunk


Field Summary
protected  java.util.Vector features
           
 
Fields inherited from class com.meapsoft.Chunk
comment, length, srcFile, startTime
 
Constructor Summary
FeatChunk(java.lang.String sf, double st, double l)
          FeatChunk constructor
 
Method Summary
 void addFeature(java.util.Collection f)
          Add the given features to this chunk.
 void addFeature(double f)
          Add the given features to this chunk.
 void addFeature(double[] f)
          Add the given features to this chunk.
 void addFeature(java.lang.Object f)
          Add the given features to this chunk.
 void addFeature(java.lang.Object[] f)
          Add the given features to this chunk.
 void clearFeatures()
          Remove the features associated with this Chunk
 java.lang.Object clone()
          Clone this FeatChunk
 double[] getFeatures()
          Get the features associated with this chunk
 double[] getFeatures(int[] idx)
          Get the subset of features corresponding to the dimensions listed in idx.
 int numFeatures()
          Returns the number of features associated with this chunk
 void setFeature(int idx, double f)
          Set feature dimension idx to the given feature value.
 void setFeatures(double[] f)
          Set feature dimension idx to the given feature value.
 java.lang.String toString()
          Write a description of this Chunk as a String in the format expected in a FeatFile
 
Methods inherited from class com.meapsoft.Chunk
compareTo, getSamples
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

features

protected java.util.Vector features
Constructor Detail

FeatChunk

public FeatChunk(java.lang.String sf,
                 double st,
                 double l)
FeatChunk constructor

Method Detail

addFeature

public void addFeature(java.lang.Object[] f)
Add the given features to this chunk.


addFeature

public void addFeature(java.util.Collection f)
Add the given features to this chunk.


addFeature

public void addFeature(double[] f)
Add the given features to this chunk.


addFeature

public void addFeature(java.lang.Object f)
Add the given features to this chunk.


addFeature

public void addFeature(double f)
Add the given features to this chunk.


setFeature

public void setFeature(int idx,
                       double f)
Set feature dimension idx to the given feature value.


setFeatures

public void setFeatures(double[] f)
Set feature dimension idx to the given feature value.


numFeatures

public int numFeatures()
Returns the number of features associated with this chunk


getFeatures

public double[] getFeatures()
Get the features associated with this chunk


getFeatures

public double[] getFeatures(int[] idx)
Get the subset of features corresponding to the dimensions listed in idx.


clearFeatures

public void clearFeatures()
Remove the features associated with this Chunk


toString

public java.lang.String toString()
Write a description of this Chunk as a String in the format expected in a FeatFile

Overrides:
toString in class Chunk

clone

public java.lang.Object clone()
Clone this FeatChunk