FIR.cpp File Reference

#include "FIR.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>

Defines

#define BANDPASS   1
#define DIFFERENTIATOR   2
#define HILBERT   3
#define NEGATIVE   0
#define POSITIVE   1
#define Pi   3.1415926535897932
#define Pi2   6.2831853071795865
#define GRIDDENSITY   16
#define MAXITERATIONS   40

Functions

void remez (double h[], int numtaps, int numband, double bands[], double des[], double weight[], int type)
void CreateDenseGrid (int r, int numtaps, int numband, double bands[], double des[], double weight[], int *gridsize, double Grid[], double D[], double W[], int symmetry)
void InitialGuess (int r, int Ext[], int gridsize)
void CalcParms (int r, int Ext[], double Grid[], double D[], double W[], double ad[], double x[], double y[])
double ComputeA (double freq, int r, double ad[], double x[], double y[])
void CalcError (int r, double ad[], double x[], double y[], int gridsize, double Grid[], double D[], double W[], double E[])
void Search (int r, int Ext[], int gridsize, double E[])
void FreqSample (int N, double A[], double h[], int symm)
short isDone (int r, int Ext[], double E[])

Define Documentation

#define BANDPASS   1

#define DIFFERENTIATOR   2

Referenced by remez().

#define HILBERT   3

#define NEGATIVE   0

Referenced by CreateDenseGrid(), and remez().

#define POSITIVE   1

Referenced by FreqSample(), and remez().

#define Pi   3.1415926535897932

Referenced by FreqSample(), and remez().

#define Pi2   6.2831853071795865

Referenced by CalcParms(), ComputeA(), FreqSample(), and remez().

#define GRIDDENSITY   16

Referenced by CreateDenseGrid(), and remez().

#define MAXITERATIONS   40

Referenced by remez().


Function Documentation

void remez ( double  h[],
int  numtaps,
int  numband,
double  bands[],
double  des[],
double  weight[],
int  type 
)

void CreateDenseGrid ( int  r,
int  numtaps,
int  numband,
double  bands[],
double  des[],
double  weight[],
int *  gridsize,
double  Grid[],
double  D[],
double  W[],
int  symmetry 
)

References GRIDDENSITY, testkiss::j, and NEGATIVE.

Referenced by remez().

void InitialGuess ( int  r,
int  Ext[],
int  gridsize 
)

Referenced by remez().

void CalcParms ( int  r,
int  Ext[],
double  Grid[],
double  D[],
double  W[],
double  ad[],
double  x[],
double  y[] 
)

References testkiss::j, and Pi2.

Referenced by remez().

double ComputeA ( double  freq,
int  r,
double  ad[],
double  x[],
double  y[] 
)

References testkiss::e, and Pi2.

Referenced by CalcError(), and remez().

void CalcError ( int  r,
double  ad[],
double  x[],
double  y[],
int  gridsize,
double  Grid[],
double  D[],
double  W[],
double  E[] 
)

References ComputeA().

Referenced by remez().

void Search ( int  r,
int  Ext[],
int  gridsize,
double  E[] 
)

References testkiss::j.

Referenced by remez().

void FreqSample ( int  N,
double  A[],
double  h[],
int  symm 
)

References Pi, Pi2, POSITIVE, and x.

Referenced by remez().

short isDone ( int  r,
int  Ext[],
double  E[] 
)

References max, and min.

Referenced by remez().


Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8