protected override double CalcNeighbourWeight(Vector u, Vector neighbour, int neighbourIndex)
 {
     return(kernelFunc(Euclid.Dist(u, neighbour) / h));
 }
Esempio n. 2
0
 public static Func <Vector, Vector, int, double> DistanceWeight( )
 {
     // Because we maximize weight of class, nearest object must have the biggest weight
     return((u, v, i) => 1.0 / Euclid.Dist(u, v));
 }