Learn R Programming

rLindo (version 8.0.1)

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

Description

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

Usage

rLSsampEvalDistr(sample,nFuncType,dXval)

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.

dXval
A double precision value to evaluate the specified function.

Value

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

References

LINDO SYSTEMS home page at www.lindo.com