%%%%%%%%%%%%%%%%%%%%%%%%
%Calculates delta ML   %
%%%%%%%%%%%%%%%%%%%%%%%%
function ML = delta_ml(w_array)

ML= min(diff(sort(w_array)));