【问题标题】:How do i use Qhull options for LinearNDInterpolator in Python?如何在 Python 中为 LinearNDInterpolator 使用 Qhull 选项?
【发布时间】:2020-03-30 15:56:26
【问题描述】:

我正在尝试计算插值:

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

【问题讨论】:

    标签: python scipy qhull


    【解决方案1】:

    LinearNDInterpolator 有关键字rescale,这可能会有所帮助。

    关于 Qhull 选项,您可以在实际执行三角测量时通过scipy.spatial.Delaunay 指定它们。然后,您可以将三角测量对象提供给LinearNDInterpolator

    【讨论】:

      猜你喜欢
      • 2020-07-20
      • 2019-01-02
      • 1970-01-01
      • 2013-12-29
      • 2013-09-05
      • 2021-02-13
      • 2011-09-15
      • 1970-01-01
      • 2017-02-21
      相关资源
      最近更新 更多