yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.2
TestHelpers::TestData Struct Reference

Precalculated data with it's properties used in statistical objects tests. More...

#include <TestHelpers.h>

Public Member Functions

 TestData ()
 

Public Attributes

double meanVal
 
double stdDevVal
 
double stdErrVal
 
double RMSVal
 
double varVal
 
std::vector< double > data
 

Detailed Description

Precalculated data with it's properties used in statistical objects tests.

Definition at line 18 of file TestHelpers.h.

Constructor & Destructor Documentation

◆ TestData()

TestHelpers::TestData::TestData ( )
inline

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
std::vector< double > data
Definition TestHelpers.h:44

References data, meanVal, RMSVal, TestHelpers::skip_lines(), stdDevVal, stdErrVal, and varVal.

Member Data Documentation

◆ data

std::vector<double> TestHelpers::TestData::data

Definition at line 44 of file TestHelpers.h.

Referenced by TestData().

◆ meanVal

double TestHelpers::TestData::meanVal

Definition at line 38 of file TestHelpers.h.

Referenced by TestData().

◆ RMSVal

double TestHelpers::TestData::RMSVal

Definition at line 41 of file TestHelpers.h.

Referenced by TestData().

◆ stdDevVal

double TestHelpers::TestData::stdDevVal

Definition at line 39 of file TestHelpers.h.

Referenced by TestData().

◆ stdErrVal

double TestHelpers::TestData::stdErrVal

Definition at line 40 of file TestHelpers.h.

Referenced by TestData().

◆ varVal

double TestHelpers::TestData::varVal

Definition at line 42 of file TestHelpers.h.

Referenced by TestData().


The documentation for this struct was generated from the following file: