Last chance! 50% off unlimited learning
Sale ends in
Get the number of parameters a tree prior has
get_tree_prior_n_params(tree_prior)
the number of parameters a tree prior has
a tree_prior,
as created by create_tree_prior
Richèl J.C. Bilderbeek
check_empty_beautier_folder()
# birth_rate_distr is uniform, which has zero parameters
# death_rate_distr is uniform, which has zero parameters
get_tree_prior_n_params(create_bd_tree_prior())
# no distributions, no parameters
get_tree_prior_n_params(create_cbs_tree_prior())
# pop_size_distr is 1/x, which has zero parameters
get_tree_prior_n_params(create_ccp_tree_prior())
# pop_size_distr is 1/x, which has zero parameters
# growth_rate_distr is Laplace, which has two parameters
get_tree_prior_n_params(create_cep_tree_prior())
# birth_rate_distr is uniform, which has zero parameters
get_tree_prior_n_params(create_yule_tree_prior())
check_empty_beautier_folder()
Run the code above in your browser using DataLab