Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

rdSignal Class Reference

A class for signal processing. More...

#include <rdSignal.h>

List of all members.

Static Public Member Functions

int lowpassIIR (double T, double fc, int N, double *sig, double *sigf)
 3rd ORDER LOWPASS IIR BUTTERWORTH DIGITAL DIGITAL FILTER

int lowpassFIR (int M, double T, double f, int N, double *sig, double *sigf)
 LOWPASS FIR NONRECURSIVE DIGITAL FILTER.

int bandpass (int M, double T, double f1, double f2, int N, double *sig, double *sigf)
 BANDPASS FIR NONRECURSIVE DIGITAL FILTER.

double sinc (double x)
 SINC(X) = SIN(X) / X.

double hamming (int k, int M)
 Hamming Window- dampens gibs phenominon infiltering functions.


Detailed Description

A class for signal processing.


Member Function Documentation

int rdSignal::bandpass int  M,
double  T,
double  f1,
double  f2,
int  N,
double *  sig,
double *  sigf
[static]
 

BANDPASS FIR NONRECURSIVE DIGITAL FILTER.

Note that sig and sigf must point to distinct locations in memory which do not overlap.

PARAMETERS

Parameters:
M Order of filter (should be 30 or greater).
T Sample interval in seconds. lowend cutoff frequency in Hz highend cutoff frequency in Hz
N Number of data points in the signal.
sig The sampled signal.
sigf The filtered signal.
Returns:
0 on success, and -1 on failure.

int rdSignal::lowpassFIR int  M,
double  T,
double  f,
int  N,
double *  sig,
double *  sigf
[static]
 

LOWPASS FIR NONRECURSIVE DIGITAL FILTER.

Note that sig and sigf must point to distinct locations in memory which do not overlap.

PARAMETERS

Parameters:
M Order of filter (should be 30 or greater).
T Sample interval in seconds.
f Cutoff frequency in Hz.
N Number of data points in the signal.
sig The sampled signal.
sigf The filtered signal.
Returns:
0 on success, and -1 on failure.

int rdSignal::lowpassIIR double  T,
double  fc,
int  N,
double *  sig,
double *  sigf
[static]
 

3rd ORDER LOWPASS IIR BUTTERWORTH DIGITAL DIGITAL FILTER

It is assumed that enough memory is allocated at sigf. Note also that the first and last three data points are not filtered.

Parameters:
T Sample interval in seconds.
fc Cutoff frequency in Hz.
N Number of data points in the signal.
sig The sampled signal.
sigf The filtered signal.
Returns:
0 on success, and -1 on failure.

double rdSignal::sinc double  x  )  [static]
 

SINC(X) = SIN(X) / X.

Returns:
sin(x)/x.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:12 2003 for Simulation Software by doxygen1.3