ldas-tools-filters  2.6.4
Functions | Variables
tLinFilt.cc File Reference
#include <filters_config.h>
#include <iostream>
#include <complex>
#include <stdexcept>
#include <string>
#include <vector>
#include "ldastoolsal/unittest.h"
#include "filters/LinFilt.hh"

Functions

void mkpath (std::string &path)
 
template<class T >
void read_data (const string &filename, valarray< T > &data)
 
template<class T >
double tol ()
 
template<>
double tol< double > ()
 
template<class TCoeffs , class TIn >
bool testTrivial ()
 
bool testExcept (const std::string &name, const valarray< float > &a, const valarray< float > &b)
 
bool testExceptions ()
 
template<class TCoeffs , class TIn >
bool testFIR (const std::string &ttstr)
 
template<class TCoeffs , class TIn >
bool testIIR (const std::string &ttstr)
 
template<class TCoeffs , class TIn >
bool checkGenericFilter (const valarray< TIn > &x, const valarray< double > &yd, LinFilt< TCoeffs, TIn > &lf, const string &name)
 
template<class TCoeffs , class TIn >
bool testVersusMatlab (const std::string &ttstr)
 
template<class TCoeffs >
bool checkFloatFilter (const valarray< float > &x, const valarray< TCoeffs > &b, const valarray< TCoeffs > &a, const string &name)
 
template<class TCoeffs >
bool testFloatFilter (const std::string &ttstr)
 
template<class PCoeffs , class PIn >
bool testCFIR (const std::string &ttstr)
 
template<class PCoeffs , class PIn >
bool testCIIR (const std::string &ttstr)
 
template<class TCoeffs , class TIn >
bool testPZFilter (const std::string &ttstr)
 
template<class PCoeffs , class PIn >
bool testCPZFilter (const std::string &ttstr)
 
int main (int ArgC, char **ArgV)
 

Variables

UnitTest Test
 
const size_t gInlen = 50
 
const double gIndata [gInlen]
 

Function Documentation

◆ checkFloatFilter()

template<class TCoeffs >
bool checkFloatFilter ( const valarray< float > &  x,
const valarray< TCoeffs > &  b,
const valarray< TCoeffs > &  a,
const string &  name 
)

◆ checkGenericFilter()

template<class TCoeffs , class TIn >
bool checkGenericFilter ( const valarray< TIn > &  x,
const valarray< double > &  yd,
LinFilt< TCoeffs, TIn > &  lf,
const string &  name 
)

◆ main()

int main ( int  ArgC,
char **  ArgV 
)

◆ mkpath()

void mkpath ( std::string &  path)

◆ read_data()

template<class T >
void read_data ( const string &  filename,
valarray< T > &  data 
)

◆ testCFIR()

template<class PCoeffs , class PIn >
bool testCFIR ( const std::string &  ttstr)

◆ testCIIR()

template<class PCoeffs , class PIn >
bool testCIIR ( const std::string &  ttstr)

◆ testCPZFilter()

template<class PCoeffs , class PIn >
bool testCPZFilter ( const std::string &  ttstr)

◆ testExcept()

bool testExcept ( const std::string &  name,
const valarray< float > &  a,
const valarray< float > &  b 
)

◆ testExceptions()

bool testExceptions ( )

◆ testFIR()

template<class TCoeffs , class TIn >
bool testFIR ( const std::string &  ttstr)

◆ testFloatFilter()

template<class TCoeffs >
bool testFloatFilter ( const std::string &  ttstr)

◆ testIIR()

template<class TCoeffs , class TIn >
bool testIIR ( const std::string &  ttstr)

◆ testPZFilter()

template<class TCoeffs , class TIn >
bool testPZFilter ( const std::string &  ttstr)

◆ testTrivial()

template<class TCoeffs , class TIn >
bool testTrivial ( )

◆ testVersusMatlab()

template<class TCoeffs , class TIn >
bool testVersusMatlab ( const std::string &  ttstr)

◆ tol()

template<class T >
double tol ( )

◆ tol< double >()

template<>
double tol< double > ( )

Variable Documentation

◆ gIndata

const double gIndata[gInlen]
Initial value:
= {
-1.128343864320229, -1.349277543102495, -0.261101623061621,
0.9534654455048185, 0.128644430046645, 0.656467513885396,
-1.167819364726639, -0.4606051795061504, -0.2624399528383327,
-1.213152068493907, -1.319436998109537, 0.9312175149954361,
0.01124489638413373, -0.6451458156911702, 0.8057287931123757,
0.2316260107804365, -0.9897596716820042, 1.339585700610388,
0.2895020345384132, 1.478917057681278, 1.138028012858371,
-0.6841385851363396, -1.291936044965938, -0.07292627626364673,
-0.3305988798927643, -0.8436276391547997, 0.4977696641827825,
1.488490470903483, -0.5464758947676226, -0.8467581638830595,
-0.2463365280848998, 0.6630241458559077, -0.8541973744689799,
-1.201314815339041, -0.1198694280573872, -0.06529401484158653,
0.4852955559165439, -0.5954909026194759, -0.1496677438244753,
-0.4347519311525334, -0.07933022302342058, 1.535152266122148,
-0.6064828592772656, -1.34736267385024, 0.46938311986633,
-0.9035669426177764, 0.03587963872947693, -0.6275312199668315,
0.535397954249106, 0.552883517423822
}

◆ gInlen

const size_t gInlen = 50

◆ Test

UnitTest Test