Clustering
C++20 header-only: DBSCAN, HDBSCAN, k-means.
Loading...
Searching...
No Matches
centroid_shift.h File Reference
#include <cstddef>
#include <type_traits>
#include "clustering/always_assert.h"
#include "clustering/math/pairwise.h"
#include "clustering/math/thread.h"
#include "clustering/ndarray.h"
Include dependency graph for centroid_shift.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  clustering
namespace  clustering::math

Functions

template<class T>
void clustering::math::centroidShift (const NDArray< T, 2, Layout::Contig > &cOld, const NDArray< T, 2, Layout::Contig > &cNew, NDArray< T, 1 > &outShiftSq, Pool pool)
 Per-row squared shift between two centroid matrices of identical shape.