<< intprb_getsetup Intprbs intprb_getvarprbs >>

Intprbs >> Intprbs > intprb_getvariance

intprb_getvariance

Compute the variance.

Calling Sequence

v = intprb_getvariance ( n , p , nprob )

Parameters

n:

a 1-by-1 matrix of doubles, integer value, the dimension of the space

p:

a matrix of doubles, the parameters of the problem

nprob:

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

v:

a 1-by-1 matrix of doubles, the variance

Description

This function returns the variance associated with the problem nprob.

Internally, it is an interface function which calls the function getfunc (which selects appropriate test fuction based on nprob). If the variance is known, the returned value of v is unity. If the variance is unknown, the returned value of v is the empty matrix. For Genz's functions, the variance is unknown.

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

Examples

// Get v for Sum test case
nprob = 1
[n,p] = intprb_getsetup(nprob)
v=intprb_getvariance(n,p,nprob)

Authors

Bibliography

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


Report an issue
<< intprb_getsetup Intprbs intprb_getvarprbs >>