1 | #ifndef TESTS_HH |
---|
2 | #define TESTS_HH |
---|
3 | #include <vector> |
---|
4 | #include <string> |
---|
5 | |
---|
6 | class Param; |
---|
7 | |
---|
8 | // MENU ROUTINES FOR DIGANOSTIC/TEST PROGRAMS |
---|
9 | std::string menu(); |
---|
10 | std::string specMenu(); |
---|
11 | std::string orionMenu(); |
---|
12 | std::string imageMenu(); |
---|
13 | std::string twoblMenu(); |
---|
14 | void spectralSelection(std::vector<float> &xvalues, |
---|
15 | std::vector<float> &yvalues, |
---|
16 | long &zdim); |
---|
17 | |
---|
18 | // trimmed histogram statistics -- in trimStats.cc |
---|
19 | void findTrimmedHistStats(float *array, const int size, float &tmean, float &tsigma); |
---|
20 | void findTrimmedHistStatsOLD(float *array, const int size, float &tmean, float &tsigma); |
---|
21 | void findTrimmedHistStats2(float *array, const int size, float &tmean, float &tsigma); |
---|
22 | |
---|
23 | // Atrous tranform functions not used in duchamp code |
---|
24 | void atrousTransform(long &length, int &numScales, float *spectrum, double *coeffs, double *wavelet, Param &par); |
---|
25 | void atrousTransform(long &length, float *spectrum, float *coeffs, float *wavelet, Param &par); |
---|
26 | void atrousTransform2D(long &xdim, long &ydim, int &numScales, float *input, double *coeffs, double *wavelet, Param &par); |
---|
27 | void atrousTransform2D(long &xdim, long &ydim, int &numScales, float *input, double *coeffs, double *wavelet); |
---|
28 | void atrousTransform3D(long &xdim, long &ydim, long &zdim, int &numScales, float *&input, float *&coeffs, float *&wavelet, Param &par); |
---|
29 | void atrousTransform3D(long &xdim, long &ydim, long &zdim, int &numScales, float *input, float *coeffs, float *wavelet); |
---|
30 | |
---|
31 | |
---|
32 | // Calculating the sigma factors for the atrous reconstruction |
---|
33 | // -- in sigma_factors.cc |
---|
34 | void getSigmaFactors(int &numScales, float *factors); |
---|
35 | void getSigmaFactors2D(int &numScales, float *factors); |
---|
36 | void getSigmaFactors3D(int &numScales, float *factors); |
---|
37 | void getSigmaFactors1DNew(int &numScales); |
---|
38 | void getSigmaFactors2DNew(int &numScales); |
---|
39 | void getSigmaFactors3DNew(int &numScales); |
---|
40 | |
---|
41 | |
---|
42 | // Random number generators -- all in get_random_spectrum.cc |
---|
43 | void getRandomSpectrum(int length, float *x, float *y); |
---|
44 | void getRandomSpectrum(int length, float *x, double *y); |
---|
45 | void getRandomSpectrum(int length, float mean, float sigma, |
---|
46 | float *x, double *y); |
---|
47 | void getRandomSpectrum(int length, float mean, float sigma, |
---|
48 | float *x, float *y); |
---|
49 | float getNormalRV(); |
---|
50 | float getNormalRVtrunc(); |
---|
51 | float getNormalRV(float mean, float sigma); |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | #endif // TESTS_HH |
---|