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

Method operator()

Source/Tools/ImageCompare/ImageCompare.cpp:204–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202struct RMSE
203{
204 double operator()(const float* a, const float* b, size_t count) const
205 {
206 double error = 0.0;
207 for (size_t i = 0; i < count; ++i)
208 error += sqr(a[i] - b[i]) / (sqr(a[i]) + 1e-3);
209 return error / count;
210 }
211};
212
213struct MAE

Callers

nothing calls this directly

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected