1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #pragma once
- #include <math.h>
- namespace Etc
- {
-
-
- bool Regression(float a_afX[], float a_afY[], unsigned int a_Points,
- float *a_fSlope, float *a_fOffset);
- inline float ConvertMSEToPSNR(float a_fMSE)
- {
- if (a_fMSE == 0.0f)
- {
- return INFINITY;
- }
- return 10.0f * log10f(1.0f / a_fMSE);
- }
- }
|