50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


beautier (version 2.6.12)

get_tree_prior_n_params: Get the number of parameters a tree prior has

Description

Get the number of parameters a tree prior has

Usage

get_tree_prior_n_params(tree_prior)

Value

the number of parameters a tree prior has

Arguments

tree_prior

a tree_prior, as created by create_tree_prior

Author

Richèl J.C. Bilderbeek

Examples

Run this code
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