View source: R/lognormal_series.R
| lognormal_series | R Documentation |
Constructs a dist_structure for a series system whose components are
independent Lognormals. Closed-form surv is the product of
per-component upper-tail probabilities; cdf is 1 - surv; sampler
generates m independent Lognormals and takes the min.
lognormal_series(meanlogs, sdlogs)
## S3 method for class 'lognormal_series'
surv(x, ...)
## S3 method for class 'lognormal_series'
sampler(x, ...)
meanlogs |
Numeric vector of length |
sdlogs |
Positive numeric vector of length |
x |
A |
... |
Ignored. |
lognormal_series() returns an object of class
c("lognormal_series", "series_dist", "coherent_dist", "dist_structure", "univariate_dist", "continuous_dist", "dist").
The associated S3 methods return:
surv(): a closure function(t, ...).
cdf() is derived via the dist_structure default and returns
a closure function(t, ...) equal to 1 - surv(x)(t).
sampler(): a closure function(n, ...) returning n random
variates from the system lifetime distribution.
sys <- lognormal_series(meanlogs = c(0, 1), sdlogs = c(1, 0.5))
algebraic.dist::surv(sys)(1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.