Source: http://repository.bilkent.edu.tr/bitstream/11693/49275/1/EVIM_a_software_package_for_extreme_value_analysis_in_MATLAB.pdf