TestHelpers::TestData Struct Reference Precalculated data with it's properties used in statistical objects tests. More...
Detailed DescriptionPrecalculated data with it's properties used in statistical objects tests. Definition at line 18 of file TestHelpers.h. Constructor & Destructor Documentation◆ TestData()
Definition at line 19 of file TestHelpers.h. 19 {
20 std::ifstream infile("normalDistr.data");
21
22 data.reserve(1000);
23
24 skip_lines(infile, 5);
25
26 infile >> meanVal;
27 infile >> stdDevVal;
28 infile >> varVal;
29 infile >> RMSVal;
30 infile >> stdErrVal;
31
32 double buffer = 0;
33
34 while(infile >> buffer)
35 data.push_back(buffer);
36 }
void skip_lines(std::istream &pStream, size_t pLines) From here: https://stackoverflow.com/a/2581839. Definition TestHelpers.h:10 References data, meanVal, RMSVal, TestHelpers::skip_lines(), stdDevVal, stdErrVal, and varVal. Member Data Documentation◆ data
Definition at line 44 of file TestHelpers.h. Referenced by TestData(). ◆ meanVal
Definition at line 38 of file TestHelpers.h. Referenced by TestData(). ◆ RMSVal
Definition at line 41 of file TestHelpers.h. Referenced by TestData(). ◆ stdDevVal
Definition at line 39 of file TestHelpers.h. Referenced by TestData(). ◆ stdErrVal
Definition at line 40 of file TestHelpers.h. Referenced by TestData(). ◆ varVal
Definition at line 42 of file TestHelpers.h. Referenced by TestData(). The documentation for this struct was generated from the following file:
Generated on Mon Oct 28 2024 13:47:24 for YODA - Yet more Objects for Data Analysis by 1.9.8 |