View source: R/matching_distance.R
| build_cost_matrix | R Documentation |
This is the main entry point for distance computation.
build_cost_matrix(
left,
right,
vars,
distance = "euclidean",
weights = NULL,
scale = FALSE,
sigma = NULL,
memory_mode = "auto",
caller_supports_lazy = TRUE,
caller_supports_implicit = caller_supports_lazy
)
memory_mode |
One of "auto" (default), "dense", "lazy" or "implicit".
"auto" warns (or, when the caller supports it, switches) when the dense
matrix would consume a large fraction of free system RAM. |
caller_supports_lazy |
Whether the calling code path can actually
consume a |
caller_supports_implicit |
Whether the calling path's design is one the edge-generation loop solves. Defaults to whatever the caller says about lazy, since the loop reads the same specification. |
Numeric matrix of distances with optional scaling/weights applied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.