get_rectangles_shuffle: Function that re-shuffles columns and rows of the integer...

Description Usage Arguments Value

Description

Function that re-shuffles columns and rows of the integer matrix to find the best partitionioning into a minimal set of rectangles.

Usage

1
get_rectangles_shuffle(m, target_value = 1, method = "single")

Arguments

m

Matrix of integer to partition.

target_value

Value to use as a marker. Defaults to "1". Any other value than that will be treated as the absense of marker.

method

Shuffling is done by means of hierarchical clustering. This parameter denotes the clustering algorithm to use. Defaults to 'single'.

Value

Returns list of rectangles. Each rectangle is a list defined by x0, x1, y0 and y1.


adamryczkowski/rectpartitions documentation built on May 16, 2019, 7:21 a.m.