20#include <lal/LALStdlib.h>
21#include <lal/IIRFilter.h>
60#undef SINGLE_PRECISION
63#define SINGLE_PRECISION
65#undef SINGLE_PRECISION
68#define SINGLE_PRECISION
70#undef SINGLE_PRECISION
124 for(i=0;(i<recursOrder)&&(i<length);i++,data++){
127 datum+=data[-j]*recursCoef[j];
128 for(k=0;j<recursOrder;j++,k++)
129 datum+=history[k]*recursCoef[j];
132 for(;i<length;i++,data++){
134 for(j=1;j<recursOrder;j++)
135 datum+=data[-j]*recursCoef[j];
141 for(k=numHist-1;k>=length;k--)
142 temp[k]=history[k-length];
147 for(;i>directOrder;i--,data--){
148 datum=*data*directCoef[0];
149 for(j=1;j<directOrder;j++)
150 datum+=data[-j]*directCoef[j];
153 for(;i>0;i--,data--){
154 datum=*data*directCoef[0];
156 datum+=data[-j]*directCoef[j];
157 for(k=0;j<directOrder;j++,k++)
158 datum+=history[k]*directCoef[j];
163 for(k=0;k<numHist;k++)
int XLALIIRFilterREAL8Vector(REAL8Vector *vector, REAL8IIRFilter *filter)
int XLALIIRFilterREAL4Vector(REAL4Vector *vector, REAL8IIRFilter *filter)
#define ABORT(statusptr, code, mesg)
#define ASSERT(assertion, statusptr, code, mesg)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
#define IIRFILTERH_ENUL
Unexpected null pointer in arguments.
#define IIRFILTERH_EMEM
Memory allocation error.
void LALDIIRFilterREAL4Vector(LALStatus *stat, REAL4Vector *vector, REAL8IIRFilter *filter)
WARNING: THIS FUNCTION IS OBSOLETE.
void LALIIRFilterREAL8Vector(LALStatus *stat, REAL8Vector *vector, REAL8IIRFilter *filter)
WARNING: THIS FUNCTION IS OBSOLETE.
void LALIIRFilterREAL4Vector(LALStatus *stat, REAL4Vector *vector, REAL4IIRFilter *filter)
WARNING: THIS FUNCTION IS OBSOLETE.
double REAL8
Double precision real floating-point number (8 bytes).
int32_t INT4
Four-byte signed integer.
float REAL4
Single precision real floating-point number (4 bytes).
int XLALClearErrno(void)
Clears the XLAL error number, returns the old value.
LAL status structure, see The LALStatus structure for more details.
This structure stores the direct and recursive REAL4 filter coefficients, as well as the history of t...
REAL4Vector * history
The previous values of w.
REAL4Vector * recursCoef
The recursive filter coefficients.
REAL4Vector * directCoef
The direct filter coefficients.
Vector of type REAL4, see DATATYPE-Vector types for more details.
REAL4 * data
Pointer to the data array.
UINT4 length
Number of elements in array.
This structure stores the direct and recursive REAL8 filter coefficients, as well as the history of t...
REAL8Vector * history
The previous values of w.
REAL8Vector * recursCoef
The recursive filter coefficients.
REAL8Vector * directCoef
The direct filter coefficients.
Vector of type REAL8, see DATATYPE-Vector types for more details.
REAL8 * data
Pointer to the data array.