View source: R/search_neighbors_helpers.R
diss_to_neighbors | R Documentation |
internal
diss_to_neighbors(
diss_matrix,
k = NULL,
k_diss = NULL,
k_range = NULL,
spike = NULL,
return_dissimilarity = FALSE,
skip_first = FALSE
)
diss_matrix |
a matrix representing the dissimilarities between
observations in a matrix |
k |
an integer value indicating the k-nearest neighbors of each
observation in |
k_diss |
an integer value indicating a dissimilarity treshold.
For each observation in |
k_range |
an integer vector of length 2 which specifies the minimum
(first value) and the maximum (second value) number of neighbors to be
retained when the |
spike |
a vector of integers indicating what observations in |
return_dissimilarity |
logical indicating if the input dissimilarity must be mirroed in the output. |
skip_first |
a logical indicating whether to skip the first neighbor or
not. Default is |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.