kanjidistmat: Compute distance matrix based on hierarchical optimal transport for lists of kanjivec objects
Description
Individual distances are based on kanjidist.
Usage
kanjidistmat(
klist,
klist2 = NULL,
compo_seg_depth = 3,
p = 1,
C = 0.2,
approx = c("grid", "pc", "pcweighted"),
type = c("rtt", "unbalanced", "balanced"),
size = 48,
lwd = 2.5,
density = 30,
verbose = FALSE,
minor_warnings = FALSE
)
Value
A matrix of dimension length(klist) x length(klist2) having
as its \((i,j)\)-th entry the distance between klist[[i]] and
klist2[[j]]. If klist2 is not provided it is assumed to be equal to
klist, but computation is more efficient as only the upper triangular part
is computed and then symmetrized with diagonal zero.
Arguments
klist
a list of kanjimat objects.
klist2
an optional second list of kanjimat objects.
compo_seg_depth
integer \(\geq 1\). Specifies for all kanji the
deepest level included for component matching. If 1, only the kanji itself is used.