Sautrela

edu.gtts.sautrela.sp
Class RASTA

java.lang.Object
  extended by edu.gtts.sautrela.engine.AbstractDataProcessor
      extended by edu.gtts.sautrela.sp.RASTA
All Implemented Interfaces:
DataProcessor, java.beans.BeanInfo, java.io.Serializable

public class RASTA
extends AbstractDataProcessor

RASTA (RelAtive SpecTrA) filter. It is based on an IIR firter with the transfer function:

H(z) = 0.1 · z4 · (2+z-1-z-3-2z-4) / (1-0.98·z-1)
The filter time constant is τ = 500ms for a 100hz rate

See Also:
Serialized Form

Field Summary
static boolean DEFAULT_RESETATBEGIN
          Default value for property resetAtBegin = false.
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
RASTA()
          Creates a new RASTA filter.
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 boolean isResetAtBegin()
          Getter for property resetAtBegin.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Processes the input Data.
 void setResetAtBegin(boolean resetAtBegin)
          Setter for property resetAtBegin.
 
Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_RESETATBEGIN

public static final boolean DEFAULT_RESETATBEGIN
Default value for property resetAtBegin = false. If set to true, filter is initialized every DataStream begin.

See Also:
Constant Field Values
Constructor Detail

RASTA

public RASTA()
Creates a new RASTA filter.

Method Detail

isResetAtBegin

public boolean isResetAtBegin()
Getter for property resetAtBegin.

Returns:
The value of property resetAtBegin.

setResetAtBegin

public void setResetAtBegin(boolean resetAtBegin)
Setter for property resetAtBegin. If set to true, filter is initialized every DataStream begin.

Parameters:
resetAtBegin - The new valuie for property resetAtBegin

process

public void process(Buffer in,
                    Buffer out)
             throws DataProcessorException
Processes the input Data. Input data is treated as multidimensional data and therefore all processed vectors MUST have the same length.

Parameters:
in - Input Buffer
out - Output Buffer
Throws:
DataProcessorException

editBeanInfo

public void editBeanInfo(java.beans.BeanInfo info)
Overrides:
editBeanInfo in class AbstractDataProcessor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Sautrela