MCPcopy Create free account
hub / github.com/Profactor/cv-plot / WithinAbsMatcher

Method WithinAbsMatcher

CvPlot/ext/catch2/inc/catch.hpp:11414–11418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11412 };
11413
11414 WithinAbsMatcher::WithinAbsMatcher(double target, double margin)
11415 :m_target{ target }, m_margin{ margin } {
11416 CATCH_ENFORCE(margin >= 0, "Invalid margin: " << margin << '.'
11417 << " Margin has to be non-negative.");
11418 }
11419
11420 // Performs equivalent check of std::fabs(lhs - rhs) <= margin
11421 // But without the subtraction to allow for INFINITY in comparison

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected