当前位置:网站首页>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 equal
As 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 .
边栏推荐
- P3250 [hnoi2016] Network + [necpc2022] f.tree path tree section + segment tree maintenance heap
- 一文搞懂Go语言Context
- phpcms 提示信息頁面跳轉showmessage
- Phpcms prompt message page Jump showmessage
- Gut | 香港中文大学于君组揭示吸烟改变肠道菌群并促进结直肠癌(不要吸烟)
- 基于I2C协议的驱动开发
- Web security summary
- DS90UB949
- uniapp实现点击加载更多
- 抓包整理外篇fiddler———— 会话栏与过滤器[二]
猜你喜欢
Hongmeng fourth training
Slam mapping and autonomous navigation simulation based on turnlebot3
(数据库提权——Redis)Redis未授权访问漏洞总结
基于turtlebot3实现SLAM建图及自主导航仿真
Arctangent entropy: the latest SCI paper in July 2022
[OBS] configFile in ini format of OBS
PHP Basics
C language AES encryption and decryption
Kibana - installation and configuration of kibana
DS90UB949
随机推荐
按键切换:按F1-F12都需要按Fn
How to mix embedded MCU, arm and DSP?
AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
AOSP ~ NTP ( 网络时间协议 )
repo ~ 常用命令
量化计算调研
mysql使用update联表更新的方法
[OBS] configFile in ini format of OBS
R language uses the aggregate function to calculate the mean value (sum) of dataframe data grouping aggregation without setting na The result of RM calculation. If the group contains the missing value
银泰百货点燃城市“夜经济”
uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。
C语言 AES加解密
JGG专刊征稿:时空组学
Arctangent entropy: the latest SCI paper in July 2022
活动预告 | 直播行业“内卷”,以产品力拉动新的数据增长点
Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable
一些常用术语
How to become a senior digital IC Design Engineer (1-4) Verilog coding syntax: expression
CSRF
Abandon the Internet after 00: don't want to enter a big factory after graduation, but go to the most fashionable Web3