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

套件: libmath-convexhull-monotonechain-perl (0.1-1build7)

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.2.5) [amd64]
    GNU C Library: Shared libraries
    同時作為一個虛擬套件由這些套件提供: libc6-udeb
    dep: libc6 (>= 2.4) [armhf]
  • dep: perl (>= 5.30.0-7)
    Larry Wall's Practical Extraction and Report Language
  • dep: perlapi-5.30.0
    本虛擬套件由這些套件提供: perl-base

下載 libmath-convexhull-monotonechain-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
amd64 8.5 kB40 kB [文件列表]
armhf 8.0 kB31 kB [文件列表]