Description Usage Arguments Details Value Examples
View source: R/dist_exponential.R
A special case of comb_exponential
.
1 | exponential(M2 = 45, M3 = 32)
|
M2 |
Numerical of length 1. |
M3 |
Numerical of length 1. |
A function to create "family" objects is returned. The "family" object is to be used in the family
argument in ruin_prob_ls
. It contains all essential information to calculate the
ruin probability, e.g. calculation of Θ_{f,k} for various functions f.
Appendix A3 in article "Finite-time ruin probabilities using bivariate Laguerre series" is used.
The sum to infinity terms in (A18), (A19) are truncated at M2
and M3
(M2>M3
).
Ideally, large M2
and M3
should be used. However, due to limit in numerical precision in R
(long double in C, i.e. 64bit) calculation of Θ_{f,k} for large k is unstable. As a result,
M2
and M3
has to be moderate.
Computer programs with high precision arithmetic built-in (e.g. Mathematica or Matlab) should be used for reliable results.
A function to create a family object with parameters:
beta
: Numerical of length 1. Rate parameter of the exponential distribution,
i.e. mean is 1/beta
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.