Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> perl >> libmath-convexhull-monotonechain-perl
etiona  ] [  nabia  ] [  aramo  ]

软件包: libmath-convexhull-monotonechain-perl (0.1-1build5)

Perl module to calculate a convex hull using Andrew's monotone chain algorithm

Math::ConvexHull::MonotoneChain optionally exports a single function convex_hull which calculates the convex hull of the input points and returns it. Andrew's monotone chain convex hull algorithm constructs the convex hull of a set of 2-dimensional points in O(n*log(n)) time.

It does so by first sorting the points lexicographically (first by x-coordinate, and in case of a tie, by y-coordinate), and then constructing upper and lower hulls of the points in O(n) time. It should be somewhat faster than a plain Graham's scan (also O(n*log(n))) in practice since it avoids polar coordinates.

其他与 libmath-convexhull-monotonechain-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libc6 (>= 2.1.3) [i386]
    GNU C Library: Shared libraries
    同时作为一个虚包由这些包填实: libc6-udeb
    dep: libc6 (>= 2.2.5) [amd64]
  • dep: perl (>= 5.26.0-4)
    Larry Wall's Practical Extraction and Report Language
  • dep: perlapi-5.26.0
    本虚包由这些包填实: perl-base

下载 libmath-convexhull-monotonechain-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
amd64 8.3 kB36 kB [文件列表]
i386 8.5 kB35 kB [文件列表]