net.beadsproject.beads.analysis.featureextractors
Class ReBin

java.lang.Object
  extended by net.beadsproject.beads.core.Bead
      extended by net.beadsproject.beads.analysis.FeatureExtractor<float[],float[]>
          extended by net.beadsproject.beads.analysis.featureextractors.ReBin

public class ReBin
extends FeatureExtractor<float[],float[]>

ReBin takes an array of float data and places the data into a smaller array, the size of which is specified by the number of features.


Field Summary
 
Fields inherited from class net.beadsproject.beads.analysis.FeatureExtractor
featureDescriptions, features, name, numFeatures
 
Constructor Summary
ReBin(int numFeatures)
          Instantiates a new ReBin.
 
Method Summary
 void process(TimeStamp startTime, TimeStamp endTime, float[] original)
          Process some data of type P (specified by the class def).
 void setNumberOfFeatures(int nf)
          Sets the number of features.
 
Methods inherited from class net.beadsproject.beads.analysis.FeatureExtractor
addListener, forward, getFeatureDescriptions, getFeatures, getName, getNumberOfFeatures, removeListener, setName
 
Methods inherited from class net.beadsproject.beads.core.Bead
getKillListener, isDeleted, isPaused, kill, message, messageReceived, pause, setKillListener, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReBin

public ReBin(int numFeatures)
Instantiates a new ReBin.

Parameters:
numFeatures - the number of features.
Method Detail

setNumberOfFeatures

public void setNumberOfFeatures(int nf)
Description copied from class: FeatureExtractor
Sets the number of features.

Overrides:
setNumberOfFeatures in class FeatureExtractor<float[],float[]>
Parameters:
nf - the new number of features.

process

public void process(TimeStamp startTime,
                    TimeStamp endTime,
                    float[] original)
Description copied from class: FeatureExtractor
Process some data of type P (specified by the class def). This method must be overidden by implementing classes.

Specified by:
process in class FeatureExtractor<float[],float[]>
original - the data.