1 #ifndef TestDDaceRandomSampler_h 2 #define TestDDaceRandomSampler_h 3 4 #include <cstdio> 5 #include <cstdlib> 6 #include <iostream> 7 #include <string> 8 #include "Distribution.h" 9 #include "UniformDistribution.h" 10 #include "DDaceRandomSampler.h" 11 #include "suite.h" 12 13 class TestDDaceRandomSampler : public Test 14 { 15 public: 16 TestDDaceRandomSampler(); 17 ~TestDDaceRandomSampler(); 18 19 void run(); 20 void testDDaceRandomSamplerWithDist(); 21 void testDDaceRandomSamplerWithoutDist(); 22 void testGetSamples(); 23 void testClone(); 24 void testPrint(); 25 void testTypeName(); 26 void testGetParameter(); 27 28 private: 29 std::vector<Distribution> dists; 30 std::vector< std::vector<double> > test_data; 31 std::vector<double> lb; 32 std::vector<double> ub; 33 int seed; 34 }; 35 36 #endif 37