View source: R/matching_lazy.R
| lazy_pair_distances | R Documentation |
Given matched row/column index pairs (as produced by a solve), reports each pair's distance. The evaluation is the solver's own: the same C++ routine the lazy path priced the pair with is called on that pair, rather than the formula being written a second time here. Two implementations of one metric agree to rounding and not to the last bit, and the difference is visible where it matters most – a caliper set at a distance the package reported can exclude the pair it was read from.
lazy_pair_distances(spec, matched_rows, matched_cols)
This is cheap regardless of n_left/n_right: the number of matched pairs never exceeds min(n_left, n_right), so it never approaches the O(n*m) cost the lazy path exists to avoid.
Numeric vector of length length(matched_rows).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.