Jump to content

File:Piecewise constant.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

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

Summary

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

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

#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

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

22 June 2007

image/png

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== 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{{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

The following page uses this file: