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.
callthe match.call slot
lambdanumeric
sigmanumeric
betanumeric
munumeric
use.mpfrlogical, whether to use mpfr for ecld object. If any of the above parameters
is mpfr, then this flag is set to TRUE.
is.sgedlogical, if TRUE, interpret parameters as SGED.
ecdthe companion object of ecd class (optional)
mu_Dthe risk-neutral drift, optional, but preferred to have value if the object is to engage with OGF calculation.
epsilonthe residual risk, optional as a storage for lambda transformation
rhothe momentum shift, optional as a storage for lambda transformation
ecd_RNthe risk-neutral companion object of ecd class (optional)
statusnumeric, bitmap recording the state of the calculation layers. 1: bare bone; 2: ecd; 4: mu_D; 8: ecd_RN