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

Method operator()

Source/Tools/ImageCompare/ImageCompare.cpp:193–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191struct MSE
192{
193 double operator()(const float* a, const float* b, size_t count) const
194 {
195 double error = 0.0;
196 for (size_t i = 0; i < count; ++i)
197 error += sqr(a[i] - b[i]);
198 return error / count;
199 }
200};
201
202struct RMSE

Callers

nothing calls this directly

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected