@Override public double distance(Instance first,Instance second,PerformanceStats stats){
  return Math.pow(distance(first,second,Double.POSITIVE_INFINITY,stats),1 / m_Order);
}

@ Override public double distance ( Instance first , Instance second , PerformanceStats stats ) { return Math . pow ( distance ( first , second , Double . POSITIVE_INFINITY , stats ) , 1 / m_Order ) ; }
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 .
