如何避免Delaunay.find_simplex函数返回1

2024-06-16 12:08:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一组500个7D点阵列。 当我运行以下代码时:

from scipy.spatial import Delaunay
delau = Delaunay(ip)
Delaunay.find_simplex(delau,ip)

Delaunay.find_simplex只为500个数据点中的一个返回-1。我知道该点位于三角剖分之外,因此得到值-1。 如何在不改变阵列尺寸的情况下将该点包含在三角剖分中


Tags: 数据代码fromimportip尺寸情况scipy