Learn R Programming

couplr (version 1.1.0)

.blocks_parallel: Shared parallel block matching implementation

Description

Core logic for both optimal (LAP) and greedy parallel block matching. Called by match_blocks_parallel() and greedy_blocks_parallel().

Usage

.blocks_parallel(
  blocks,
  left,
  right,
  left_ids,
  right_ids,
  block_col,
  vars,
  distance,
  weights,
  scale,
  max_distance,
  calipers,
  solver_fn,
  solver_params = list(),
  check_costs = FALSE,
  strict_no_pairs = FALSE,
  parallel = FALSE,
  replace = FALSE,
  ratio = 1L
)

Value

List with combined results from all blocks

Arguments

solver_fn

Solver function (assignment or greedy_matching)

solver_params

Named list of extra args passed to solver_fn

check_costs

If TRUE, passed through to .couples_single

strict_no_pairs

If TRUE, passed through to .couples_single