summaryrefslogtreecommitdiff
path: root/macros/ifht.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-11-24 19:19:30 +0530
committerAbhinav Dronamraju2017-11-24 19:19:30 +0530
commit11f08cc395ea1b0de77af3dbb87a985418fc3800 (patch)
tree0991c8646700449cd366089055f9e6c671253364 /macros/ifht.sci
parente3a1c5e215a7e9a074a3e6fa7171b2092c8c5cc0 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-11f08cc395ea1b0de77af3dbb87a985418fc3800.tar.gz
FOSSEE-Signal-Processing-Toolbox-11f08cc395ea1b0de77af3dbb87a985418fc3800.tar.bz2
FOSSEE-Signal-Processing-Toolbox-11f08cc395ea1b0de77af3dbb87a985418fc3800.zip
Created xml help files
Diffstat (limited to 'macros/ifht.sci')
-rw-r--r--macros/ifht.sci18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/ifht.sci b/macros/ifht.sci
index aacbd7a..7f865cb 100644
--- a/macros/ifht.sci
+++ b/macros/ifht.sci
@@ -1,4 +1,22 @@
function m = ifht(d, varargin)
+//Calculate the inverse Fast Hartley Transform of real input D
+//Calling Sequence
+//m= ifht (d)
+//m= ifht (d,n)
+//m= ifht (d,n,dim)
+//Parameters
+//d: real or complex valued scalar or vector
+//n: Similar to the options of FFT function
+//dim: Similar to the options of FFT function
+//Description
+//Calculate the inverse Fast Hartley Transform of real input d. If d is a matrix, the inverse Hartley transform is calculated along the columns by default. The options n and dim are similar to the options of FFT function.
+//
+//The forward and inverse Hartley transforms are the same (except for a scale factor of 1/N for the inverse hartley transform), but implemented using different functions.
+//
+//The definition of the forward hartley transform for vector d, m[K] = 1/N \sum_{i=0}^{N-1} d[i]*(cos[K*2*pi*i/N] + sin[K*2*pi*i/N]), for 0 <= K < N. m[K] = 1/N \sum_{i=0}^{N-1} d[i]*CAS[K*i], for 0 <= K < N.
+//Examples
+//ifht(1 : 4)
+//ifht(1:4, 2)
funcprot(0);
rhs= argn(2);
if(rhs<1 | rhs>3)