Computes distance between row i and rows i + 1, i + 2, ..., n where n is the total number of rows

distIndex(i, mat, method, size)

Arguments

i

row index

mat

numeric matrix

method

method is passed to dist

size

Number of rows of mat

Value

(numeric vector) Vector of n - i distances where n is the total number of rows