Go to the documentation of this file.
8 #ifndef UFO_PROFILE_PROFILECHECKVALIDATOR_H_
9 #define UFO_PROFILE_PROFILECHECKVALIDATOR_H_
51 const std::vector <T> &vec1,
52 const std::vector <T> &vec2,
60 {
return (std::fabs(A - B) <= tol);}
87 #endif // UFO_PROFILE_PROFILECHECKVALIDATOR_H_
ProfileDataHandler & profileDataHandler_
Profile data handler.
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...
std::map< std::string, int > cumulativeCounters_
Counters that are accumulated across profiles.
int nMismatches_
Number of mismatches between this code and OPS (separate for each profile).
bool differenceWithinTol(const T A, const T B, const float tol=1e-10) const
Determine difference between two values within a certain tolerance.
ProfileCheckValidator(const ProfileConsistencyCheckParameters &options, ProfileDataHandler &profileDataHandler)
const ProfileConsistencyCheckParameters & options_
Configurable parameters.
Profile QC check validator.
std::set< std::string > valuesToCompare_float_
Float values to compare.
void compareOutput(const std::string &desc, const T val1, const T val2, const int offset, const float tol, int &n)
Compare values with specified offset and tolerance.
std::map< std::string, int > comparison_offsets_
std::set< std::string > valuesToCompare_int_
Integer values to compare.
Options controlling the operation of the ProfileConsistencyChecks filter.
void validate()
Validate check results against OPS values.
int getMismatches() const
Get number of mismatches between values produced in this code and the OPS equivalents.