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

Go to the source code of this file.

Namespaces

namespace  ps
 

Functions

template<typename T , std::size_t N>
std::vector< Point< T, N > > ps::random_rejection_filter (const std::vector< Point< T, N > > &points, std::size_t target_count)
 Randomly retains a fixed number of points from the input set.
 
template<typename T , std::size_t N>
std::vector< Point< T, N > > ps::random_rejection_filter (const std::vector< Point< T, N > > &points, float keep_fraction)
 Randomly retains a fraction of the input points.