%!demo
%! ## Compute the negative loglikelihood for a fitted t Location-Scale distribution
%! rand ("seed", 21);
%! data = tlsrnd (0, 1, 5, 100, 1);
%! pd_fitted = fitdist (data, "tLocationScale");
%! params = [pd_fitted.mu, pd_fitted.sigma, pd_fitted.nu];
%! nlogL_tlslike = tlslike (params, data)
%!
%! ## This is useful for assessing the fit of a t Location-Scale distribution to
%! ## data, with lower values indicating a better fit, often used in model comparison.
