Skip to content
Sections
>> Trisquel >> Пакеты >> nabia >> perl >> libmath-convexhull-monotonechain-perl
etiona  ] [  nabia  ] [  aramo  ]
[ Источник: libmath-convexhull-monotonechain-perl  ]

Пакет: 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 Кб40 Кб [список файлов]
armhf 8,0 Кб31 Кб [список файлов]