| 213 | struct 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 | |
| 224 | struct MAPE |