Description Usage Arguments Details Value Author(s) Examples
Checks if input matrices are compatible to form a POMDP
1 | check_pomdp(transition, observation, reward)
|
transition |
Transition matrix between states, can be computed using |
observation |
observation matrix for each action, can be computed using |
reward |
reward matrix, can be computed using |
Checks the compatibility of dimensions of the input matrices (same number of states, actions), are the transition matrices stochastic and square,
Bool, TRUE if the inputs are compatible to form a POMDP, FALSE otherwise
Luz Pascal
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
#values for Sumatran tigers
pen <- 0.1
p0 <- 1-pen
pem <- 0.05816
pm <- 1 - pem
V <- 175.133
Cm <- 18.784
Cs <- 10.840
d0 <- 0.01
dm <- 0.01
ds <- 0.78193
#buiding the matrices of the problem
t <- smsPOMDP::tr(p0, pm, d0, dm, ds, V, Cm, Cs) #transition matrix
o <- smsPOMDP::obs(p0, pm, d0, dm, ds, V, Cm, Cs)#observation matrix
r <- smsPOMDP::rew(p0, pm, d0, dm, ds, V, Cm, Cs)#reward matrix
check_pomdp(t, o, r)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.