Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
diameter :: (Ord r, Floating r, Arity d) => [Point d r :+ p] -> r Source #
Computes the Euclidean diameter by naively trying all pairs.
running time: \(O(n^2)\)