pcubature-0.2.0.0: Integration over convex polytopes
Copyright(c) Stéphane Laurent 2023-2024
LicenseGPL-3
Maintainerlaurent_step@outlook.fr
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numeric.Integration.PolyhedralCubature

Description

Evaluation of integrals over a convex polytope. See README for examples.

Synopsis

Documentation

data Result #

Constructors

Result 

Instances

Instances details
Show Result 
Instance details

Defined in Numeric.Integration.SimplexCubature

data Results #

Constructors

Results 

Instances

Instances details
Show Results 
Instance details

Defined in Numeric.Integration.SimplexCubature

data Constraint a #

Instances

Instances details
Show a => Show (Constraint a) 
Instance details

Defined in Geometry.VertexEnum.Constraint

integrateOnPolytopeN Source #

Arguments

:: (VectorD -> VectorD)

integrand

-> [[Double]]

vertices of the polytope

-> Int

number of components of the integrand

-> Int

maximum number of evaluations

-> Double

desired absolute error

-> Double

desired relative error

-> Int

integration rule: 1, 2, 3 or 4

-> IO Results

values, error estimate, evaluations, success

Integral of a multivariate function over a convex polytope given by its vertices.

integrateOnPolytope Source #

Arguments

:: (VectorD -> Double)

integrand

-> [[Double]]

vertices of the polytope

-> Int

maximum number of evaluations

-> Double

desired absolute error

-> Double

desired relative error

-> Int

integration rule: 1, 2, 3 or 4

-> IO Result

values, error estimate, evaluations, success

Integral of a real-valued function over a convex polytope given by its vertices.

integrateOnPolytopeN' Source #

Arguments

:: Real a 
=> (VectorD -> VectorD)

integrand

-> [Constraint a]

linear inequalities defining the polytope

-> Int

number of components of the integrand

-> Int

maximum number of evaluations

-> Double

desired absolute error

-> Double

desired relative error

-> Int

integration rule: 1, 2, 3 or 4

-> IO Results

values, error estimate, evaluations, success

Integral of a multivariate function over a convex polytope given by linear inequalities.

integrateOnPolytope' Source #

Arguments

:: Real a 
=> (VectorD -> Double)

integrand

-> [Constraint a]

linear inequalities defining the polytope

-> Int

maximum number of evaluations

-> Double

desired absolute error

-> Double

desired relative error

-> Int

integration rule: 1, 2, 3 or 4

-> IO Result

values, error estimate, evaluations, success

Integral of a scalar-valued function over a convex polytope given by linear inequalities.

integratePolynomialOnPolytope Source #

Arguments

:: (RealFrac a, C a) 
=> Spray a

polynomial to be integrated

-> [[a]]

vertices of the polytope to integrate over

-> IO a 

Integral of a polynomial over a convex polytope given by its vertices.

integratePolynomialOnPolytope' Source #

Arguments

:: Spray Double

polynomial to be integrated

-> [Constraint Double]

linear inequalities defining the polytope

-> IO Double 

Integral of a polynomial over a convex polytope given by linear inequalities.