public static double subsetDL(double t,double k,double p){
  double rt=Utils.gr(p,0.0) ? (-k * Utils.log2(p)) : 0.0;
  rt-=(t - k) * Utils.log2(1 - p);
  return rt;
}

public static double subsetDL ( double t , double k , double p ) { double rt = Utils . gr ( p , 0.0 ) ? ( - k * Utils . log2 ( p ) ) : 0.0 ; rt -= ( t - k ) * Utils . log2 ( 1 - p ) ; return rt ; }
subset description length : < br > s ( t , k , p ) = - k * log2 ( p ) - ( n - k ) log2 ( 1 - p ) details see quilan : " mdl and categorical theories ( continued ) " , ml95
