#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 BANDPASS 1 |
Referenced by csl::FilterSpecification::planFilter(), and remez().
| #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().
| void remez | ( | double | h[], | |
| int | numtaps, | |||
| int | numband, | |||
| double | bands[], | |||
| double | des[], | |||
| double | weight[], | |||
| int | type | |||
| ) |
References BANDPASS, CalcError(), CalcParms(), ComputeA(), CreateDenseGrid(), DIFFERENTIATOR, FreqSample(), GRIDDENSITY, InitialGuess(), isDone(), MAXITERATIONS, NEGATIVE, Pi, Pi2, POSITIVE, Search(), and x.
Referenced by csl::FilterSpecification::planFilter().
| 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 | |||
| ) |
Referenced by remez().
| 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 | |||
| ) |
1.5.8