File:Piecewise constant.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Piecewise_constant.png(249 × 257 pixels, file size: 1 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description Illustration of constant interpolation, more precisely en:Nearest neighbor interpolation on the same dataset as listed in Interpolation.
Date
Source self-made in Gnuplot
Author Berland

Gnuplot source code

[edit]
set terminal png font "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf" size 300,300 crop
set output "Piecewise_constant.png"
set key off
set xzeroaxis
set xtics axis 1,1
set ytics nomirror 1
set border 2
set yrange [-1.1:1.1]
plot 'pointssteps.txt' with fsteps linetype 3 linewidth 4, \
 'points.txt' with points linetype 1 pointtype 7 pointsize 1.5, \
     0 with lines -1 

Datafiles

[edit]
#pointssteps.txt
0 0
0.5 0
1.5 0.8415
2.5 0.9093
3.5 0.1411
4.5 -0.7568
5.5 -0.9589
6.0 -0.2794


#points.txt
0 0
1 0.8415
2 0.9093
3 0.1411
4 -0.7568
5 -0.9589
6 -0.2794


Licensing

[edit]
Public domain This work has been released into the public domain by its author, I, Berland. This applies worldwide.
In some countries this may not be legally possible; if so:
I, Berland grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

File history

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

Date/TimeThumbnailDimensionsUserComment
current15:39, 23 June 2007Thumbnail for version as of 15:39, 23 June 2007249 × 257 (1 KB)Berland (talk | contribs)== Summary == {{Information |Description=Illustration of constant interpolation, more precisely en:Nearest neighbor interpolation on the same dataset as listed in Interpolation. |Source=self-made in Gnuplot |Date
18:51, 22 June 2007Thumbnail for version as of 18:51, 22 June 2007249 × 257 (2 KB)Berland (talk | contribs){{Information |Description=Illustration of constant interpolation, more precisely en:Nearest neighbor interpolation on the same dataset as listed in Interpolation. |Source=self-made in Gnuplot |Date=22 June 2007

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: