Skip to content

Commit

Permalink
Merge pull request #163 from rsetienne/develop
Browse files Browse the repository at this point in the history
Documentation
  • Loading branch information
rsetienne authored Oct 21, 2023
2 parents 2051f8e + a19d717 commit c5c4fba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions R/DAISIE_loglik_integrate.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ cum_rho <- function(par_upper_bound, DAISIE_dist_pars) {
#' @description computes the logarithm of the integral of exp(logfun) from 0
#' to Inf under the following assumptions:
#' \itemize{
#' \item{"exp(logfun)"}{has a single, sharply peaked maximum}
#' \item{"exp(logfun)"}{is increasing to the left of the peak and
#' \item{"exp(logfun)" has a single, sharply peaked maximum}
#' \item{"exp(logfun)" is increasing to the left of the peak and
#' decreasing to the right of the peak}
#' \item{"exp(logfun)"}{can be zero or positive at zero}
#' \item{"exp(logfun)"}{tends to zero at infinity}
#' \item{"exp(logfun)" can be zero or positive at zero}
#' \item{"exp(logfun)" tends to zero at infinity}
#' }
#' @param logfun the logarithm of the function to integrate
#' @param xx the initial set of points on which to evaluate the function
Expand All @@ -159,9 +159,9 @@ cum_rho <- function(par_upper_bound, DAISIE_dist_pars) {
#' among the xx
#' @return the result of the integration
#' @references Haegeman, B. & R.S. Etienne (2017). A general sampling formula
#' for community structure data. Methods in Ecology & Evolution. In press.
#' for community structure data. Methods in Ecology & Evolution 8: 1506-1519.
#' https://doi.org/10.1111/2041-210X.12807
#' @keywords internal
#'
integral_peak <- function(logfun,
xx = seq(-20, 20, 2),
xcutoff = 2,
Expand Down
1 change: 1 addition & 0 deletions man/DAISIE-package.Rd

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

11 changes: 6 additions & 5 deletions man/integral_peak.Rd

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

0 comments on commit c5c4fba

Please sign in to comment.