Function dft() removed 61/12461/2
Sylvestre Ledru [Sun, 8 Sep 2013 07:57:17 +0000 (09:57 +0200)]
Change-Id: I6c4bb141b5e746ed00e68cd11379a1958210ae9f

scilab/CHANGES_5.5.X
scilab/modules/signal_processing/help/en_US/transforms/dft.xml [deleted file]
scilab/modules/signal_processing/help/ja_JP/transforms/dft.xml [deleted file]
scilab/modules/signal_processing/macros/dft.sci [deleted file]

index 06e898d..bd15a67 100644 (file)
@@ -96,6 +96,8 @@ Obsolete
 * chart() tagged as obsolete. Will be removed for Scilab 5.5.1.
   Use nicholschart() instead.
 
+* dft removed, use fft instead.
+
 * sscanf is obsolete, use msscanf instead.
 
 * fscanf is obsolete, use mfscanf for files opened with mopen or read for files opened with file instead.
diff --git a/scilab/modules/signal_processing/help/en_US/transforms/dft.xml b/scilab/modules/signal_processing/help/en_US/transforms/dft.xml
deleted file mode 100644 (file)
index 4e0fd2f..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="dft">
-    <refnamediv>
-        <refname>dft (deprecated)</refname>
-        <refpurpose>discrete Fourier transform
-            <emphasis role="bold">This function is obsolete.</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>[xf]=dft(x,flag);</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>x</term>
-                <listitem>
-                    <para>input vector</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>flag</term>
-                <listitem>
-                    <para>indicates dft (flag=-1)  or idft (flag=1)</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xf</term>
-                <listitem>
-                    <para>output vector</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            Function which computes dft of vector <literal>x</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-n=8;omega = exp(-2*%pi*%i/n);
-j=0:n-1;F=omega.^(j'*j);  //Fourier matrix
-x=1:8;x=x(:);
-F*x
-fft(x,-1)
-dft(x,-1)
-inv(F)*x
-fft(x,1)
-dft(x,1)
- ]]></programlisting>
-    </refsection>
-    
-    <refsection>
-        <title>History</title>
-        <revhistory>
-            <revision>
-                <revnumber>5.4.1</revnumber>
-                <revremark>
-                    dft is obsolete. The algorithm has been moved to the <link linkend="fft">fft</link> help page.
-                </revremark>
-            </revision>
-        </revhistory>
-    </refsection>
-    
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="fft">fft</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/signal_processing/help/ja_JP/transforms/dft.xml b/scilab/modules/signal_processing/help/ja_JP/transforms/dft.xml
deleted file mode 100644 (file)
index b7ac711..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="dft">
-    <refnamediv>
-        <refname>dft</refname>
-        <refpurpose>離散フーリエ変換</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>呼び出し手順</title>
-        <synopsis>[xf]=dft(x,flag);</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>パラメータ</title>
-        <variablelist>
-            <varlistentry>
-                <term>x</term>
-                <listitem>
-                    <para>入力ベクトル</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>flag</term>
-                <listitem>
-                    <para>dft (flag=-1)  または idft (flag=1)を指定</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>xf</term>
-                <listitem>
-                    <para>出力ベクトル</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>説明</title>
-        <para>
-            ベクトル<literal>x</literal>のDFTを計算する関数.
-        </para>
-    </refsection>
-    <refsection>
-        <title>例</title>
-        <programlisting role="example"><![CDATA[ 
-n=8;omega = exp(-2*%pi*%i/n);
-j=0:n-1;F=omega.^(j'*j);  //Fourier matrix
-x=1:8;x=x(:);
-F*x
-fft(x,-1)
-dft(x,-1)
-inv(F)*x
-fft(x,1)
-dft(x,1)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>参照</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="fft">fft</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/signal_processing/macros/dft.sci b/scilab/modules/signal_processing/macros/dft.sci
deleted file mode 100644 (file)
index eb54ca5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) INRIA - 1988 - C. Bunks
-//
-// This file must be used under the terms of the CeCILL.
-// This source file is licensed as described in the file COPYING, which
-// you should have received as part of this distribution.  The terms
-// are also available at
-// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-function xf=dft(x,flag);
-    //xf=dft(x,flag);
-    //macro which computes dft of vector x
-    // x    :input vector
-    // flag :indicates dft or idft
-    // xf   :output vector
-    //!
-    warnobsolete("fft", "5.4.2");
-    n=max(size(x));
-    arg=(0:n-1);
-    am=-2*%pi*%i*arg'*arg/n;
-    if flag==1 then,
-        am=-am;
-    end,
-    xf=exp(am)*matrix(x,n,1);
-    if flag==1 then,
-        xf=xf/n;
-    end
-endfunction