The function may be called by the names: g01zuc, nag_stat_init_vavilov or nag_init_vavilov.
3Description
g01zuc initializes the array comm_arr for use by g01eucorg01muc in the evaluation of the Vavilov functions and respectively.
Multiple calls to g01eucorg01muc can be made following a single call to g01zuc, provided that rkappa or beta2 do not change, and that either all calls are to g01euc or all calls are to g01muc. If you wish to call both g01eucandg01muc, then you will need to initialize both separately.
4References
Schorr B (1974) Programs for the Landau and the Vavilov distributions and the corresponding random numbers Comp. Phys. Comm.7 215–224
5Arguments
1: – doubleInput
On entry: the argument of the function.
Constraint:
.
2: – doubleInput
On entry: the argument of the function.
Constraint:
.
3: – IntegerInput
On entry: if , g01muc is to be called after the call to g01zuc. Otherwise, g01euc is to be called.
4: – double *Output
On exit: , a threshold value below which will be set to zero by g01muc and will be set to zero by g01euc if .
5: – double *Output
On exit: , a threshold value above which will be set to zero by g01muc and will be set to unity by g01euc if .
6: – doubleCommunication Array
On exit: this argument should be passed unchanged to g01eucorg01muc.
7: – NagError *Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).
6Error Indicators and Warnings
NE_ALLOC_FAIL
Dynamic memory allocation failed.
See Section 3.1.2 in the Introduction to the NAG Library CL Interface for further information.
NE_BAD_PARAM
On entry, argument had an illegal value.
NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
See Section 7.5 in the Introduction to the NAG Library CL Interface for further information.
NE_NO_LICENCE
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library CL Interface for further information.
NE_REAL
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
7Accuracy
At least five significant digits are usually correct.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.