probability: probability transfun

Description Usage Arguments Details Examples

Description

Create a transfun object representing a probability of transition between states. Typically used inside a call to transition

Usage

1
2
3
4
5
probability(value)

p(value)

is.probability(x)

Arguments

value

a numeric between 0 and 1 representing a probability

x

an object to be tested as a probability transfun object

Details

p() is a shorthand for probability().

Examples

1
2
3
4
5
# these are equivalent
prob <- probability(0.2)
prob <- p(0.2)

is.probability(prob)

goldingn/pop documentation built on May 17, 2019, 7:42 a.m.