exp_parallel: Parallel of exponential components (closed form)

View source: R/exp_parallel.R

exp_parallelR Documentation

Parallel of exponential components (closed form)

Description

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

Usage

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

Arguments

rates

Positive numeric vector of length m.

x

An exp_parallel object.

...

Ignored.

Value

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

Examples

sys <- exp_parallel(c(1, 2, 3))
algebraic.dist::surv(sys)(1)

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