MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4...

21
MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 Weekly problem 3.2 Knot insertion Blossoms Last time: Chapter 3 and 4 Recap: Differentiation and smoothness B-splines as spline-basis Knot insertion

Transcript of MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4...

Page 1: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

MATINF 4170/9170 - Lecture 8 - 8/3-2017

Today: Chapter 4• Weekly problem 3.2• Knot insertion• Blossoms

Last time: Chapter 3 and 4 • Recap: Differentiation and smoothness• B-splines as spline-basis• Knot insertion

Page 2: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Recap

Page 3: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Proof: Insert more knots!

Problem of the week

Page 4: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

General formulas for knot insertion (4.2.2)Recall, for

Page 5: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and
Page 6: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and
Page 7: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and
Page 8: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Computing discrete B-splines

Proof:

Page 9: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and
Page 10: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Reccurence for discrete B-splines

B-splines

Discrete B-splines

Page 11: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

The Oslo-algorithms

Page 12: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

The Oslo-algorithms

Page 13: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Knot insertion example: p=2

Page 14: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and
Page 15: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

In particular:

The B-spline coefficients are functions of the knots!

Observation

Page 16: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Affine functions in one variable

Affine functions in two variables

Characterized by

Blossoms (4.3)

Affine functions in three variables

In general 2p terms in affine functions of p variables

Characterized by

Page 17: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Symmetric affine functions

Multi-affine functions

In general p+1 terms

Page 18: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

The Blossom

Page 19: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Blossoms of monomials

Example: g(x)=x2

(x1x2 + x1x3 + x2x3)/3

) = x1x2

Example: g(x)=x

In general:

Page 20: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Proof:

(4.24) Show that the RHS is the blossom

(4.23) Show that the RHS is the blossom for k=p. Differentiate p-k times wrt y

Page 21: MATINF 4170/9170 - Lecture 8 - 8/3-2017 · MATINF 4170/9170 - Lecture 8 - 8/3-2017 Today: Chapter 4 • Weekly problem 3.2 • Knot insertion • Blossoms Last time: Chapter 3 and

Blossoms of B-splines

Proof:1. Each element of Rk(xi) is affine in xi

2. Symmetry by (3.7)3. Diagonal property holds