Skip to contents

The 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 NULL for 2.

bandwidth

Gaussian kernel bandwidth for MMD, or NULL.

positions

Option positions on the answer scale, or NULL for 0, 1, 2, ...

Value

A numeric vector or a symmetric matrix.