MATLAB library for performing spectral ratio refinement