| 191 | struct 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 | |
| 202 | struct RMSE |