question: public double distance ( Instance first , Instance second , PerformanceStats stats ) { return Math . sqrt ( distance ( first , second , Double . POSITIVE_INFINITY , stats ) ) ; }
target:  Calculates the distance (or similarity) between two instances. Need to pass this returned distance later on to postprocess method to set it on correct scale. <br/> P.S.: Please don't mix the use of this function with distance(Instance first, Instance second), as that already does post processing. Please consider passing Double.POSITIVE_INFINITY as the cutOffValue to this function and then later on do the post processing on all the distances.