Implementation detail for a take_while_kld range adaptor object. More...
#include <take_while_kld.hpp>
Public Member Functions | |
template<class Hasher > | |
constexpr auto | operator() (Hasher hasher, std::size_t min, std::size_t max, double epsilon, double z=beluga::detail::kDefaultKldZ) const |
Overload that returns a view closure to compose with other views. More... | |
template<class Range , class Hasher , std::enable_if_t< ranges::range< Range >, int > = 0> | |
constexpr auto | operator() (Range &&range, Hasher hasher, std::size_t min, std::size_t max, double epsilon, double z=beluga::detail::kDefaultKldZ) const |
Overload that implements the take_while_kld algorithm. More... | |
Implementation detail for a take_while_kld range adaptor object.
Definition at line 95 of file take_while_kld.hpp.
|
inlineconstexpr |
Overload that returns a view closure to compose with other views.
Hasher | A callable object that can compute the spatial hash for a given state. |
hasher | Hasher instance used to compute the spatial hash for a given state. |
min | Minimum samples to take. |
max | Maximum samples to take. |
epsilon | See beluga::kld_condition() for details. |
z | See beluga::kld_condition() for details. |
Definition at line 149 of file take_while_kld.hpp.
|
inlineconstexpr |
Overload that implements the take_while_kld algorithm.
Range | An input range with particle states. |
Hasher | A callable object that can compute the spatial hash for a given state. |
range | Source range from where to take elements. |
hasher | Hasher instance used to compute the spatial hash for a given state. |
min | Minimum samples to take. |
max | Maximum samples to take. |
epsilon | See beluga::kld_condition() for details. |
z | See beluga::kld_condition() for details. |
The hasher will be called with range elements by default. If that is not possible, it will assume that the range contains particles and invoke the hasher with the state element of each particle.
Definition at line 112 of file take_while_kld.hpp.