Sautrela

edu.gtts.sautrela.sp
Class LiveFeaturelNormalization

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

public class LiveFeaturelNormalization
extends AbstractDataProcessor

Real Time Feature Normalization. It is based on an exponential high-pass firter:

H(z) = (1-α) · (1-z-1) / (1-(1-α)·z-1)
Equivalently:
yt = xt - μt
μt = (1-α) · μt-1 + α · xt
For a time constant of τ (the value for wich the output is cut in half) and sampling freq F, α = log(2) / (τ·F).

See Also:
Serialized Form

Field Summary
static int DEFAULT_TIMEFREQCONSTANT
          default value for τ·F = 500 (F = 100Hz and τ = 5sg)
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
LiveFeaturelNormalization()
          Creates a new LiveCepstralNormalization
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 int getTimeFreqConstant()
          Getter for property timeFreqConstant.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Processes the input Data.
 void setTimeFreqConstant(int timeFreqConstant)
          Setter for property timeFreqConstant.
 
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_TIMEFREQCONSTANT

public static final int DEFAULT_TIMEFREQCONSTANT
default value for τ·F = 500 (F = 100Hz and τ = 5sg)

See Also:
Constant Field Values
Constructor Detail

LiveFeaturelNormalization

public LiveFeaturelNormalization()
Creates a new LiveCepstralNormalization

Method Detail

getTimeFreqConstant

public int getTimeFreqConstant()
Getter for property timeFreqConstant.

Returns:
Value of property timeFreqConstant.

setTimeFreqConstant

public void setTimeFreqConstant(int timeFreqConstant)
Setter for property timeFreqConstant.

Parameters:
timeFreqConstant - The number of samples for which the output is cut in half (τ·F).

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