| Copyright | (c) Fabricio Olivetti de Franca 2020 | 
|---|---|
| License | GPL-3 | 
| Maintainer | fabricio.olivetti@gmail.com | 
| Stability | experimental | 
| Portability | POSIX | 
| Safe Haskell | None | 
IT.Shape
Contents
Description
Support functions to measure imposed shape constraints into the image of the function and its derivatives.
Synopsis
- type ImgFun = [Interval Double] -> Expr -> [Double] -> Interval Double
 - data Shape
- = Image (Double, Double)
 - | DiffImg Int (Double, Double)
 - | NonIncreasing Int
 - | NonDecreasing Int
 - | PartialNonIncreasing Int (Double, Double)
 - | PartialNonDecreasing Int (Double, Double)
 - | Inflection Int Int
 - | Convex Int Int
 - | Concave Int Int
 
 - type Domains = Maybe [(Double, Double)]
 - unconstrained :: Constraint
 - violationImg :: ImgFun -> [Interval Double] -> Interval Double -> Constraint
 - violationNonIncreasing :: Int -> [Interval Double] -> Constraint
 - violationNonDecreasing :: Int -> [Interval Double] -> Constraint
 - violationInflection :: Int -> Int -> [Interval Double] -> Constraint
 - violationConcave :: Int -> Int -> [Interval Double] -> Constraint
 - violationConvex :: Int -> Int -> [Interval Double] -> Constraint
 - constraintFrom :: [Constraint] -> Constraint
 - fromShapes :: [Shape] -> Domains -> Constraint
 
Documentation
Constructors
| Image (Double, Double) | |
| DiffImg Int (Double, Double) | |
| NonIncreasing Int | |
| NonDecreasing Int | |
| PartialNonIncreasing Int (Double, Double) | |
| PartialNonDecreasing Int (Double, Double) | |
| Inflection Int Int | |
| Convex Int Int | |
| Concave Int Int | 
Instances
Constraint functions
violationImg :: ImgFun -> [Interval Double] -> Interval Double -> Constraint Source #
violationNonIncreasing :: Int -> [Interval Double] -> Constraint Source #
violationNonDecreasing :: Int -> [Interval Double] -> Constraint Source #
violationInflection :: Int -> Int -> [Interval Double] -> Constraint Source #
violationConcave :: Int -> Int -> [Interval Double] -> Constraint Source #
violationConvex :: Int -> Int -> [Interval Double] -> Constraint Source #
constraintFrom :: [Constraint] -> Constraint Source #
fromShapes :: [Shape] -> Domains -> Constraint Source #