: [indx, indy, dist] = gsp_nn_distanz( X1 ); [indx, indy, dist] = gsp_nn_distanz( X1, X2 ); [indx, indy, dist] = gsp_nn_distanz( X1, X2, param ); [indx, indy, dist, Xo1, Xo2, epsilon] = gsp_nn_distanz(...)
X1 | Input points 1 |
X2 | Input points 2 |
param | Structure of optional parameters |
indx | Indices over x |
indy | Indices over y |
dist | Distances |
Xo1 | Points 1 after rescaling |
Xo2 | Points 2 after rescaling |
epsilon | Radius of the ball (if the ball is used!) |
NN | Indices of closest neighbours of each node |
Dist | Sorted distances for each node |
This function computes the nearest neighboors of Xin.