Skip to content

Commit

Permalink
update start_at_crown flag
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsjanzen committed Apr 26, 2024
1 parent d403e1e commit 0a0b36f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
3 changes: 0 additions & 3 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ ct_condition_cpp <- function(rhs, state, t, lambdas, mus, Q, method, atol, rtol)
.Call(`_secsse_ct_condition_cpp`, rhs, state, t, lambdas, mus, Q, method, atol, rtol)
}

#'
NULL

secsse_sim_cpp <- function(m_R, lambdas_R, q_R, max_time, max_species, max_species_extant, min_species, init_states, condition, num_concealed_states, non_extinction, verbose, max_tries, seed, conditioning_vec, return_tree_size_hist, start_at_crown) {
.Call(`_secsse_secsse_sim_cpp`, m_R, lambdas_R, q_R, max_time, max_species, max_species_extant, min_species, init_states, condition, num_concealed_states, non_extinction, verbose, max_tries, seed, conditioning_vec, return_tree_size_hist, start_at_crown)
}
Expand Down
8 changes: 5 additions & 3 deletions R/default_params_doc.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@
#' used to infer the rate number to start with.
#' @param object lambda matrices, `q_matrix` or mu vector.
#' @param start_at_crown if FALSE, the simulation starts with one species
#' instead of two, and resulting crown age will be lower than the set
#' crown age. However, this facilitates comparison with BiSSE and facilitates
#' implementing speciation effects at the crown.
#' instead of the two assumed by default by secsse (also in ML), and
#' the resulting crown age will be lower than the set crown age. This allows
#' for direct comparison with BiSSE and facilitates implementing speciation
#' effects at the crown.
#' @param params parameters in order, where each value reflects the value
#' of the parameter at that position, e.g. `c(0.3, 0.2, 0.1)` will fill out
#' the value 0.3 for the parameter with rate identifier 1, 0.2 for the
Expand Down Expand Up @@ -221,6 +222,7 @@ default_params_doc <- function(phy,
min_spec,
max_species_extant,
tree_size_hist,
start_at_crown,
optimmethod) {
# Nothing
}
12 changes: 7 additions & 5 deletions man/default_params_doc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions man/secsse_sim.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a0b36f

Please sign in to comment.