65 failMesg =
"The Add method was unsuccessful";
84 failMesg =
"The AverageX method was unsuccessful";
103 failMesg =
"The AverageY method was unsuccessful";
112 gnsstk::TestUtil testFramework(
"BivarStats",
"MaximumX()",__FILE__,__LINE__);
113 std::string failMesg;
122 failMesg =
"The MaximumX method was unsuccessful";
131 gnsstk::TestUtil testFramework(
"BivarStats",
"MaximumY()",__FILE__,__LINE__);
132 std::string failMesg;
141 failMesg =
"The MaximumY method was unsuccessful";
150 gnsstk::TestUtil testFramework(
"BivarStats",
"MinimumX()",__FILE__,__LINE__);
151 std::string failMesg;
160 failMesg =
"The MinimumX method was unsuccessful";
169 gnsstk::TestUtil testFramework(
"BivarStats",
"MinimumY()",__FILE__,__LINE__);
170 std::string failMesg;
179 failMesg =
"The MinimumY method was unsuccessful";
188 gnsstk::TestUtil testFramework(
"BivarStats",
"VarianceX()",__FILE__,__LINE__);
189 std::string failMesg;
198 failMesg =
"The VarianceX method was unsuccessful";
207 gnsstk::TestUtil testFramework(
"BivarStats",
"VarianceY()",__FILE__,__LINE__);
208 std::string failMesg;
217 failMesg =
"The VarianceY method was unsuccessful";
227 std::string failMesg;
236 failMesg =
"The stdDevX method was unsuccessful";
238 testFramework.
assert(fabs(test.
stdDevX() - sqrt(2.5)) <
eps, failMesg, __LINE__);
245 std::string failMesg;
254 failMesg =
"The stdDevY method was unsuccessful";
256 testFramework.
assert(fabs(test.
stdDevY() - sqrt(2.5)) <
eps, failMesg, __LINE__);
264 std::string failMesg;
273 failMesg =
"The Slope method was unsuccessful";
275 testFramework.
assert(fabs(test.
slope() - 0.1) <
eps, failMesg, __LINE__);
282 gnsstk::TestUtil testFramework(
"BivarStats",
"Intercept()",__FILE__,__LINE__);
283 std::string failMesg;
292 failMesg =
"The Intercept method was unsuccessful";
301 gnsstk::TestUtil testFramework(
"BivarStats",
"SlopeUncertainty()",__FILE__,__LINE__);
302 std::string failMesg;
311 failMesg =
"The sigmaSlope method was unsuccessful";
313 testFramework.
assert(fabs(test.
sigmaSlope() - 0.574456264653803) <
eps, failMesg, __LINE__);
320 gnsstk::TestUtil testFramework(
"BivarStats",
"ConditionalUncertaintyTest()",__FILE__,__LINE__);
321 std::string failMesg;
330 failMesg =
"The sigmaYX method was unsuccessful";
332 testFramework.
assert(fabs(test.
sigmaYX() - 1.81659021245849) <
eps, failMesg, __LINE__);
339 gnsstk::TestUtil testFramework(
"BivarStats",
"Correlation()",__FILE__,__LINE__);
340 std::string failMesg;
349 failMesg =
"The correlation method was unsuccessful";
359 int check, errorCounter = 0;
363 errorCounter += check;
366 errorCounter += check;
369 errorCounter += check;
372 errorCounter += check;
375 errorCounter += check;
378 errorCounter += check;
381 errorCounter += check;
384 errorCounter += check;
387 errorCounter += check;
390 errorCounter += check;
393 errorCounter += check;
396 errorCounter += check;
399 errorCounter += check;
402 errorCounter += check;
405 errorCounter += check;
408 errorCounter += check;
410 std::cout <<
"Total Errors: " << errorCounter << std::endl;