Sautrela

edu.gtts.sautrela.sp
Class Deltas

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

public class Deltas
extends AbstractDataProcessor

Calculates the deltas and delta-delta of the input data.

See Also:
Serialized Form

Field Summary
static int DEFAULT_D_ORDER
          default delta order == 2
static int DEFAULT_DD_ORDER
          default delta-delta order == 1
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
Deltas()
          Creates a new Deltas DataProcessor
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 int getDeltaDeltaOrder()
          Gets the order of the second derivate of the input data
 int getDeltaOrder()
          Gets the order of the first derivate of the input data
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Processes the input Data.
 void setDeltaDeltaOrder(int order)
          Sets the order of the second derivate of the input data
 void setDeltaOrder(int order)
          Sets the order of the first derivate of the input data
 
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_D_ORDER

public static final int DEFAULT_D_ORDER
default delta order == 2

See Also:
Constant Field Values

DEFAULT_DD_ORDER

public static final int DEFAULT_DD_ORDER
default delta-delta order == 1

See Also:
Constant Field Values
Constructor Detail

Deltas

public Deltas()
Creates a new Deltas DataProcessor

Method Detail

getDeltaOrder

public int getDeltaOrder()
Gets the order of the first derivate of the input data

Returns:
The order of the Delta

setDeltaOrder

public void setDeltaOrder(int order)
Sets the order of the first derivate of the input data

Parameters:
order - The order of the Delta

getDeltaDeltaOrder

public int getDeltaDeltaOrder()
Gets the order of the second derivate of the input data

Returns:
The order of the Delta-Delta

setDeltaDeltaOrder

public void setDeltaDeltaOrder(int order)
Sets the order of the second derivate of the input data

Parameters:
order - The order of the Delta-Delta

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. The returned data contains first the processed multidimensional data, then the delta and finally the delta-delta, thus the dimension of the output data is 3 times larger than the input one.

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