File:Lissage sinus bruite spline cubique.svg
Summary
| Description |
English: Noisy sine function smoothed by a cubic Hermite spline.
Français : Fonction sinus bruitée lissée par une spline cubique de Hermite. |
| Date | |
| Source | Own work |
| Author | Christophe Dang Ngoc Chan (Cdang) |
| Other versions | same data with moving averages smoothing: File:Lissage sinus bruite moyenne glissante.svg |
Scilab source
// ***** Génération des données *****
m = 200; // nombre de points mesurés
bruit = 0.2; // amplitude du bruit
x = linspace(0, 2*%pi, m);
y = sin(x) + 0.2*rand(x, "normal"); // valeurs bruitées
// ***** Détermination de la spline *****
n = 6; // nombre de points de contrôle de la spline
xs = linspace(x(1), x($), n); // abscisse des points de contrôle
// répartition uniforme
[ys, d] = lsq_splin(x, y, xs); // détermination de la spline
// ***** Calcul des valeurs lissées de y *****
yliss = interp(x, xs, ys, d); // calcul des données lissées
// ***** Tracé *****
plot(x, y) // données originales
plot(x, yliss, "r") // données lissées
Licensing
I, the copyright holder of this work, hereby publish it under the following licenses:
| Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.
