Convert Indices from Distance Object to Matrix

Share:

Description

Given an index into a distance object of Size N, finds the coordinates of the same pairwise dissimilarity in an N by N matrix of dissimilarities

Usage

1
diss.index(index, N)

Arguments

index

the position of the item in the distance object

N

the Size of the distance object, the number of points it compares

See Also

dist

Examples

1
2
3
4
5
6
7
  ## The function is currently defined as
  function (index, N)
  {
    i <- floor(.raw.i(n, ix));

    return(c(i = i, j = .calc.j(i, n, ix)));
  }