| compare_drawdowns | R Documentation |
Minimizes the fraction of unequal cells over allowed transformations of y and cyclic shifts. Primitive repeats are tiled to the least common multiple of each axis, so differently sized repeats can be compared without resizing. Ties use the first transformation, then smallest row and column offsets. Both matrices must use the same pick/end and zero/one conventions.
compare_drawdowns(
x,
y,
reflect = FALSE,
transpose = FALSE,
invert = FALSE,
max_work = 5e+07
)
x, y |
Binary drawdowns. |
reflect, transpose, invert |
Transformation flags; see [canonical_drawdown()]. |
max_work |
Cell-comparison budget; see [canonical_drawdown()]. |
A list with distance, similarity, equivalent (exact zero distance), transformation, offsets applied after transformation and repeat reduction, domain dimensions, and aligned matrices x and y on that domain.
a <- matrix(c(1, 0, 0, 1), 2)
compare_drawdowns(a, shift_drawdown(a, 1))$equivalent
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.