wei_kofn: k-out-of-n system of independent Weibull components (closed...

View source: R/wei_kofn.R

wei_kofnR Documentation

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

Description

Constructs a dist_structure for a k-out-of-m system whose components are independent (possibly heterogeneous) Weibulls. Closed-form surv, cdf, sampler, density, and hazard via subset enumeration, the critical-state density formula, and component order statistics.

Usage

wei_kofn(k, shapes, scales)

## S3 method for class 'wei_kofn'
surv(x, ...)

## S3 method for class 'wei_kofn'
sampler(x, ...)

## S3 method for class 'wei_kofn'
hazard(x, ...)

## S3 method for class 'wei_kofn'
density(x, ...)

Arguments

k

Minimum functioning components for system operation.

shapes

Positive numeric vector of length m.

scales

Positive numeric vector of length m.

x

A wei_kofn object.

...

Ignored.

Value

wei_kofn() returns an object of class c("wei_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 <- wei_kofn(k = 2, shapes = c(1, 2, 3), scales = c(1, 2, 3))
algebraic.dist::surv(sys)(1)

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