Spline Interpolation A Primer on the Basics by Don Allen.

Slides:



Advertisements
Similar presentations
Splines and Piecewise Interpolation
Advertisements

Interpolating curves.
Lecture Notes #11 Curves and Surfaces II
Numerical Methods.  Polynomial interpolation involves finding a polynomial of order n that passes through the n+1 points.  Several methods to obtain.
Interpolation A method of constructing a function that crosses through a discrete set of known data points. .
Chapter 7 Numerical Differentiation and Integration
CS 445/645 Fall 2001 Hermite and Bézier Splines. Specifying Curves Control Points –A set of points that influence the curve’s shape Knots –Control points.
MATH 685/ CSI 700/ OR 682 Lecture Notes
Selected from presentations by Jim Ramsay, McGill University, Hongliang Fei, and Brian Quanz Basis Basics.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
Dr. S.M. Malaek Assistant: M. Younesi
Computational Methods in Physics PHYS 3437
Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D.
Experimental Modeling
Splines II – Interpolating Curves
1Notes  Assignment 0 is due today!  To get better feel for splines, play with formulas in MATLAB!
Finding Zeros Given the Graph of a Polynomial Function Chapter 5.6.
1cs426-winter-2008 Notes  Ian Mitchell is running a MATLAB tutorial, Tuesday January 15, 5pm-7pm, DMP 110 We won’t be directly using MATLAB in this course,
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 23 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
Lecture 9 Interpolation and Splines. Lingo Interpolation – filling in gaps in data Find a function f(x) that 1) goes through all your data points 2) does.
Chapter 6 Numerical Interpolation
Solving Quadratic (and polynomial) Equations by Factoring.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Curves and Surfaces CSE3AGR - Paul Taylor Polynomials of Degree n Degree is equal to the highest exponent of a term. Higher exponents result in.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Curves.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
1 Interpolation. 2 What is Interpolation ? Given (x 0,y 0 ), (x 1,y 1 ), …… (x n,y n ), find the value of ‘y’ at a.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
1. Interpolating polynomials Polynomial of degree n,, is a linear combination of Definitions: (interval, continuous function, abscissas, and polynomial)
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
CS559: Computer Graphics Lecture 19: Curves Li Zhang Spring 2008.
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Computers in Civil Engineering 53:081 Spring 2003 Lecture #15 Spline Interpolation.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
Introduction to Numerical Analysis I MATH/CMPSC 455 Splines.
Solving Quadratic (and polynomial) Equations by Factoring.
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
Cubic Spline Interpolation. Cubic Splines attempt to solve the problem of the smoothness of a graph as well as reduce error. Polynomial interpolation.
 3.3 Hermite Interpolation Chapter 3 Interpolation and Polynomial Approximation -- Hermite Interpolation Find the osculating polynomial P(x) such that.
1 Spline Interpolation Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
MA4229 Lectures 15, 16 Week 13 Nov 1, Chapter 18 Interpolation by piecewise polynomials.
1 Spline Interpolation Method Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
Dan, Phoenix, Carl.  Several ways you can model  Polynomial functions, linear functions, splines.
CS552: Computer Graphics Lecture 19: Bezier Curves.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
Curve-Fitting Spline Interpolation
Interpolation.
Visualizing the Error of Approximation of Interpolating Polynomials
Interpolation Methods
Chapter 15 Curve Fitting : Splines
Spline Interpolation Method
Spline Interpolation Method
Spline Interpolation Method
MATH 2140 Numerical Methods
Spline Interpolation Class XVII.
Numerical Analysis Lecture 23.
Splines and Piecewise Interpolation
Interpolation Methods
Why Splines ?
MATH 174: Numerical Analysis I
5.3 Higher-Order Taylor Methods
Splines There are cases where polynomial interpolation is bad
Interpolation Theory Section 1
Numerical Analysis Lecture 24.
Presentation transcript:

Spline Interpolation A Primer on the Basics by Don Allen

What are Splines? Splines interpolate data. Lower degree curves are used. Thus fewer points must be used. Consequently, we obtain a piecewise curve, valid only over a specific interval. Splines allow matching conditions – not unlike Hermite interpolation – but different

Linear Spline

The Linear Spline

Piecewise Polynomials

Linear Splines

Quadratic Spline

Cubic Spline To fit cubics to groups of four points. Rarely done

Cubic Spline To fit cubics to successive pairs of points, with matching conditions.

How it looks

Splines vs. Polynomials Remember the function → This function interpolated poorly at equally spaced points. Let’s compare with how well the natural cubic spline performs.

Function and Interpolant 12 equally spaced points Function in Red Interpolant in blue

Function and Cubic Spline 12 equally spaced points; Function in Red Spline in blue

Function, Interpolant, Cubic Spline 12 equally spaced points; Function in Green Spline in Red Interpolant in Blue

Cubic Spline – the equations

Cubic Spines Two types: both involve endpoint conditions – Natural S’’(endpoints) = 0 – Clamped S’(endpoints) = f’(endpoints) The error in interpolating a function with a clamped cubic spline depends on the fourth derivative.

Cubic Spline – derivation

Cubic Splines There are natural and clamped types They are very accurate in practice. They avoid most of the pitfalls of general polynomial interpolation. It is remarkably easy to program for the coefficients. The error depends on the second derivative. Full details are in the text and lecture notes.

Another Nasty Example