icub-basic-demos
IIRGausDeriv.h
Go to the documentation of this file.
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 // Copyright: (C) 2006-2007 Alex Bernardino, ISR-IST
4 // Authors: Alex Bernardino
5 // CopyPolicy: Released under the terms of the GNU GPL v2.0.
6 
17 #ifndef _IIRGAUSDERIV_H_
18 #define _IIRGAUSDERIV_H_
19 
20 
21 #include <complex>
22 using namespace std;
23 
28 extern const complex<double> d0_N3_L2[];
29 extern const complex<double> d0_N4_L2[];
30 extern const complex<double> d0_N5_L2[];
31 extern const complex<double> d0_N3_Linf[];
32 extern const complex<double> d0_N4_Linf[];
33 extern const complex<double> d0_N5_Linf[];
34 extern const complex<double> d1_N3_Linf[];
35 extern const complex<double> d1_N4_Linf[];
36 extern const complex<double> d1_N5_Linf[];
37 extern const complex<double> d2_N3_Linf[];
38 extern const complex<double> d2_N4_Linf[];
39 extern const complex<double> d2_N5_Linf[];
48 void calc_poles(int taps, const double scale, const complex<double> oldpoles[], complex<double> newpoles[] );
49 
50 
51 
52 //compute the coefficients of the filter for scale s given the poles at scale 2
53 //the output is written in array coeffs - the first element is the gain and
54 //the remaining elements correspond to the autoregressive coefficients
65 void calc_coeffs(int taps, const complex<double> poles[], const double s, float *coeffs);
66 
67 
77 void calc_coeffs(int taps, const complex<double> poles[], float *coeffs);
78 
79 #endif
void calc_poles(int taps, const double scale, const complex< double > oldpoles[], complex< double > newpoles[])
5 tap second derivative filter with Linf norm approximation
const complex< double > d0_N4_L2[]
3 tap gaussian filter with L2 norm approximation
void calc_coeffs(int taps, const complex< double > poles[], const double s, float *coeffs)
Compute the coefficients of the filter for scale s, given the poles at scale 2.
const complex< double > d1_N4_Linf[]
3 tap first derivative filter with Linf norm approximation
const complex< double > d0_N5_Linf[]
4 tap gaussian filter with Linf norm approximation
const complex< double > d2_N3_Linf[]
5 tap first derivative filter with Linf norm approximation
const complex< double > d0_N4_Linf[]
3 tap gaussian filter with Linf norm approximation
const complex< double > d0_N5_L2[]
4 tap gaussian filter with L2 norm approximation
const complex< double > d0_N3_Linf[]
5 tap gaussian filter with L2 norm approximation
const complex< double > d1_N5_Linf[]
4 tap first derivative filter with Linf norm approximation
const complex< double > d2_N5_Linf[]
4 tap second derivative filter with Linf norm approximation
const complex< double > d2_N4_Linf[]
3 tap second derivative filter with Linf norm approximation
const complex< double > d1_N3_Linf[]
5 tap gaussian filter with Linf norm approximation
const complex< double > d0_N3_L2[]
Coefficients for scale = 2 filters.