calProb {ftaproxim}R Documentation

Transition Probability Function

Description

This function returns the transition probability for a given basic event and a proxel.

Usage

calProb(BE, state, proxel, delta)

Arguments

BE

a list containing states, transition matrix, distributions and their parameters for a basic event

state

a string value

proxel

a data frame containing a state, age intensity and a probability.

delta

a numeric value as time step

Value

a numeric value between 0 and 1 as the transition probability

Examples

## A repairable basic event with Uniform(2, 2.5) failure distribution function
## and a fixed repair time of 0.3.
delta <- 0.2
BE <- list(
  states = c("OK", "F"),
  G = rbind(
    c(NA, 1),
    c(1, NA)
  ),
  dist = c("unif", "unif"),
  param = list(c(2, 2.5), c(0.3 - delta, 0.3 + delta))
)
state <- "OK"
proxel <- data.frame(State = "OK", ageInt = 0, Prob = 1)
calProb(BE, state, proxel, delta)

[Package ftaproxim version 0.0.1 Index]