A distance or divergence between matching rows; one-row inputs broadcast
Source:R/metrics.R
metric_distance.RdA distance or divergence between matching rows; one-row inputs broadcast
Usage
metric_distance(
reference,
compared,
metric = "nemd",
epsilon = NULL,
base = NULL,
bandwidth = NULL,
positions = NULL
)Arguments
- reference, compared
Distributions: cells, a matrix with one row per distribution, or a vector.
- metric
A name from
metric_names().- 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, ...