Name

intprb_getvariance — Compute the variance.

Calling Sequence

   v = intprb_getvariance ( n , p , nprob )
   
   

Parameters

n:

a floating point integer, the dimension of the space

p:

a floating point matrix, the parameters of the problem

nprob:

the problem number

v:

a 1 x 1 matrix of doubles, the variance

Description

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

Michael Baudin - 2010 - DIGITEO

Bibliography

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