public static final double labelCardinality(Instances D){
  return labelCardinality(D,D.classIndex());
}

public static final double labelCardinality ( Instances D ) { return labelCardinality ( D , D . classIndex ( ) ) ; }
labelcardinality - return the label cardinality of dataset d .
