Math 2.0

Numerical analysis Definition

de Casteljau's algorithm

Builds on Bézier curveConvex combination

Definition

Let n≥1n \ge 1, let P0,…,PnP_0, \dots, P_n be points of ℝd\R^d (or real numbers), and let t∈ℝt \in \R. De Casteljau's algorithm computes points Pi(j)P_i^{(j)} for 0≤j≤n0 \le j \le n and 0≤i≤n−j0 \le i \le n - j by

  1. Pi(0)=PiP_i^{(0)} = P_i for i=0,…,ni = 0, \dots, n;
  2. Pi(j)=(1−t) Pi(j−1)+t Pi+1(j−1)P_i^{(j)} = (1 - t)\, P_i^{(j-1)} + t\, P_{i+1}^{(j-1)} for j=1,…,nj = 1, \dots, n and i=0,…,n−ji = 0, \dots, n - j;

and returns P0(n)P_0^{(n)}.

Remarks

The output equals B(t)=∑k=0n(nk)(1−t)n−ktkPkB(t) = \sum_{k=0}^{n} \binom{n}{k} (1-t)^{n-k} t^k P_k, the point of the Bézier curve with these control points; by induction on jj, Pi(j)=∑k=0j(jk)(1−t)j−ktkPi+kP_i^{(j)} = \sum_{k=0}^{j} \binom{j}{k} (1-t)^{j-k} t^k P_{i+k}. For t∈[0,1]t \in [0, 1] each step is a convex combination. Example: n=2n = 2, P0=(0,0)P_0 = (0, 0), P1=(1,2)P_1 = (1, 2), P2=(2,0)P_2 = (2, 0), t=1/2t = 1/2: then P0(1)=(1/2,1)P_0^{(1)} = (1/2, 1), P1(1)=(3/2,1)P_1^{(1)} = (3/2, 1) and P0(2)=(1,1)P_0^{(2)} = (1, 1), which is B(1/2)B(1/2). Non-example: replacing step 2 by the average 12(Pi(j−1)+Pi+1(j−1))\tfrac{1}{2}(P_i^{(j-1)} + P_{i+1}^{(j-1)}) for all tt returns B(1/2)B(1/2) no matter what tt is, so it does not compute B(t)B(t) for t≠1/2t \ne 1/2. The points P0(0),P0(1),…,P0(n)P_0^{(0)}, P_0^{(1)}, \dots, P_0^{(n)} and P0(n),P1(n−1),…,Pn(0)P_0^{(n)}, P_1^{(n-1)}, \dots, P_n^{(0)} are the control points of the curve restricted to [0,t][0, t] and to [t,1][t, 1], reparametrized to [0,1][0, 1]. The algorithm costs O(n2)O(n^2) operations, more than Horner's scheme, but it is more stable.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Bézier curve concept
  2. Convex combination concept
  3. de Casteljau's algorithm definition

Further reading

  1. Web https://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm
About this page
TagDCH91F9YDK
URIm2://DCH91F9YDK
Kinddefinition
WritingW0 stub
MSC65D17, 68U07, 41A10
Definesde Casteljau's algorithm
UsesBézier curve, Convex combination

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.