zoom-HilbertCurve-method: Zoom original positions

Description Usage Arguments Details Value Author(s) Examples

Description

Zoom original positions

Usage

1
2
## S4 method for signature 'HilbertCurve'
zoom(object, x)

Arguments

object

A HilbertCurve-class object.

x

original positions.

Details

Internally, position are stored as integer values. To better map the data to the Hilbert curve, the original positions are zoomed according to the range and the level of Hilbert curve. E.g. if the curve visualizes data ranging from 1 to 2 but level of the curve is set to 4, the positions will be zoomed by ~x2000 so that values like 1.5, 1.555 can be mapped to the curve with more accuracy.

The function is used internally.

Value

A numeric vector which is zoomed positions.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
hc = HilbertCurve(1, 2)
zoom(hc, 1.5)

eilslabs/HilbertCurve documentation built on May 16, 2019, 1:23 a.m.