exp_kofn: k-out-of-n system of independent exponential components...

View source: R/exp_kofn.R

exp_kofnR Documentation

k-out-of-n system of independent exponential components (closed form)

Description

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.

Usage

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, ...)

Arguments

k

Minimum number of functioning components for system operation.

rates

Positive numeric vector of length m with m >= k.

x

An exp_kofn object.

...

Ignored.

Value

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.

Examples

sys <- exp_kofn(k = 2, rates = c(1, 2, 3))
algebraic.dist::surv(sys)(1)

dist.structure documentation built on May 13, 2026, 1:07 a.m.