Check whether parameter choices produce a valid g-and-k or g-and-h distribution.
isValid_scalar(
g,
k_or_h,
c = 0.8,
model = c("gk", "generalised_gh", "tukey_gh", "gh"),
initial_z = seq(-1, 1, 0.2)
)
Logical vector denoting whether each parameter combination is valid
A g parameter.
A k or h parameter.
A c parameter.
Which model to check: "gk", "generalised_gh" or "tukey_gh". For backwards compatibility, "gh" acts the same as "generalised_gh".
Vector of initial z values to use in optimisation.
This internal function performs the calculation using scalar parameter inputs. The exported function is a vectorised wrapper of this.