50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

rLindo (version 8.0.1)

rLSsampEvalUserDistr: Evaluate the specified multivariate function associated with given distribution at specified point.

Description

R interface function for LINDO API function LSsampEvalUserDistr. For more information, please refer to LINDO API User Manual.

Usage

rLSsampEvalUserDistr(sample,nFuncType,padXval,nDim)

Arguments

sample
A LINDO API sample object, returned by rLSsampCreate.
nFuncType
An integer specifying the function type to evaluate. Possible values are:
  • LS_PDF probability density function.
  • LS_CDF cummulative density function.
  • LS_CDFINV inverse of cummulative density function.
  • LS_PDFDIFF derivative of the probability density function.
  • LS_USER a user-defined function.

padXval
A double array containing the values required to evaluate the specified function.
nDim
An integer specifying the number of values required in the computation of the sample point.

Value

ErrorCode
Zero if successful, nonzero otherwise.
pdResult
A double value to return the result.

References

LINDO SYSTEMS home page at www.lindo.com