Description Usage Arguments Details Examples
Create a transfun object representing a probability of
transition between states. Typically used inside a call to
transition
1 2 3 4 5 | probability(value)
p(value)
is.probability(x)
|
value |
a numeric between 0 and 1 representing a probability |
x |
an object to be tested as a probability transfun object |
p()
is a shorthand for probability()
.
1 2 3 4 5 | # these are equivalent
prob <- probability(0.2)
prob <- p(0.2)
is.probability(prob)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.