Package: dist.structure 0.5.0

Alexander Towell

dist.structure: Structured Random Variables for Reliability System Distributions

Extends the 'algebraic.dist' distribution algebra to random variables with internal structure: coherent reliability systems decomposed into components arranged by a structure function (series, parallel, k-out-of-n, bridge, and arbitrary topologies via minimal path sets). Every 'dist_structure' object is a 'dist', so the full distribution algebra (mean, vcov, sampler, surv, cdf) works automatically via default methods that compose component-level distributions through the topology. Adds structural queries: structure function evaluation, minimal path and cut sets, system signature, critical states, dual, Birnbaum structural importance, and system reliability. Topology shortcut constructors (series_dist, parallel_dist, kofn_dist, bridge_dist) produce ready-to-use dists from component dists and a chosen structure.

Authors:Alexander Towell [aut, cre]

dist.structure_0.5.0.tar.gz
dist.structure_0.5.0.tar.gz(r-4.7-any)dist.structure_0.5.0.tar.gz(r-4.6-any)
dist.structure_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
dist.structure/json (API)
NEWS

# Install 'dist.structure' in R:
install.packages('dist.structure', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/queelius/dist.structure/issues

On CRAN:

Conda:

4.66 score 4 packages 11 scripts 39 exports 3 dependencies

Last updated from:384296a34d. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK122
source / vignettesOK204
linux-release-x86_64OK131
wasm-releaseOK108

Exports:as_dist_structurebirnbaum_importancebridge_distcoherent_distcold_standby_distcomponentcompose_systemsconsecutive_k_distcritical_statescriticality_importancedualexp_kofnexp_parallelexp_seriesgamma_seriesis_coherentis_dist_structurekofn_distlognormal_seriesmax_iidmin_cutsmin_iidmin_pathsncomponentsorder_statisticparallel_distphireliabilityseries_diststructural_importancesubstitute_componentsystem_censoringsystem_lifetimesystem_signaturevalidate_dist_structurevesely_fussell_importancewei_homogeneous_serieswei_kofnwei_series

Dependencies:algebraic.distmvtnormR6

Coherent systems

Rendered fromcoherent-systems.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-12
Started: 2026-05-12

Composition and substitution

Rendered fromcomposition.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-12
Started: 2026-05-12

Distribution interface

Rendered fromdistribution-interface.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-12
Started: 2026-05-12

Getting started with dist.structure

Rendered fromgetting-started.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-12
Started: 2026-05-12

Implementing a dist_structure subclass

Rendered fromimplementing-a-subclass.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-12
Started: 2026-05-12

Importance measures

Rendered fromimportance-measures.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-12
Started: 2026-05-12

Non-coherent systems: cold standby

Rendered fromnon-coherent.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-12
Started: 2026-05-12

Readme and manuals

Help Manual

Help pageTopics
Coerce to dist_structureas_dist_structure as_dist_structure.dist as_dist_structure.dist_structure
Birnbaum reliability importancebirnbaum_importance birnbaum_importance.dist_structure
Bridge system distributionbridge_dist
Coherent system distribution from minimal path setscoherent_dist
Cold-standby system distributioncdf.cold_standby_dist cold_standby_dist sampler.cold_standby_dist surv.cold_standby_dist
The j-th component as a distcomponent
Compose systems hierarchicallycompose_systems compose_systems.dist_structure
Consecutive-k-out-of-n system distribution (type G)consecutive_k_dist
Critical states of a componentcritical_states critical_states.dist_structure
Criticality (Fussell) importance at time tcriticality_importance criticality_importance.dist_structure
Dual of a coherent_dist: swap cuts and pathsdual dual.coherent_dist dual.dist_structure dual.dual_of_system
k-out-of-n system of independent exponential components (closed form)density.exp_kofn exp_kofn hazard.exp_kofn sampler.exp_kofn surv.exp_kofn
Parallel of exponential components (closed form)exp_parallel mean.exp_parallel sampler.exp_parallel surv.exp_parallel
Series of exponential components (closed form)density.exp_series exp_series hazard.exp_series mean.exp_series sampler.exp_series surv.exp_series
Format a dist_structure objectformat.dist_structure
Series of independent Gamma components (closed form)gamma_series sampler.gamma_series surv.gamma_series
Coherence axiom checkis_coherent is_coherent.dist_structure
Predicate for dist_structure objectsis_dist_structure
k-out-of-n system distributionkofn_dist
Series of independent Lognormal components (closed form)lognormal_series sampler.lognormal_series surv.lognormal_series
Parallel system of m iid componentsmax_iid
Mean of a cold-standby system: sum of component meansmean.cold_standby_dist
Minimal cut setsmin_cuts min_cuts.dist_structure
Series system of m iid componentsmin_iid
Minimal path setsmin_paths min_paths.dist_structure
Number of componentsncomponents
k-th order statistic of m iid componentsorder_statistic
Parallel system distributionparallel_dist
Structure functionphi phi.dist_structure
Print a dist_structure objectprint.dist_structure
System reliability polynomialreliability reliability.dist_structure
Series system distributionseries_dist
Birnbaum structural importancestructural_importance structural_importance.dist_structure
Substitute a componentsubstitute_component substitute_component.dist_structure
System survival via reliability compositioncdf.dist_structure dist_structure sampler.dist_structure surv.dist_structure
Per-component censoring from system observationsystem_censoring system_censoring.dist_structure
System lifetime from component timessystem_lifetime system_lifetime.dist_structure
System signaturesystem_signature system_signature.dist_structure
Validate that an object satisfies the dist_structure protocolvalidate_dist_structure
Vesely-Fussell importance at time tvesely_fussell_importance vesely_fussell_importance.dist_structure
Series of Weibull components with common shape (closed form as a Weibull)mean.wei_homogeneous_series sampler.wei_homogeneous_series surv.wei_homogeneous_series wei_homogeneous_series
k-out-of-n system of independent Weibull components (closed form)density.wei_kofn hazard.wei_kofn sampler.wei_kofn surv.wei_kofn wei_kofn
Series of heterogeneous Weibull components (closed form)hazard.wei_series sampler.wei_series surv.wei_series wei_series