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 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
13 <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">
15 <refname>noisegen</refname>
16 <refpurpose>génération de bruit</refpurpose>
19 <title>Séquence d'appel</title>
20 <synopsis>b = noisegen(pas, Tmax, sig)</synopsis>
23 <title>Paramètres</title>
28 <para>scalaire réel, le pas de temps</para>
34 <para>scalaire réel, le temps final de l'intervalle de génération</para>
40 <para>scalaire réel, l'écart-type du bruit</para>
46 <title>Description</title>
48 <literal>noisegen()</literal> génère une fonction Scilab <literal>b = Noise(t)</literal>
49 où <literal>Noise(t)</literal> est une fonction constante par morceaux
50 (constante sur <literal>[k*pas, (k+1)*pas]</literal>). Les valeurs de chaque intervalle
51 constant sont aléatoires, i.i.d Gaussiennes à écart-type <literal>sig</literal>.
52 La fonction est constante pour <literal>t <= 0</literal> et
53 <literal>t >= Tmax</literal>.
57 Remarque: des fonctions de génération aléatoires telles que <link linkend="rand">rand</link> et
58 <link linkend="grand">grand</link> sont une alternative à la génération de bruit
59 contenant un large panel de lois de distribution (voir exemple 2 ci-dessous).
64 <title>Exemples</title>
66 Exemple #1: noisegen()
68 <programlisting role="example"><![CDATA[
69 noisegen(0.5, 30, 1.0);
75 noisegen(0.5, 30, 1.0);
83 <programlisting role="example"><![CDATA[
84 // Tracer un bruit blanc gaussien de moyenne nulle à variance 1.
85 // Pour utiliser une variance différente, multiplier rand() par la racine carrée de la variance.
87 sig = 1; // Ecart-type du bruit blanc gaussien.
88 noise = sig*rand(t, "normal");
94 noise = sig*rand(t, "normal");
98 <refsection role="see also">
99 <title>Vori aussi</title>
100 <simplelist type="inline">
102 <link linkend="rand">rand</link>
105 <link linkend="grand">grand</link>