get_tree_prior_n_distrs: Get the number of distributions a tree prior has

View source: R/get_tree_prior_n_distrs.R

get_tree_prior_n_distrsR Documentation

Get the number of distributions a tree prior has

Description

Get the number of distributions a tree prior has

Usage

get_tree_prior_n_distrs(tree_prior)

Arguments

tree_prior

a tree priors, as returned by create_tree_prior

Value

the number of distributions a tree prior has

Author(s)

Richèl J.C. Bilderbeek

Examples

check_empty_beautier_folder()

# 2: birth_rate_distr and death_rate_distr
get_tree_prior_n_distrs(create_bd_tree_prior())

# 0:none
get_tree_prior_n_distrs(create_cbs_tree_prior())

# 1: pop_size_distr
get_tree_prior_n_distrs(create_ccp_tree_prior())

 # 2:pop_size_distr and growth_rate_distr
get_tree_prior_n_distrs(create_cep_tree_prior())

# 1: birth_rate_distr
get_tree_prior_n_distrs(create_yule_tree_prior())

check_empty_beautier_folder()

beautier documentation built on Nov. 2, 2023, 5:08 p.m.