wei_series: Series of heterogeneous Weibull components (closed form)

View source: R/wei_series.R

wei_seriesR Documentation

Series of heterogeneous Weibull components (closed form)

Description

Constructs a dist_structure representing a series system whose components are independent Weibull distributions with possibly different shapes and scales. Closed-form methods are provided for surv, cdf, sampler, and algebraic.dist::hazard.

Usage

wei_series(shapes, scales)

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

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

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

Arguments

shapes

Positive numeric vector of length m: Weibull shape parameters per component.

scales

Positive numeric vector of length m (same length as shapes): Weibull scale parameters per component.

x

A wei_series object.

...

Ignored.

Value

wei_series() returns an object of class c("wei_series", "series_dist", "coherent_dist", "dist_structure", "univariate_dist", "continuous_dist", "dist").

The associated S3 methods return:

  • surv(), 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_series(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.