1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <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="fr" xml:id="noisegen">
18 <refname>noisegen</refname>
19 <refpurpose>génération de bruit <emphasis role="bold">(obsolète)</emphasis></refpurpose>
22 <title>Séquence d'appel</title>
23 <synopsis>b = noisegen(pas, Tmax, sig)</synopsis>
26 <title>Paramètres</title>
31 <para>scalaire réel, le pas de temps</para>
37 <para>scalaire réel, le temps final de l'intervalle de génération</para>
43 <para>scalaire réel, l'écart-type du bruit</para>
49 <title>Description</title>
51 <literal>noisegen()</literal> is obsolete. It will be removed from Scilab 6.1.x.
52 Please use grand() instead. Examples (clearer, shorter, and more powerful) follow:
55 100 10-point wide steps with random amplitudes of normal distribution
56 of mean 1 and standard deviation 0.7:
58 <programlisting role="example"><![CDATA[
59 u = grand(1,100,"nor",1,0.7) .*. ones(1,10);
64 40 15-point wide steps with random amplitudes of uniform distribution in [1 3],
65 with initial level 0.5 and final level hold:
67 <programlisting role="example"><![CDATA[
69 u = grand(1,40, "unf", 1, 3) .*. ones(1,width);
70 u = [ones(1,8*width)*0.5, u, ones(1,5*width)*u($)];
75 <literal>noisegen()</literal> génère une fonction Scilab <literal>b = Noise(t)</literal>
76 où <literal>Noise(t)</literal> est une fonction constante par morceaux
77 (constante sur <literal>[k*pas, (k+1)*pas]</literal>). Les valeurs de chaque intervalle
78 constant sont aléatoires, i.i.d Gaussiennes à écart-type <literal>sig</literal>.
79 La fonction est constante pour <literal>t <= 0</literal> et
80 <literal>t >= Tmax</literal>.
84 Remarque: des fonctions de génération aléatoires telles que <link linkend="rand">rand</link> et
85 <link linkend="grand">grand</link> sont une alternative à la génération de bruit
86 contenant un large panel de lois de distribution (voir exemple 2 ci-dessous).
91 <title>Exemples</title>
93 Exemple #1: noisegen()
95 <programlisting role="example"><![CDATA[
96 noisegen(0.5, 30, 1.0);
102 noisegen(0.5, 30, 1.0);
110 <programlisting role="example"><![CDATA[
111 // Tracer un bruit blanc gaussien de moyenne nulle à variance 1.
112 // Pour utiliser une variance différente, multiplier rand() par la racine carrée de la variance.
114 sig = 1; // Ecart-type du bruit blanc gaussien.
115 noise = sig*rand(t, "normal");
121 noise = sig*rand(t, "normal");
125 <refsection role="see also">
126 <title>Vori aussi</title>
127 <simplelist type="inline">
129 <link linkend="rand">rand</link>
132 <link linkend="grand">grand</link>
136 <refsection role="history">
137 <title>Historique</title>
140 <revnumber>6.1.0</revnumber>
142 noisegen() is obsolete. It will be removed from Scilab 6.1.x.
143 Please replace it with grand() and .*.