- For computing “Rho” for each data point “(i") you need to calculate the sum of Gaussian-weighted distances between point “i” and all other data points. Which translates to the following in code –
- To compute “sigma” for each data point “(i)”, you need to find the minimum distance “(dij”) between point “i” and its nearest neighbour. Refer to the following code for the computation of the same.