public static void clearLabels(Instance x){
  int L=x.classIndex();
  for (int j=0; j < L; j++)   x.setValue(j,0.0);
}

public static void clearLabels ( Instance x ) { int L = x . classIndex ( ) ; for ( int j = 0 ; j < L ; j ++ ) x . setValue ( j , 0.0 ) ; }
clear labels - - set the value of all label attributes to 0 . 0
