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);}
Options controlling the operation of the ConventionalProfileProcessing filter.
Profile QC check validator.
std::map< std::string, int > comparison_offsets_
std::set< std::string > valuesToCompare_int_
Integer values to compare.
const ConventionalProfileProcessingParameters & options_
Configurable parameters.
ProfileCheckValidator(const ConventionalProfileProcessingParameters &options)
int nMismatches_
Number of mismatches between this code and OPS (separate for each profile).
std::map< std::string, int > cumulativeCounters_
Counters that are accumulated across profiles.
std::set< std::string > valuesToCompare_float_
Float values to compare.
void validate(ProfileDataHandler &profileDataHandler, size_t commSize)
Validate check results against OPS values.
bool differenceWithinTol(const T A, const T B, const float tol=1e-10) const
Determine difference between two values within a certain tolerance.
int getMismatches() const
Get number of mismatches between values produced in this code and the OPS equivalents.
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.
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...