get_observation_probability | R Documentation |
Computes the probability of observations given the birds count from trajectories : P(O | Pi_[0:T])
get_observation_probability(obs, hidden_count, use_log = TRUE)
obs |
Matrix of I+2 rows and T+1 columns with observed bird counts. I is the numbers of sites, to which one adds the virtual sites 'death' and 'flight' and T is the horizon of the migration structure. |
hidden_count |
Matrix of I+2 rows and T+1 columns with simulated bird counts. As computed by function get_count |
use_log |
Boolean that states if the log probability should be returned. |
the probability (or log-probability) of the observed data given simulated counts.
migr <- generate_toy_migration() traj <- generate_trajectories( migr ) get_observation_probability( migr$observation, get_counts( migr, traj ), use_log = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.