Skip to content

Commit

Permalink
update documentation. closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasHohmann committed Nov 25, 2024
1 parent 9f4faf2 commit 3cbcdb1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions R/sedrate_gen_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,17 @@ sed_rate_gen_from_bounds = function(h_l, s_l, h_u, s_u, rate = 1){
#'
#' @returns a function factory for usage with `sedrate_to_multiadm`
#'
#' @description
#' constructs a sedimentation rate generator for usage with `sedrate_to_multiadm` based on the following procedure: (1) determine stratigraphic points based on a Poisson point process with rate `rate` (2) at these points, determine the sedimentation rate based on a uniform distribution between the bounds provided by the input parameters (3) linearly interpolate between those points with sedimentation rate determined in step 2.
#' This approach can be used to estimate age-depth models when only rough boundaries on sedimentation rates are available. Here, the uniform distribution is chosen to reflect that no other information other than maximum and minimum sed. rate is available.
#'
#' @seealso [sedrate_to_multiadm()] for estimating age-depth models using the outputs, [sed_rate_from_matrix()] for other means of defining sedimentation rates
#'
#' @examples
#' # see vignette
#' # vignette("adm_from_sedrate")
#' # for an example
#'
f = function(){
h_min = min(c(min(h_u), min(h_l)))
h_max = max(c(max(h_u), max(h_l)))
Expand Down
9 changes: 8 additions & 1 deletion man/sed_rate_gen_from_bounds.Rd

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

0 comments on commit 3cbcdb1

Please sign in to comment.