Beispiel #1
0
 @Override
 public double eval(Vec a, Vec b) {
   if (a == b) // Same refrence means dist of 0, exp(0) = 1
   return 1;
   return Math.exp(-Math.pow(a.pNormDist(2, b), 2) * sigmaSqrd2Inv);
 }