create_laplace_distr: Create a Laplace distribution

Description Usage Arguments Value Author(s) See Also Examples

Description

Create a Laplace distribution

Usage

1
create_laplace_distr(id = NA, mu = 0, scale = 1)

Arguments

id

the distribution's ID

mu

the mu parameter, a numeric value. For advanced usage, use the structure as returned by create_mu_param

scale

the scale parameter, a numeric value. For advanced usage, use the structure as returned by create_scale_param

Value

a Laplace distribution

Author(s)

Richèl J.C. Bilderbeek

See Also

the function create_distr shows an overview of all supported distributions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  laplace_distr <- create_laplace_distr()

  beast2_input_file <- tempfile(fileext = ".xml")
  create_beast2_input_file(
    input_filename = get_fasta_filename(),
    beast2_input_file,
    tree_prior = create_yule_tree_prior(
      birth_rate_distr = laplace_distr
    )
  )
  testit::assert(file.exists(beast2_input_file))

ropensci/beautier documentation built on May 14, 2019, 8:52 p.m.