matinf 4170/9170 - lecture 4 - 8/2-2017 filematinf 4170/9170 - lecture 4 - 8/2-2017 last time:...

14
MATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 B-splines Today: chapter 2.2 and onwards Properties of B-splines Knot vectors Spline spaces Spline curves Matrix representation Evaluation

Upload: others

Post on 30-Oct-2019

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

MATINF 4170/9170 - Lecture 4 - 8/2-2017

Last time: section 1.6 and 2.1• B-splines

Today: chapter 2.2 and onwards • Properties of B-splines• Knot vectors• Spline spaces• Spline curves• Matrix representation• Evaluation

Page 2: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

B-splines, basic properties

Page 3: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Knotvectors

Page 4: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Spline functions

p=1 and t=(0,0,1,2,4,7,8,9,9)

Page 5: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Quadratic spline functionsExample: Variation diminishing spline approximation (Ex. 2.9)

(t*3,f(t*3))

s(x)

Page 6: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

B-spline control polygons

Page 7: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Spline function properties

Page 8: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Spline curves

Page 9: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Matrix representations of B-splines (2.3)Linear B-splines on an interval

Recall the recursion formula

Quadratic B-splines on an interval

Page 10: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Cubic B-splines on an interval

Recall the recursion formula

Page 11: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

General matrix formulation on an interval

Page 12: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Example

Page 13: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Evaluation of splines - Alg 2.20

Page 14: MATINF 4170/9170 - Lecture 4 - 8/2-2017 fileMATINF 4170/9170 - Lecture 4 - 8/2-2017 Last time: section 1.6 and 2.1 • B-splines Today: chapter 2.2 and onwards • Properties of B-splines

Implementation of alg 2.20

This is Algorithm 1.3

You will do this in Oblig 2