is_distance_matrix_ok | R Documentation |
The 'is_distance_matrix_ok()' function is used to validate matrix.
is_distance_matrix_ok(m)
m |
Distance Matrix which is to be validate |
There are distance matrix conditions which should be fulfilled:
3 distance rules
d(x,y) = 0 <=> x = y
d(x,y) = d(y,x)
d(x,y) <= d(x,z) + d(y,z)
Additionally matrix should have the same number of rows and columns, and negative or NA values should not be included.
If all conditions are fulfilled TRUE is returned, else FALSE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.