loss1.3 function

General loss criterion