order_statistic: k-th order statistic of m iid components

View source: R/iid_constructors.R

order_statisticR Documentation

k-th order statistic of m iid components

Description

Constructs a kofn_dist whose system lifetime equals T_(k), the k-th order statistic of m iid draws from d. Under the k-of-m parametrization, the system fails at the (m - k + 1)-th component failure; setting the threshold to m - k + 1 makes the system lifetime equal T_(k).

Usage

order_statistic(d, k, m)

Arguments

d

A dist object.

k

The order statistic index (1 = min, m = max).

m

Number of iid components.

Details

The internal call is kofn_dist(m - k + 1, ...): this maps the order-statistic index k (where k = 1 is the minimum, k = m is the maximum) to the ⁠:G⁠ convention used by kofn_dist (where the k_dist argument is the number of functioning components required).

Value

A kofn_dist.

Examples

# Median of 5 iid exponentials
sys <- order_statistic(algebraic.dist::exponential(1), k = 3, m = 5)

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