Exponentially tilt a truncated exponential distribution
Source:R/transform.R
transform_truncated_exp.RdExponentially tilt a truncated exponential distribution
Arguments
- fit
A named list with numeric elements
alpha,ll,ul,lr, andur; seedtexp().- power
Numeric exponent by which prey-mass weighting is increased.
Details
Multiplication by \(\exp(-q l)\) changes the exponential slope from
alpha to alpha - power; the two cutoff locations and steepnesses are
unchanged. Unlike transform_fit(), this low-level helper interprets
power as the change in exponent and does no validation.
Examples
fit <- list(alpha = 0.5, ll = 2, ul = 20, lr = 12, ur = 20)
transform_truncated_exp(fit, power = 1)
#> $alpha
#> [1] -0.5
#>
#> $ll
#> [1] 2
#>
#> $ul
#> [1] 20
#>
#> $lr
#> [1] 12
#>
#> $ur
#> [1] 20
#>