Determine if the object is a valid constant coalescence population tree prior

is_ccp_tree_prior(x)

Arguments

x

an object, to be determined if it is a valid constant coalescence population tree prior

Value

TRUE if x is a valid constant coalescence population tree prior, FALSE otherwise

See also

Use create_ccp_tree_prior to create a valid constant coalescence population tree prior

Author

Richèl J.C. Bilderbeek

Examples

  testit::assert(!is_ccp_tree_prior(create_bd_tree_prior()))
  testit::assert(!is_ccp_tree_prior(create_cbs_tree_prior()))
  testit::assert( is_ccp_tree_prior(create_ccp_tree_prior()))
  testit::assert(!is_ccp_tree_prior(create_cep_tree_prior()))
  testit::assert(!is_ccp_tree_prior(create_yule_tree_prior()))