diff options
Diffstat (limited to '')
-rw-r--r-- | src/gamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gamma.c b/src/gamma.c index 843403d..f0dc05b 100644 --- a/src/gamma.c +++ b/src/gamma.c @@ -38,7 +38,7 @@ void gamma_analyse(size_t stops, const uint16_t* restrict ramp, double* restrict middle = (double)(ramp[stops / 2]) / (double)0xFFFF; middle = (middle - min) / (max - min); - *gamma = log((double)2) / log(middle); + *gamma = -log((double)2) / log(middle); } |