Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Data.Function.Tabulated
Description
Deprecated: This module will be replaced in a future release.
Data tables that behave as functions.
- class DomainFunction1 t where
- class DomainFunction1 t => TabulatedFunction1 t where
- data TabulatedFunctionImpl1 a
- class DomainFunction2 t where
- class DomainFunction2 t => TabulatedFunction2 t where
- data TabulatedFunctionImpl2 a b
- class DomainFunction3 t where
- class DomainFunction3 t => TabulatedFunction3 t where
- data TabulatedFunctionImpl3 a b c
One dimension
class DomainFunction1 t where Source #
Class for functions of one variable, supported on a particular domain.
Instances
class DomainFunction1 t => TabulatedFunction1 t where Source #
Class for tabulated functions of one variable.
Minimal complete definition
Methods
fromTable1 :: Ord a => [(a, Double)] -> t a Source #
Make a tabulated function from a table.
fromUnTable1 :: Ord a => (b -> (a, Double)) -> [b] -> t a Source #
Make a tabulated function for a generating function and a list of values.
Instances
data TabulatedFunctionImpl1 a Source #
Implementation of a tabulated function of one variable.
Two dimensions
class DomainFunction2 t where Source #
Class for functions of two variables, supported on a particular domain.
Methods
domain2 :: (Ord a, Ord b) => t a b -> ([a], [b]) Source #
The domain of the function.
evaluate2 :: (Ord a, Ord b) => t a b -> a -> b -> Maybe Double Source #
Instances
class DomainFunction2 t => TabulatedFunction2 t where Source #
Class for tabulated functions of two variables.
Minimal complete definition
Methods
fromTable2 :: (Ord a, Ord b) => [((a, b), Double)] -> t a b Source #
Make a tabulated function from a table.
fromUnTable2 :: (Ord a, Ord b) => (c -> ((a, b), Double)) -> [c] -> t a b Source #
Instances
data TabulatedFunctionImpl2 a b Source #
Implementation of a tabulated function of two variables.
Instances
Three dimensions
class DomainFunction3 t where Source #
Class for functions of three variables,
Methods
domain3 :: (Ord a, Ord b, Ord c) => t a b c -> ([a], [b], [c]) Source #
The domain of the function.
evaluate3 :: (Ord a, Ord b, Ord c) => t a b c -> a -> b -> c -> Maybe Double Source #
Instances
class DomainFunction3 t => TabulatedFunction3 t where Source #
Class for tabulated functions of two variables.
Minimal complete definition
Methods
fromTable3 :: (Ord a, Ord b, Ord c) => [((a, b, c), Double)] -> t a b c Source #
Make a tabulated function from a table.
fromUnTable3 :: (Ord a, Ord b, Ord c) => (d -> ((a, b, c), Double)) -> [d] -> t a b c Source #
Instances
data TabulatedFunctionImpl3 a b c Source #
Implementation of a tabulated function of three variables.
Instances
TabulatedFunction3 TabulatedFunctionImpl3 Source # | |
DomainFunction3 TabulatedFunctionImpl3 Source # | |
(Show a, Show b, Show c) => Show (TabulatedFunctionImpl3 a b c) Source # | |