|
Clustering
C++20 header-only: DBSCAN, HDBSCAN, k-means.
|
Read-only view over the condensed-tree result. More...
#include <clustering/hdbscan.h>
Public Member Functions | |
| bool | empty () const noexcept |
True when the view holds no rows (no fit or reset called). | |
| std::size_t | size () const noexcept |
| Number of rows in the condensed tree. | |
Public Attributes | |
| std::span< const std::int32_t > | parent |
| Parent cluster id for each row of the condensed tree. | |
| std::span< const std::int32_t > | child |
| Child cluster or leaf point id for each row. | |
| std::span< const T > | lambda |
Lambda value (= 1 / distance) at which child detaches from parent. | |
| std::span< const std::int32_t > | childSize |
Size of the child subtree at its birth lambda. | |
Read-only view over the condensed-tree result.
The parallel-array layout matches the reference implementation – parent, child, lambda-at-merge, and child-size – so excess-of-mass and leaf extraction can walk it without auxiliary structures.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
| std::span<const std::int32_t> clustering::HDBSCAN< T, MstBackend >::CondensedTreeView::child |
| std::span<const std::int32_t> clustering::HDBSCAN< T, MstBackend >::CondensedTreeView::childSize |
| std::span<const T> clustering::HDBSCAN< T, MstBackend >::CondensedTreeView::lambda |
| std::span<const std::int32_t> clustering::HDBSCAN< T, MstBackend >::CondensedTreeView::parent |