checks if all the vectors have identical label values concode_field_sep List<Instance> instances concode_elem_sep Dataset dataset concode_field_sep Data bagging concode_elem_sep Data bagging concode_elem_sep double[] values concode_elem_sep boolean isEmpty concode_elem_sep boolean isIdentical concode_elem_sep Dataset getDataset concode_elem_sep boolean contains concode_elem_sep int size concode_elem_sep int hashCode concode_elem_sep Instance get concode_elem_sep boolean equals concode_elem_sep double[] extractLabels concode_elem_sep void countLabels concode_elem_sep Data clone concode_elem_sep Data rsplit concode_elem_sep int majorityLabel concode_elem_sep Data subset
boolean function ( ) { if ( isEmpty ( ) ) { return true ; } double loc0 = dataset . getLabel ( get ( 0 ) ) ; for ( int loc1 = 1 ; loc1 < size ( ) ; loc1 ++ ) { if ( dataset . getLabel ( get ( loc1 ) ) != loc0 ) { return false ; } } return true ; }