PointSampler library (C++)
Loading...
Searching...
No Matches
metrics.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  ps
 

Functions

template<typename T , size_t N>
std::pair< std::vector< T >, std::vector< T > > ps::angle_distribution_neighbors (const std::vector< Point< T, N > > &points, T bin_width, size_t k_neighbors=8)
 Compute the angular distribution function (ADF) using nearest neighbors.
 
template<typename T , size_t N>
std::vector< Tps::distance_to_boundary (const std::vector< Point< T, N > > &points, const std::array< std::pair< T, T >, N > &axis_ranges)
 Compute the distance of each point to the domain boundary.
 
template<typename T , size_t N>
std::vector< Tps::first_neighbor_distance_squared (std::vector< Point< T, N > > &points)
 Computes the squared distance to the nearest neighbor for each point.
 
template<typename T , size_t N>
std::vector< Tps::local_density_knn (const std::vector< Point< T, N > > &points, size_t k=8)
 Compute local point density based on k-nearest neighbors in N dimensions.
 
template<typename T , size_t N>
std::vector< std::vector< size_t > > ps::nearest_neighbors_indices (const std::vector< Point< T, N > > &points, size_t k_neighbors=8)
 Finds the nearest neighbors for each point in a set.
 
template<typename T , size_t N>
std::pair< std::vector< T >, std::vector< T > > ps::radial_distribution (const std::vector< Point< T, N > > &points, const std::array< std::pair< T, T >, N > &axis_ranges, T bin_width, T max_distance)
 Compute the normalized radial distribution function g(r).