sed_rate_gen_gamma: sed. rate gen based on gamma distribution

View source: R/sedrate_gen_helpers.R

sed_rate_gen_gammaR Documentation

sed. rate gen based on gamma distribution

Description

generates a function factory for usage with sedrate_to_multiadm. At h[i], the sedimentation rate is given by a gamma distribution with parameters shapes[i] and rates[i]. Between those values, sedimentation rate is linearly interpolated Outside of the range of h, behavior is determined by the argument rule which is passed to approxfun. See there for details.

Usage

sed_rate_gen_gamma(h, shapes, rates, rule = 1)

Arguments

h

heights at which sedimentation rate is determined

shapes

shape parameters for the gamma distribution

rates

rate parameter for the gamma distribution

rule

an integer of length 1 or 2, see description for details

Value

a function factory for usage with sedrate_to_multiadm

See Also

  • sedrate_to_multiadm() for estimating age-depth models using the outputs

  • sed_rate_from_matrix() for other means of defining sedimentation rates

  • sed_rate_gen_from_bounds() for sed. rate generator based on bounds on sedimentation rates.


admtools documentation built on June 8, 2025, 10:35 a.m.