【问题标题】:Is there a function for computing the N-dimensional convex hull in Julia?Julia中有计算N维凸包的函数吗?
【发布时间】:2016-10-06 23:07:09
【问题描述】:

这样的功能还存在吗?如果有,在哪里可以找到?

基本上,我正在寻找 Matlab 的 convhulln() 函数的等价物。它将一个数据集(具有 N 维)作为输入,并返回属于该数据空间的凸包的数据点。

【问题讨论】:

    标签: julia convex-hull convex n-dimensional


    【解决方案1】:

    参见CHull.jl,它对scipy.spatial.ConvexHull 有一个包装器(N 维)

    using CHull
    
    p = rand(10,2)
    ch = chull(p)
    ch.points         # original points
    ch.vertices       # indices to line segments forming the convex hull
    show(ch)
    

    【讨论】:

    • 谢谢先生!你为我节省了很多时间
    猜你喜欢
    • 1970-01-01
    • 2018-05-07
    • 2013-12-29
    • 2016-06-10
    • 1970-01-01
    • 2018-10-10
    • 1970-01-01
    • 1970-01-01
    • 2017-04-21
    相关资源
    最近更新 更多