Skip to contents

This function calculates the reliability function over a range of time points for a given model and parameters. It can generate a plot of the reliability function and compute the Mean Time to Failure (MTTF) based on the calculated CDF.

Usage

Reliability(
  par = em_para_re[[1]],
  model = models,
  t,
  u,
  type = types,
  D = 10,
  bin = 10
)

Arguments

par

A numeric vector of parameters used in the model.

model

A character string indicating the model type ("M0", "M1", "M2", "M3", "M4").

t

A numeric vector of time points at which to evaluate the reliability.

u

A numeric vector of uncertainty or additional variables, default is NULL.

type

A character string indicating the type of distribution or function to use (e.g., "Gamma", "Weibull").

D

A numeric value indicating a scale parameter, default is 10.

bin

A numeric value indicating the number of bins to use when discretizing the time range, default is 10.

Value

A list containing:

result

A data frame with the computed reliability for each time point.

MTTF

The computed Mean Time to Failure (MTTF).

plot

A ggplot object showing the reliability over time.