hmi.math.digitalfilter
Class Winters

java.lang.Object
  extended by hmi.math.digitalfilter.Winters

public final class Winters
extends Object

Winter's low-pass filter. This is a 2-pass Butterworth filter, in which the second 'backward' pass corrects the phase-lag introduced by 1-pass Butterworth filtering. Implementation from: Winter, David A., Biomechanics and Motor Control of Human Movement, Wiley, 2004

Author:
Herwin van Welbergen

Constructor Summary
private Winters()
           
 
Method Summary
private static void reverse(float[] b)
           
private static void reverse(float[] b, int width)
           
static void winters(float[] fin, float fc, float fs, float[] fout)
          Winters-filters the data
static void winters(float[] fin, float fc, float fs, int width, float[] fout)
          Winters-filters the data, assumes the input is aligned in blocks of width floats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Winters

private Winters()
Method Detail

reverse

private static void reverse(float[] b)

reverse

private static void reverse(float[] b,
                            int width)

winters

public static void winters(float[] fin,
                           float fc,
                           float fs,
                           int width,
                           float[] fout)
Winters-filters the data, assumes the input is aligned in blocks of width floats

Parameters:
fin - input data
fc - cutt-off frequency
fs - sample frequency
width - the block width
fout - output data

winters

public static void winters(float[] fin,
                           float fc,
                           float fs,
                           float[] fout)
Winters-filters the data

Parameters:
fin - input data
fc - cutt-off frequency
fs - sample frequency
fout - output data