Learn R Programming

rLindo (version 8.0.1)

rLSsampLoadDiscretePdfTable: Load a PDF table for a user defined discrete distribution.

Description

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

Usage

rLSsampLoadDiscretePdfTable(sample,nLen,padProb,padVals)

Arguments

sample
A LINDO API sample object, returned by rLSsampCreate.
nLen
An integer specifying the table length.
padProb
A double array containing the probabilities of outcomes.
padVals
A double array containing the values of outcomes.

Value

ErrorCode
Zero if successful, nonzero otherwise.

References

LINDO SYSTEMS home page at www.lindo.com