Parallel Analog Ensemble
testFunctions.h
Go to the documentation of this file.
1/*
2 * File: testFunctions.h
3 * Author: Weiming Hu <weiming@psu.edu>
4 *
5 * Created on Feb 7, 2019, 2:28:24 PM
6 */
7
8#ifndef TESTFUNCTIONS_H
9#define TESTFUNCTIONS_H
10
11#include <cppunit/extensions/HelperMacros.h>
12#include "Functions.h"
13
14class testFunctions : public CPPUNIT_NS::TestFixture {
16
28
30
31public:
33 virtual ~testFunctions();
34 void setUp();
35 void tearDown();
36
37 std::string file_observations = _PATH_OBSERVATIONS;
38 std::string file_forecasts = _PATH_FORECASTS;
39
40private:
41
48 void testSdCircular_();
49 void testSdLinear_();
50 void testMean_();
51 void testFindClosest_();
52 void testFindClosest2_();
53
54 bool neighborExists_(const Functions::Matrix & table,
55 size_t test_index, size_t neighbor_index) const;
56};
57
58#endif /* TESTFUNCTIONS_H */
59
Definition: testFunctions.h:14
void testComputeObservationTimeIndices1_()
Definition: testFunctions.cpp:169
void testComputeObservationTimeIndices2_()
Definition: testFunctions.cpp:213
void testSdCircular_()
Definition: testFunctions.cpp:396
std::string file_forecasts
Definition: testFunctions.h:38
bool neighborExists_(const Functions::Matrix &table, size_t test_index, size_t neighbor_index) const
Definition: testFunctions.cpp:523
CPPUNIT_TEST(testSearchStations_)
void testFindClosest2_()
Definition: testFunctions.cpp:499
CPPUNIT_TEST(testFindClosest2_)
void testSearchStations_()
Definition: testFunctions.cpp:45
void testConvertToIndex_()
Definition: testFunctions.cpp:364
CPPUNIT_TEST(testConvertToIndex_)
void testCollapseLeadTimes_()
Definition: testFunctions.cpp:247
CPPUNIT_TEST(testComputeObservationTimeIndices1_)
void testSdLinear_()
Definition: testFunctions.cpp:424
void testMean_()
Definition: testFunctions.cpp:452
CPPUNIT_TEST(testComputeObservationTimeIndices2_)
void tearDown()
Definition: testFunctions.cpp:41
CPPUNIT_TEST(testCollapseLeadTimes_)
virtual ~testFunctions()
Definition: testFunctions.cpp:33
testFunctions()
Definition: testFunctions.cpp:30
CPPUNIT_TEST(testSdCircular_)
CPPUNIT_TEST(testMean_)
CPPUNIT_TEST_SUITE(testFunctions)
CPPUNIT_TEST(testFindClosest_)
CPPUNIT_TEST(testUnwrapTimeSeries_)
CPPUNIT_TEST(testSdLinear_)
void testUnwrapTimeSeries_()
Definition: testFunctions.cpp:315
std::string file_observations
Definition: testFunctions.h:37
void setUp()
Definition: testFunctions.cpp:37
void testFindClosest_()
Definition: testFunctions.cpp:472
boost::numeric::ublas::matrix< double, boost::numeric::ublas::column_major, std::vector< double > > Matrix
Definition: Functions.h:61