Learn R Programming

LOMAR (version 0.5.0)

downsample: downsample

Description

Weighted downsampling of a point set. If point weights are not provided, they are computed to be proportional to the local density around each point.

Usage

downsample(point.set, n = NULL, k = NULL, weights = NULL)

Value

a point set

Arguments

point.set

a point set

n

integer, sample size.

k

integer, number of nearest neighbours to consider to estimate local density

weights

a vector of probability weights