From 6a4be601746f6a84fc70434a61b16bea86b6c147 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Sun, 4 May 2008 11:02:40 +0000 Subject: Fixed bug in peak interpolation algorithm in xtract_peak_spectrum() --- src/scalar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/scalar.c') diff --git a/src/scalar.c b/src/scalar.c index 4a2b672..d2bc317 100644 --- a/src/scalar.c +++ b/src/scalar.c @@ -434,6 +434,8 @@ int xtract_spread(const float *data, const int N, const void *argv, float *resul den += data[n]; } + /* FIX: spectral spread is mathematically equivalent to spectral variance -- + * here we are computing the spectral standard deviation */ *result = sqrtf(num / den); return XTRACT_SUCCESS; -- cgit v1.2.3