% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exp_parallel.R
\name{exp_parallel}
\alias{exp_parallel}
\alias{surv.exp_parallel}
\alias{sampler.exp_parallel}
\alias{mean.exp_parallel}
\title{Parallel of exponential components (closed form)}
\usage{
exp_parallel(rates)

\method{surv}{exp_parallel}(x, ...)

\method{sampler}{exp_parallel}(x, ...)

\method{mean}{exp_parallel}(x, ...)
}
\arguments{
\item{rates}{Positive numeric vector of length \code{m}.}

\item{x}{An \code{exp_parallel} object.}

\item{...}{Ignored.}
}
\value{
\code{exp_parallel()} returns an object of class
\code{c("exp_parallel", "parallel_dist", "coherent_dist", "dist_structure", "univariate_dist", "continuous_dist", "dist")}.

The associated S3 methods return:
\itemize{
\item \code{surv()}: a closure \verb{function(t, ...)}.
\item \code{cdf()} is derived via the \code{dist_structure} default and returns
a closure \verb{function(t, ...)} equal to \code{1 - surv(x)(t)}.
\item \code{sampler()}: a closure \verb{function(n, ...)} returning \code{n} random
variates from the system lifetime distribution.
\item \code{mean()}: a numeric scalar (the mean system lifetime,
computed in closed form via inclusion-exclusion).
}
}
\description{
Constructs a \code{dist_structure} representing a parallel system whose
components are independent exponentials. Closed-form methods are
provided for \code{surv}, \code{cdf}, \code{sampler}, and \code{mean} (the last via
inclusion-exclusion over the \code{2^m - 1} non-empty component subsets).
}
\examples{
sys <- exp_parallel(c(1, 2, 3))
algebraic.dist::surv(sys)(1)
}
