https://ch.mathworks.com/help/stats/gpstat.html
gpstat - Generalized Pareto mean and variance - MATLAB
This MATLAB function returns the mean for the generalized Pareto (GP) distribution with the shape parameter k, scale parameter sigma, and (threshold) location...
generalizedparetomeanvariancematlab