MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / operator()

Method operator()

Source/Tools/ImageCompare/ImageCompare.cpp:215–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213struct MAE
214{
215 double operator()(const float* a, const float* b, size_t count) const
216 {
217 double error = 0.0;
218 for (size_t i = 0; i < count; ++i)
219 error += std::fabs(sqr(a[i] - b[i]));
220 return error / count;
221 }
222};
223
224struct MAPE

Callers

nothing calls this directly

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected