-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
83 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
hgeometry/src/HGeometry/LowerEnvelope.hs → ...etry/src/HGeometry/Plane/LowerEnvelope.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
-------------------------------------------------------------------------------- | ||
-- | | ||
-- Module : HGeometry.LowerEnvelope | ||
-- Module : HGeometry.Plane.LowerEnvelope | ||
-- Copyright : (C) Frank Staals | ||
-- License : see the LICENSE file | ||
-- Maintainer : Frank Staals | ||
-- | ||
-- Computing the lower envelope of a set of planes | ||
-- | ||
-------------------------------------------------------------------------------- | ||
module HGeometry.LowerEnvelope | ||
( module HGeometry.LowerEnvelope.Naive | ||
, module HGeometry.LowerEnvelope.Type | ||
-- , module HGeometry.LowerEnvelope.Naive | ||
module HGeometry.Plane.LowerEnvelope | ||
( module HGeometry.Plane.LowerEnvelope.Naive | ||
, module HGeometry.Plane.LowerEnvelope.Type | ||
-- , module HGeometry.Plane.LowerEnvelope.Naive | ||
) where | ||
|
||
import HGeometry.LowerEnvelope.Naive | ||
import HGeometry.LowerEnvelope.Type | ||
import HGeometry.Plane.LowerEnvelope.Naive | ||
import HGeometry.Plane.LowerEnvelope.Type | ||
|
||
|
||
-------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
hgeometry/src/HGeometry/Plane/LowerEnvelope/EpsApproximation.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module HGeometry.LowerEnvelope.EpsApproximation | ||
( | ||
|
||
) where | ||
|
||
import Control.Monad.State.Class | ||
import HGeometry.HyperPlane.Class | ||
import HGeometry.HyperPlane.NonVertical | ||
import System.Random.Stateful | ||
import Witherable | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
-- | Given a value r, and a set of planes H, we construct a C/r-approximation A of H w.r.t | ||
-- the shallow downward ranges. | ||
epsApproximation :: ( Plane_ plane r | ||
, Ord r, Fractional r, Foldable f, Functor f, Ord plane | ||
) | ||
=> Int -- ^ the parameter r | ||
-> f plane -> f plane | ||
epsApproximation = undefined | ||
|
||
-- | Given a value r, and a set of planes H, we construct a C/r-approximation A of H w.r.t | ||
-- the shallow downward ranges. | ||
epsApproximation' :: ( Plane_ plane r | ||
, Ord r, Fractional r, Foldable f, Functor f, Ord plane | ||
, RandomGen gen, MonadState gen m | ||
, Show plane, Show r | ||
) | ||
=> Int -- ^ the parameter r | ||
-> f plane -> m (f plane) | ||
epsApproximation' r hs = undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...metry/src/HGeometry/LowerEnvelope/Type.hs → ...src/HGeometry/Plane/LowerEnvelope/Type.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters