changeset 418:723a1745307d

Add forward-magnitude
author Chris Cannam
date Mon, 30 Sep 2013 12:35:52 +0100
parents 8304b4b6284f
children 66d50ece5c62
files src/may/transform/fft.yeti
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/may/transform/fft.yeti	Mon Sep 30 12:35:35 2013 +0100
+++ b/src/may/transform/fft.yeti	Mon Sep 30 12:35:52 2013 +0100
@@ -43,6 +43,10 @@
         packedToComplex (vec.length bl) v;
     done);
 
+//!!! doc: n separately as above
+realForwardMagnitude n =
+    complex.magnitudes . (realForward n);
+
 //!!! doc: input requires n/2+1 complex values (or should test and throw?)
 //!!! doc: powers of two only? check with jtransforms
 realInverse n = 
@@ -55,6 +59,7 @@
 
 {
 realForward,
+realForwardMagnitude,
 realInverse,
 }