diss.index: Convert Indices from Distance Object to Matrix

Description Usage Arguments See Also Examples

View source: R/diss_index.R

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)));
  }

dissUtils documentation built on May 29, 2017, 9:42 a.m.

Search within the dissUtils package
Search all R packages, documentation and source code