public static double L_LogLoss(double y,double rpred,double C){
  double ans=Math.min(Utils.eq(y,rpred) ? 0.0 : -((y * Math.log(rpred)) + ((1.0 - y) * Math.log(1.0 - rpred))),C);
  return (Double.isNaN(ans) ? 0.0 : ans);
}

public static double L_LogLoss ( double y , double rpred , double C ) { double ans = Math . min ( Utils . eq ( y , rpred ) ? 0.0 : - ( ( y * Math . log ( rpred ) ) + ( ( 1.0 - y ) * Math . log ( 1.0 - rpred ) ) ) , C ) ; return ( Double . isNaN ( ans ) ? 0.0 : ans ) ; }
l_logloss - the log loss between real - valued confidence rpred and true prediction y .
