nearestcluster

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 3.9, Creation date: 2017-06-18, Last change: 2025-09-14

returns a reduced list of points and a cluster list

Description

Finds cluster of points with a minimal distance of lim;
draws a result only for [nx2 and nx3]


See Also: nearestpair , connectofmat , nearestpair , VLnearestNeighbor

Example Illustration

 missing image of nearestcluster(RL,lim)

Syntax

[RLn,Rn]=nearestcluster(RL,lim)

Input Parameter

RL: Point list
lim: maximum distance for clustering

Output Parameter

RLn: Points list with replaced mean values
Rn: Cluster matrix related to RL

Examples


[a,b]=nearestcluster(rand(5,2),0.25)
nearestcluster(rand(500,2),0.05);




Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21