downsample: downsample

View source: R/utils.R

downsampleR 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


LOMAR documentation built on March 18, 2022, 6:05 p.m.