aern2-fun-0.2.9.0: Generic operations for real functions
Copyright(c) Michal Konecny
LicenseBSD3
Maintainermikkonecny@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

AERN2.RealFun.Operations

Description

Classes for real number function operations

Synopsis

Documentation

class HasDomain f where Source #

Associated Types

type Domain f Source #

Methods

getDomain :: f -> Domain f Source #

Instances

Instances details
HasDomain f => HasDomain (FnAndDescr f) Source # 
Instance details

Defined in AERN2.RealFun.Tests

Associated Types

type Domain (FnAndDescr f) Source #

data SameDomFnPair f Source #

Constructors

SameDomFnPair (f, f) 

Instances

Instances details
Show f => Show (SameDomFnPair f) Source # 
Instance details

Defined in AERN2.RealFun.Operations

(ArbitraryWithDom f, Arbitrary f) => Arbitrary (SameDomFnPair f) Source # 
Instance details

Defined in AERN2.RealFun.Operations

class HasDomain f => ArbitraryWithDom f where Source #

class CanApply f x where Source #

Associated Types

type ApplyType f x Source #

Methods

apply Source #

Arguments

:: f
f
-> x
x
-> ApplyType f x 

compute f(x)

class CanApplyApprox f x where Source #

Give an unsafe etimate of the function's range which is fast to compute. Intended to be used in optimisation heuristics.

Associated Types

type ApplyApproxType f x Source #

Methods

applyApprox Source #

Arguments

:: f
f
-> x
x
-> ApplyApproxType f x 

compute a cheap and unsafe approximation of f(x)

sampledRange :: (CanApply f t, ApplyType f t ~ t, CanMinMaxSameType t, ConvertibleExactly Dyadic t, Show t) => DyadicInterval -> Integer -> f -> Interval t t Source #

Evaluate a function on a regular grid of the given size and return the largerst and smallest values found. Useful for making instances of class CanApplyApprox.

specEvalConstFn :: _ => T c -> T f -> T x -> Spec Source #

class HasVars f where Source #

Associated Types

type Var f Source #

Methods

varFn Source #

Arguments

:: FnConstructorInfo f

eg domain and/or accuracy guide

-> Var f
x
-> f 

the function x, ie the function that project the domain to the given variable x

specEvalUnaryVarFn :: _ => T f -> T x -> Spec Source #

class CanMaximiseOverDom f d where Source #

Associated Types

type MaximumOverDomType f d Source #

Methods

maximumOverDom :: f -> d -> MaximumOverDomType f d Source #

class CanMinimiseOverDom f d where Source #

Associated Types

type MinimumOverDomType f d Source #

Methods

minimumOverDom :: f -> d -> MinimumOverDomType f d Source #

class CanIntegrateOverDom f bounds where Source #

Associated Types

type IntegralOverDomType f bounds Source #

Methods

integrateOverDom :: f -> bounds -> IntegralOverDomType f bounds Source #