5 #ifndef SMARTTESTER_SECONDARYUNITTESTERS_H
6 #define SMARTTESTER_SECONDARYUNITTESTERS_H
9 #include <iface/SolverIface.h>
10 #include <iface/ApproxIface.h>
11 #include "GenericUnitTester.h"
50 double calculateMetric(
const std::vector<double>& times,
const std::vector<double>& reference,
const std::vector<double>& calculated);
59 static constexpr std::size_t s_signalValuesCount = 10;
61 static constexpr std::array<double, s_signalValuesCount> s_times { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0};
63 static constexpr std::array<double, s_signalValuesCount> s_levels { 2.0, 4.0, 8.0, 16.0, 32.0, 64.0, 128.0, 256.0, 512.0, 1024.0};
70 HRESULT middleTimeApproximationTest();
72 HRESULT middleTimeDerivativeApproximationTest();
75 HRESULT calculateApproximations(
const std::size_t derivativeOrder = 0);
80 #endif //SMARTTESTER_SECONDARYUNITTESTERS_H