private void clean(Instances cleanAgainst, Instances toClean, boolean onlyLast) {
		if (cleanAgainst.numInstances() > this.kOption.getValue() && toClean.numInstances() > 0){
			if (onlyLast){
				cleanSingle(cleanAgainst, (cleanAgainst.numInstances()-1), toClean);
			}else{
				for (int i=0; i < cleanAgainst.numInstances(); i++){
					cleanSingle(cleanAgainst, i, toClean);
				}
			}
		}
	}
private void clean ( Instances cleanAgainst , Instances toClean , boolean onlyLast ) { if ( cleanAgainst . numInstances ( ) > this . kOption . getValue ( ) && toClean . numInstances ( ) > 0 ) { if ( onlyLast ) { cleanSingle ( cleanAgainst , ( cleanAgainst . numInstances ( ) - 1 ) , toClean ) ; } else { for ( int i = 0 ; i < cleanAgainst . numInstances ( ) ; i ++ ) { cleanSingle ( cleanAgainst , i , toClean ) ; } } } }
Removes distance-based all instances from the input samples that contradict those in the STM.