| exp_parallel | R Documentation |
Constructs a dist_structure representing a parallel system whose
components are independent exponentials. Closed-form methods are
provided for surv, cdf, sampler, and mean (the last via
inclusion-exclusion over the 2^m - 1 non-empty component subsets).
exp_parallel(rates)
## S3 method for class 'exp_parallel'
surv(x, ...)
## S3 method for class 'exp_parallel'
sampler(x, ...)
## S3 method for class 'exp_parallel'
mean(x, ...)
rates |
Positive numeric vector of length |
x |
An |
... |
Ignored. |
exp_parallel() returns an object of class
c("exp_parallel", "parallel_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.
mean(): a numeric scalar (the mean system lifetime,
computed in closed form via inclusion-exclusion).
sys <- exp_parallel(c(1, 2, 3))
algebraic.dist::surv(sys)(1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.