https://au.mathworks.com/help/stats/gevlike.html
gevlike - Generalized extreme value negative loglikelihood - MATLAB
This MATLAB function returns the generalized extreme value (GEV) negative loglikelihood of the distribution parameters (params) given the sample data (x).
extreme valuegeneralizednegativematlab