当前位置:网站首页>Extrapolated scatter data
Extrapolated scatter data
2022-07-03 11:40:00 【jk_ one hundred and one】
Catalog
Factors affecting the accuracy of extrapolation
Compare the extrapolation of coarse sampling and fine sampling scatter data
Factors affecting the accuracy of extrapolation
scatteredInterpolant It provides the function of finding approximate solutions to points outside the convex hull .'linear' The extrapolation method is based on the least square approximation of the gradient at the convex hull boundary . The value returned for the query point outside the convex hull is based on the value at the boundary and the gradient . The quality of the solution depends on the way the data is sampled . If it is rough data sampling , The quality of extrapolation is poor .
Besides , Triangulation near the convex hull boundary may have strip triangles . These triangles will affect the extrapolation results , It will affect the interpolation results . The extrapolation results should be visually checked with knowledge of the external behavior of the domain .
Compare the extrapolation of coarse sampling and fine sampling scatter data
This example shows how to insert two different samples of the same parabolic function . This example shows that a better distribution of sampling points can produce better extrapolation results .
around 10 Concentric circles are created with a spacing of 10 Radial distribution point of degree . Use bsxfun Calculate the coordinate x=cosθ and y=sinθ.
theta = 0:10:350;
c = cosd(theta);
s = sind(theta);
r = 1:10;
x1 = bsxfun(@times,r.',c);
y1 = bsxfun(@times,r.',s);
figure
plot(x1,y1,'*b')
axis equalAs shown in the figure :

Create a second set of points with a coarser distribution . Use rand Function in range [-10, 10] Create random samples in .
rng default;
x2 = -10 + 20*rand([25 1]);
y2 = -10 + 20*rand([25 1]);
figure
plot(x2,y2,'*')As shown in the figure :

Parabola function at two point sets v(x,y) sampling .
v1 = x1.^2 + y1.^2;
v2 = x2.^2 + y2.^2;in the light of v(x,y) For each sample created scatteredInterpolant.
F1 = scatteredInterpolant(x1(:),y1(:),v1(:));
F2 = scatteredInterpolant(x2(:),y2(:),v2(:));Create a grid of query points that will extend outside each domain .
[xq,yq] = ndgrid(-20:20);Calculation F1 And draw the results .
figure
vq1 = F1(xq,yq);
surf(xq,yq,vq1)As shown in the figure :

Calculation F2 And draw the results .
figure
vq2 = F2(xq,yq);
surf(xq,yq,vq2)
As shown in the figure :

Due to v2 The points in are roughly sampled ,F2 The extrapolation quality of is poor .
3D data extrapolation
This example shows how to use scatteredInterpolant Extrapolate the well sampled 3D mesh dataset . The query point is located on a flat grid completely outside the domain .
Create a 10×10×10 grid . The points in each dimension are in the range [-10, 10] in .
[x,y,z] = ndgrid(-10:10);The function at the sampling point v(x,y,z) sampling .
v = x.^2 + y.^2 + z.^2;establish scatteredInterpolant, And specify linear interpolation and extrapolation .
F = scatteredInterpolant(x(:),y(:),z(:),v(:),'linear','linear');Calculation x-y Grid midspan [-20,20] Range and elevation is z =15 Interpolation of time .
[xq,yq,zq] = ndgrid(-20:20,-20:20,15);
vq = F(xq,yq,zq);
figure
surf(xq,yq,vq)As shown in the figure :

Because the function is well sampled , Extrapolation returns better results .
边栏推荐
- 836. 合并集合(DAY 63)并查集
- Kibana~Kibana的安装和配置
- asyncio 警告 DeprecationWarning: There is no current event loop
- DS90UB949
- ASP.NET-酒店管理系統
- Excel快速跨表复制粘贴
- How to: configure ClickOnce trust prompt behavior
- How to get started embedded future development direction of embedded
- Program process management tool -go Supervisor
- C language utf8toutf16 (UTF-8 characters are converted to hexadecimal encoding)
猜你喜欢

Xml的(DTD,xml解析,xml建模)

The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.

Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation

Analysis of EPS electric steering system

(2) Base

Modular programming of single chip microcomputer

金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~

Numpy np.max和np.maximum实现relu函数

After watching the video, AI model learned to play my world: cutting trees, making boxes, making stone picks, everything is good

多维度监控:智能监控的数据基础
随机推荐
Multi dimensional monitoring: the data base of intelligent monitoring
Web security summary
The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities
Excel表格转到Word中,表格不超边缘纸张范围
VPP three-layer network interconnection configuration
phpcms 提示信息页面跳转showmessage
Uniapp implementation Click to load more
[VTK] vtkWindowedSincPolyDataFilter 源码注释解读
R language uses grid of gridextra package The array function combines multiple visual images of the lattice package horizontally, and the ncol parameter defines the number of columns of the combined g
asyncio 警告 DeprecationWarning: There is no current event loop
[VTK] vtkPolydataToImageStencil 源码解读
2022 东北四省赛 VP记录/补题
AOSP ~ NTP ( 网络时间协议 )
多维度监控:智能监控的数据基础
Phpcms prompt message page Jump to showmessage
How PHP solves the problem of high concurrency
2022年中南大学夏令营面试经验
并发编程-单例
uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。
MySQL union和union all区别