- 注册时间
- 2009-2-12
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 22697
- 在线时间
- 小时
|
发表于 2019-5-20 17:35:01
|
显示全部楼层
100个四维点,Mathematica也可以
- pts = RandomReal[1, {100, 4}];
- ans = BoundingRegion[pts, "MinBall"]
复制代码
除此之外,bounding的图形除了最小的球,还可以是其他很多种类型,这个MATLAB有么, :
Possible form specifications in 1D:
"MinInterval" min length interval
Possible form specifications in 2D:
"MinRectangle" min area axis-aligned rectangle
"MinOrientedRectangle" min area oriented rectangle
"MinConvexPolygon" min area convex polygon
"MinDisk" min area disk
"FastOrientedRectangle" fast bounding oriented rectangle
"FastDisk" fast bounding disk
"FastEllipse" fast bounding ellipse
"FastStadium" fast bounding stadium
Possible form specifications in 3D:
"MinCuboid" min volume axis-aligned cuboid
"MinOrientedCuboid" min volume oriented cuboid
"MinConvexPolyhedron" min volume convex polyhedron
"MinBall" min volume ball
"FastOrientedCuboid" fast oriented cuboid
"FastBall" fast ball
"FastEllipsoid" fast ellipsoid
"FastCylinder" fast cylinder
"FastCapsule" fast capsule
Possible form specifications in nD:
"MinCuboid" min measure axis-aligned cuboid
"MinBall" min measure ball
"FastOrientedCuboid" fast oriented cuboid
"FastBall" fast ball
"FastEllipsoid" fast ellipsoid |
|