Skip to contents

Sample n coordinates among existing points.

Usage

coo_sample(coo, n)

Arguments

coo

either a matrix of (x; y) coordinates or an Out or an Opn object.

n

integer, the number fo points to sample.

Value

a matrix of (x; y) coordinates, or an Out or an Opn object.

Details

For the Out an Opn methods (pointless for Ldk), in an $ldk component is defined, it is changed accordingly by multiplying the ids by n over the number of coordinates.

Examples

b <- bot[1]
stack(bot)

stack(coo_sample(bot, 24))

coo_plot(b)

coo_plot(coo_sample(b, 24))