Compute the log-likelihood for the Ultimate Deconvolution model.

# S3 method for ud_fit
logLik(object, version = c("Rcpp", "R"), ...)

Arguments

object

An Ultimate Deconvolution model fit. Typically, this will be an output of ud_init or ud_fit.

version

When version == "R", the computations are performed entirely in R; when version == "Rcpp", an Rcpp implementation is used.

...

Additional arguments (unused).

Value

A number giving the log-likelihood for the model.

See also