%!demo
%! ## Compute the negative loglikelihood for a fitted Extreme Value distribution
%! pd = makedist ("ExtremeValue", "mu", 0, "sigma", 1)
%! rand ("seed", 21);
%! data = random (pd, 100, 1);
%! pd_fitted = fitdist (data, "ExtremeValue")
%! nlogL = negloglik (pd_fitted)
%!
%! ## This is useful for assessing the fit of an Extreme Value distribution to
%! ## data, lower values indicate a better fit.
