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