File:Interpolation example spline.svg

From Wikimedia Commons, the free media repository

Jump to: navigation, search

Interpolation_example_spline.svg(SVG file, nominally 600 × 480 pixels, file size: 13 KB)

[edit] Summary

Description

IIllustration of spline interpolation of a data set. The same data set is used for other interpolation algorithms in the Interpolation.

Date

26 June 2007(2007-06-26)

Source

self-made in

Author

Berland

Permission
(Reusing this image)

See below.

Based on png-version by User:Jitse Niesen (with gnuplot source code), and on svg-version by User:Cronholm144.

[edit] Gnuplot source code

set terminal svg fname "Vera" fsize 25
set output "Interpolation_example_spline.svg"
set key off
set xzeroaxis
set xtics axis 1,1
set ytics nomirror 1
set samples 300
set border 2
f(x) = (x >= 0 && x < 1) ? -0.1522*x**3 + 0.9937*x : \
       (x >= 1 && x < 2) ? -0.01258*x**3 - 0.4189*x**2 + 1.4126*x - 0.1396 : \
       (x >= 2 && x < 3) ? 0.1403*x**3 - 1.3359*x**2 + 3.2467*x - 1.3623 : \
       (x >= 3 && x < 4) ? 0.1579*x**3 - 1.4945*x**2 + 3.7225*x - 1.8381 : \
       (x >= 4 && x < 5) ? 0.05375*x**3 -0.2450*x**2 - 1.2756*x + 4.8259 : \
                           -0.1871*x**3 + 3.3673*x**2 - 19.3370*x + 34.9282 
set yrange [-1.1:1.1]
plot f(x) with lines linetype 3 linewidth 4, \
     "-" with points linetype 1 pointtype 7 pointsize 0.7,\
	 0 with lines linetype -1 linewidth 1
0 0
1 0.8415
2 0.9093
3 0.1411
4 -0.7568
5 -0.9589
6 -0.2794
e

Please use at least version 4.2 of Gnuplot for smooth lines in SVG.

[edit] Licensing

Public domain I, Berland, the copyright holder of this work, hereby releases it into the public domain. This applies worldwide.

In case this is not legally possible:
I, Berland grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Azərbaycan | Беларуская (тарашкевіца) | Български | Català | Cebuano | Soranî / کوردی | Česky | Cymraeg | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | Estremeñu | فارسی | Suomi | Français | Galego | עברית | हिन्दी | Hrvatski | Magyar | Հայերեն | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Ripoarisch | Kurdî / كوردی | Latina | Lietuvių | Latviešu | 文言 | Македонски | Bahasa Melayu | Plattdüütsch | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Vèneto | Tiếng Việt | Walon | 吴语 | 中文 | ‪中文(简体)‬ | ‪中文(繁體)‬ | 粵語 | +/−

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:02, 25 June 2007Thumbnail for version as of 21:02, 25 June 2007600×480 (13 KB)Berland (talk | contribs) ({{Information |Description=Illustration of spline interpolation on a data set, compared with other interpolation methods in the article Interpolation. Based on png-version by User:Jitse Niesen and svg)
15:30, 23 June 2007Thumbnail for version as of 15:30, 23 June 2007429×425 (14 KB)Cronholm144 (talk | contribs) ({{Information |Description=Interpolation example spline |Source=self-made |Date=06-23-07 |Author= Cronholm144 }} )

There are no pages that link to this file.

Global file usage

The following other wikis use this file:

In Wikipedia