getnns: Nearest neighbor of individuals based on a dissimilarity...

Description Usage Arguments Value

View source: R/getnns.R

Description

Get nearest neighbor of individuals and the dissimilarity between individuals and his nearest neighbor

Usage

1
getnns(diss, flag)

Arguments

diss

a dissimilarity matrix

flag

a vector of size n which indicates if we want to compute nearest neighbor of individual i (flag[i]=1) or not (flag[i]=0)

Value

nn

a vector of size n which indicates who is the nearest neighbor

nndiss

value of the dissimilarity between individuals an their nearest neighbors


AmauryLabenne/ClustGeo documentation built on May 28, 2017, 3:52 p.m.