Jump to content

File:Radial Basis Function Interpolation.svg

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

Original file (SVG file, nominally 720 × 496 pixels, file size: 82 KB)

Summary

Description
English: Interpolation of on the interval [0,1] through 15 equally-spaced sample points using (where ε=3).
Date
Source Own work
Author Glosser.ca
SVG development
InfoField
 
The SVG code is valid.
 
This diagram was created with Mathematica.
This file supersedes the file Radial basis function interpolation, f(x)=exp(x*cos(3pix))-1, gaussian.png. It is recommended to use this file rather than the other one.

Bahasa Indonesia  Deutsch  English  español  français  italiano  magyar  Nederlands  polski  svenska  македонски  മലയാളം  português do Brasil  prūsiskan  русский  slovenščina  日本語  中文(简体)  中文(繁體)  +/−

minor quality
Source code
InfoField

Mathematica code

rbf[\[Epsilon]_, x_] := Exp[-(\[Epsilon] x)^2];
g[x_] := Exp[x Cos[3 \[Pi] x]];

xs = Range[0, 14]/14;
ys = g[xs];

weights[\[Epsilon]_?InexactNumberQ] := LeastSquares[Outer[rbf[\[Epsilon], Abs[#1 - #2]] &, xs, xs], ys];
approx[\[Epsilon]_?InexactNumberQ] := weights[\[Epsilon]].rbf[\[Epsilon], x - xs];
error[\[Epsilon]_?InexactNumberQ] := NIntegrate[(g[x] - approx[\[Epsilon]])^2, {x, 0, 1}];

Plot[{g[x], approx[3]}, {x, 0, 1}, Epilog -> {PointSize[Medium], Point[{#, g[#]}] & /@ xs}]

See also

Radial Basis Function Interpolation Error.svg

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.

Captions

Interpolation of f(x)=exp(x*cos(3pix))-1 using Gaussian radial basis functions

Items portrayed in this file

depicts

No value exists for this property

13 October 2020

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current03:52, 14 October 2020Thumbnail for version as of 03:52, 14 October 2020720 × 496 (82 KB)RayhemNew version incorrect
03:51, 14 October 2020Thumbnail for version as of 03:51, 14 October 2020720 × 496 (82 KB)RayhemThicken frame
03:45, 14 October 2020Thumbnail for version as of 03:45, 14 October 2020720 × 496 (82 KB)RayhemUploaded own work with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata