<< Overview Intprbs intprb_getfcn >>

Intprbs >> Intprbs > intprb_getexpect

intprb_getexpect

Returns the expectation of the problem.

Calling Sequence

e = intprb_getexpect (n,p,nprob)

Parameters

n:

a 1-by-1 matrix of doubles, integer value, the number of variables, i.e. the size of x

p:

a matrix of doubles, the parameters of the problem

nprob:

a 1-by-1 matrix of doubles, integer value, the problem number

e:

a 1-by-1 matrix of doubles, the expectation of the problem

Description

It is an interface function which calls the function getfunc (which selects appropriate test function based on nprob). Currently, all functions are designed to have a zero integral.

See the "Integration Problems User's Manual" available in the doc directory of this toolbox for a detailed description of this function.

Examples

// Get expectation for the Sum test case
nprob = 1
[n,p] = intprb_getsetup(nprob)
e=intprb_getexpect(n,p,nprob)

Authors

Bibliography

"Integration Problems User's Manual", Michael Baudin, 2010


Report an issue
<< Overview Intprbs intprb_getfcn >>