get_safe_log_h_hp | R Documentation |
h
and hp
functions for large x
for modes with an unbounded h
.Asymptotic log of h
and hp
functions for large x
for modes with an unbounded h
.
get_safe_log_h_hp(mode, para)
mode |
A string, the class of the |
para |
A number, the first parameter to the |
A list of two vectorized functions, logh
and loghp
.
para <- 2.3
x <- seq(from=0.1, to=150, by=0.1)
for (mode in c("asinh", "cosh", "exp", "identity", "log_pow", "pow", "sinh", "softplus", "tanh")) {
print(mode)
hx_hpx <- get_h_hp(mode, para)(x)
print(c(max(abs(get_safe_log_h_hp(mode, para)$logh(x) - log(hx_hpx$hx))),
max(abs(get_safe_log_h_hp(mode, para)$loghp(x) - log(hx_hpx$hpx)))))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.