Description Usage Arguments Value Author(s) Examples
View source: R/update_belief.R
Computes the following belief state given the current belief state, transition and observation matrices, the observation and the action
1 | update_belief(state_prior, transition, observation, z0, a0)
|
state_prior |
Initial belief state, vector of 2 values (belief state extant and extinct), between 0 and 1. |
transition |
Transition matrix between states, can be computed using |
observation |
observation matrix for each action, can be computed using |
z0 |
Observation, integer (1 for seen, 2 for not seen) |
a0 |
Prior action, integer (1 for manage, 2 for survey, 3 for stop) |
Vector of 2 components : extant and extinct probabilities
Luz Pascal
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## 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
state_prior <- c(1,0)
z0 = 2 #Not seen
a0 = 1 #manage
update_belief(state_prior, t, o, z0, a0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.