Mirrors the seven Numerics link functions and the five RMC.BestFit-specific ones (the
BestFit factory's own YeoJohnson case routes to the Numerics class – see
best_fit_link_function_factory.hpp – so there is one "YeoJohnson", not two). Six of the
twelve take construction parameters, passed through ... by name. type is matched
case-insensitively (as trend() already does) and normalized to its canonical spelling
before being sent to the C++ layer.
Arguments
- type
one of
link_names(), matched case-insensitively.- ...
named construction parameters for the parameterized links:
lambdafor"YeoJohnson";gamma0,scale,epsilon,deltafor"ASinH";afor"SES";sigma0,a,lambdafor"LogSES";sigma0,log_scale,epsilon,deltafor"LogASinH";mu0,scalefor"Centered". R spells the Yeo-Johnson/LogSES exponentlambda; Python spells itlambda_, becauselambdais a reserved word there (seecorehydropy.toolbox.Link).- inner
a
corehydro_linkwrapped by"Centered", ignored for every other type.
Examples
l <- link_function("Log")
link(l, c(1, 10, 100))
#> [1] 0.000000 2.302585 4.605170
link_inverse(l, c(0, 1, 2))
#> [1] 1.000000 2.718282 7.389056