shift_to_next_alignment: Minimum shift to next alignment of two location vectors

View source: R/emd.R

shift_to_next_alignmentR Documentation

Minimum shift to next alignment of two location vectors

Description

Calculate minimum right shift of first location vector to make any pair of locations from the two vectors equal

Usage

shift_to_next_alignment(x1, x2, distance_matrix_prev = NULL, shift_prev = NULL)

Arguments

x1

First location vector. This vector is being shifted rightwards

x2

Second location vector. This vector is remaining unchanged.

Value

Minimum non-zero right-shift to apply to x1 to align at least one element of x1 with at least one element of x2


alan-turing-institute/network-comparison documentation built on June 7, 2022, 10:41 p.m.