ecld-class: An S4 class to represent the lambda distribution
Description
The ecld class serves as an object-oriented interface for the lambda distribution.
The ecld prefix will also be used as the namespace for many analytic formulai
derived in lambda distribution, especially when lambda = 1,2,3.
Because of the extensive use of analytic formulai and enhanced precision through
the unit distribution, MPFR is not needed in most cases. This makes option pricing
calculation in ecld much faster than its counterpart built on the more
general-purpose ecd library.
Slots
call- the match.call slot
lambda- numeric
sigma- numeric
beta- numeric
mu- numeric
use.mpfr- logical, whether to use mpfr for ecld object. If any of the above parameters
is mpfr, then this flag is set to
TRUE. is.sged- logical, if
TRUE, interpret parameters as SGED. ecd- the companion object of ecd class (optional)
mu_D- the risk-neutral drift (optional)
ecd_RN- the risk-neutral companion object of ecd class (optional)
status- numeric, bitmap recording the state of the calculation layers.
1: bare bone; 2: ecd; 4: mu_D; 8: ecd_RN