diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2008-05-04 11:02:40 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2008-05-04 11:02:40 +0000 |
commit | 6a4be601746f6a84fc70434a61b16bea86b6c147 (patch) | |
tree | fd8e8bfac0e6846f848a38490d583f4bfa7f6a6e /src/scalar.c | |
parent | d817fc9b42b0c04d6452159ca63f5a30834f5489 (diff) | |
download | LibXtract-6a4be601746f6a84fc70434a61b16bea86b6c147.tar.gz LibXtract-6a4be601746f6a84fc70434a61b16bea86b6c147.tar.bz2 LibXtract-6a4be601746f6a84fc70434a61b16bea86b6c147.zip |
Fixed bug in peak interpolation algorithm in xtract_peak_spectrum()
Diffstat (limited to 'src/scalar.c')
-rw-r--r-- | src/scalar.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |