downsample {LOMAR}R Documentation

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)

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

Value

a point set


[Package LOMAR version 0.4.0 Index]