请输入您要查询的字词:

 

单词 ApproximateNonlinearTransformationOfAffineCombination
释义

approximate non-linear transformation of affine combination


Considerapplying an arbitrary transformation fto an affine combination i=1nwixiof some points xi,with non-negative weights wi that sum to unity.Obviously, in general,

f(i=1nwixi)i=1nwif(xi).

However, sometimes it is desirable to compute the imagef(iwixi)as if f were a linear (or affine) transformation;the result is then hoped to be a good approximationto the true value.(See below for an application.)

Actually, it is possible to show that, provided that f is twicecontinuously differentiable, the approximation is good to first order,despite the absence of any derivatives of f in the formula.The domain and range of f may be any normed vector spacesPlanetmathPlanetmath.

First, we write:

f(iwixi)=f(iwi(xi-x1)+x1)
=f(x1)+iwif(x1)(xi-x1)+O(iwi(xi-x1)2).

If h=maxixi-x1,then iwi(xi-x1)i|wi|h=h,and so the error term in the Taylor expansioncan be simplified to O(h2).

Substituting another Taylor expansion

f(xi)-f(x1)=f(x1)(xi-x1)+O(h2),

into the first, we obtain:

f(iwixi)=f(x1)+iwi(f(xi)-f(x1)+O(h2))+O(h2)
=iwif(xi)+O(h2).

Furthermore, it is not hard to see,by accounting the error from the Taylor expansions more carefully,that we have the bound:

f(iwixi)-iwif(xi)Mh2,

where M is the maximum,as ξ ranges inside the convex hullMathworldPlanetmathformed by the points xi,of the quantity f′′(ξ)=supu0f′′(ξ)(u,u)u2.Finally, the point x1 over which we performed Taylor expansionscan be replaced by any other point xk,and so correspondingly h can be replaced by minkmaxixi-xk.

Application in computer graphics

The principle just derived is often applied in vector-based computer graphicswhen curved objects are drawn by cubic Bézier curves:

γ(t)=i=03wi(t)xi,wi(t)=(3i)(1-t)n-iti,

which are affine combinations of the control points xi.To compute and display a smooth transformation f of such curves,it may be too much work to compute f(γ(t)) repeatedlyfor many parameter values t.Provided γ is not too wavy,computing and displaying i=03wi(t)f(xi)is vastly more efficient, and may result in little orno visually perceptible difference.

As a concrete example, consider bending a straight line segmentinto a circle.Mathematically, we are mapping the intervalMathworldPlanetmath [0,2π]via t(rcost,rsint).If the interval is split into sub-segments,each considered as acubic Bézier curve with its interior control pointsboth set at the midpointMathworldPlanetmathPlanetmathPlanetmath of the line segmentMathworldPlanetmath,then a circle can be approximatedby transforming these control points.The following diagram shows the approximation for 24 segments (three Béziercurves per 45 arc).

Figure 1: Circle drawn using approximate mapping of line segment
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 4:49:29