我试图用以下方法计算一个插值:
import scipy.interpolate as si
import scipy
f = si.LinearNDInterpolator(Q, h)它给了我以下错误
QhullError: qhull precision warning:
The initial hull is narrow (cosine of min. angle is 1.0000000000000000).
Is the input lower dimensional (e.g., on a plane in 3-d)? Qhull may
produce a wide facet. Options 'QbB' (scale to unit box) or 'Qbb' (scale
last coordinate) may remove this warning. Use 'Pp' to skip this warning.我的问题是:如何将选项更改为QbB
发布于 2019-12-06 06:36:47
LinearNDInterpolator有关键字rescale,这可能会有所帮助。
关于Qhull选项,您可以通过scipy.spatial.Delaunay在实际执行三角剖分时指定它们。然后,您可以向LinearNDInterpolator提供三角剖分对象。
https://stackoverflow.com/questions/59199878
复制相似问题