Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

rTLS (version 0.2.5.6)

min_distance: Minimum Distance Between Points

Description

Estimate the minimum distance between points in a point cloud.

Usage

min_distance(
  cloud,
  distance = "euclidean",
  threads = 1L,
  verbose = FALSE,
  progress = FALSE,
  ...
)

Value

A numeric vector describing the minimum distance between points.

Arguments

cloud

A data.table with *XYZ* coordinates in the first three columns representing a point cloud.

distance

Type of distance to calculate. "euclidean" as default. Look hnsw_knn for more options.

threads

An integer specifying the number of threads to use for parallel processing. Experiment to see what works best for your data on your hardware.

verbose

If TRUE, log messages to the console.

progress

If TRUE, log a progress bar when verbose = TRUE. Tracking progress could cause a small overhead.

...

Arguments passed to hnsw_build and hnsw_search.

Author

J. Antonio Guzmán Q.

Examples

Run this code
data("pc_tree")

#Estimate the minimum distance of a sample o 100 points
min_distance(pc_tree)

Run the code above in your browser using DataLab