Evaluates the density (or its logarithm) for each observation given the parameters.
calculateDensities(y, params, family = "gkw", log = FALSE)
NumericVector containing the evaluated densities.
NumericVector of observations.
NumericMatrix with parameters (columns: alpha, beta, gamma, delta, lambda).
String specifying the distribution family (default: "gkw").
Logical indicating whether to return the log-density (default FALSE).