ldas-tools-filters
2.6.6
|
#include <filters_config.h>
#include <iostream>
#include <complex>
#include <valarray>
#include <string>
#include <fstream>
#include <stdexcept>
#include "ldastoolsal/unittest.h"
#include "filters/LDASConstants.hh"
#include "filters/FilterConstants.hh"
#include "filters/Window.hh"
#include "filters/RectangularWindow.hh"
#include "filters/HannWindow.hh"
#include "filters/KaiserWindow.hh"
Functions | |
template<class T > | |
int | readData (const char *fileName, T *input) |
template<class T > | |
bool | testKaiserConstructorError (const std::string &name, const double beta) |
template<class T > | |
bool | testKaiserSetBetaError (const std::string &name, const double beta) |
template<class T > | |
bool | testApplyErrorR (const std::string &name, Window &window, valarray< T > &in) |
bool | testErrors () |
template<class T > | |
bool | testValidKaiserSetBeta () |
template<class T > | |
bool | testValidR (const std::string &name, const valarray< T > &in, valarray< T > &out, Window &window, const string windowNameExpected, const double meanExpected, const double rmsExpected, const valarray< T > &outExpected) |
template<class T > | |
bool | testValidC (const std::string &name, const valarray< std::complex< T > > &in, valarray< std::complex< T > > &out, Window &window, const string windowNameExpected, const double meanExpected, const double rmsExpected, const valarray< std::complex< T > > &outExpected) |
template<class T > | |
bool | testInplaceValid (const std::string &name, Window &window) |
template<class T > | |
bool | testAllValid () |
int | main (int ArgC, char **ArgV) |
Variables | |
UnitTest | Test |
int main | ( | int | ArgC, |
char ** | ArgV | ||
) |
int readData | ( | const char * | fileName, |
T * | input | ||
) |
bool testAllValid | ( | ) |
bool testApplyErrorR | ( | const std::string & | name, |
Window & | window, | ||
valarray< T > & | in | ||
) |
bool testErrors | ( | ) |
bool testInplaceValid | ( | const std::string & | name, |
Window & | window | ||
) |
bool testKaiserConstructorError | ( | const std::string & | name, |
const double | beta | ||
) |
bool testKaiserSetBetaError | ( | const std::string & | name, |
const double | beta | ||
) |
bool testValidC | ( | const std::string & | name, |
const valarray< std::complex< T > > & | in, | ||
valarray< std::complex< T > > & | out, | ||
Window & | window, | ||
const string | windowNameExpected, | ||
const double | meanExpected, | ||
const double | rmsExpected, | ||
const valarray< std::complex< T > > & | outExpected | ||
) |
bool testValidKaiserSetBeta | ( | ) |
bool testValidR | ( | const std::string & | name, |
const valarray< T > & | in, | ||
valarray< T > & | out, | ||
Window & | window, | ||
const string | windowNameExpected, | ||
const double | meanExpected, | ||
const double | rmsExpected, | ||
const valarray< T > & | outExpected | ||
) |
UnitTest Test |