debug_distance_matrix | R Documentation |
The debug_distance_matrix() function is used for troubleshooting.
debug_distance_matrix(m)
m |
Distance Matrix which is to be validate |
If distance matrix is to be used by to find points, it has to be well defined. This function checks if matrix is square, if doesn't include NA or negative values. If those conditions are not fulfilled proper information is printed.
Additionally metric rules are checked:
d(x,y) = 0 <=> x = y
d(x,y) = d(y,x)
d(x,y) <= d(x,z) + d(y,z)
If some rule is not fulfilled indexes of points/distance which cause problems are printed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.