| exp_kofn | R Documentation |
Constructs a dist_structure for a k-out-of-m system whose components
are independent exponentials. Closed-form methods are provided for
surv, cdf, sampler, density, and hazard. mean falls back
to numerical integration via the dist_structure default.
exp_kofn(k, rates)
## S3 method for class 'exp_kofn'
surv(x, ...)
## S3 method for class 'exp_kofn'
sampler(x, ...)
## S3 method for class 'exp_kofn'
hazard(x, ...)
## S3 method for class 'exp_kofn'
density(x, ...)
k |
Minimum number of functioning components for system operation. |
rates |
Positive numeric vector of length |
x |
An |
... |
Ignored. |
exp_kofn() returns an object of class
c("exp_kofn", "kofn_dist", "coherent_dist", "dist_structure", "univariate_dist", "continuous_dist", "dist").
The associated S3 methods return:
surv(), density(), hazard(): 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 <- exp_kofn(k = 2, rates = 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.