The metric between every pair of rows: the condensed vector of dist() or the square matrix
Source: R/metrics.R
metric_pairwise.RdThe metric between every pair of rows: the condensed vector of dist() or the square matrix
Usage
metric_pairwise(
cells,
metric = "nemd",
form = c("condensed", "square"),
epsilon = NULL,
base = NULL,
bandwidth = NULL,
positions = NULL
)Arguments
- cells
Cells or a matrix with one distribution per row.
- metric
A name from
metric_names().- form
"condensed"or"square".- epsilon
Smoothing added before Kullback-Leibler, or
NULL.- base
Logarithm base for KL and Jensen-Shannon, or
NULLfor 2.- bandwidth
Gaussian kernel bandwidth for MMD, or
NULL.- positions
Option positions on the answer scale, or
NULLfor 0, 1, 2, ...