Public Member Functions | List of all members
beluga::views::detail::take_while_kld_fn Struct Reference

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...
 

Detailed Description

Implementation detail for a take_while_kld range adaptor object.

Definition at line 95 of file take_while_kld.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<class Hasher >
constexpr auto beluga::views::detail::take_while_kld_fn::operator() ( Hasher  hasher,
std::size_t  min,
std::size_t  max,
double  epsilon,
double  z = beluga::detail::kDefaultKldZ 
) const
inlineconstexpr

Overload that returns a view closure to compose with other views.

Template Parameters
HasherA callable object that can compute the spatial hash for a given state.
Parameters
hasherHasher instance used to compute the spatial hash for a given state.
minMinimum samples to take.
maxMaximum samples to take.
epsilonSee beluga::kld_condition() for details.
zSee beluga::kld_condition() for details.

Definition at line 149 of file take_while_kld.hpp.

◆ operator()() [2/2]

template<class Range , class Hasher , std::enable_if_t< ranges::range< Range >, int > = 0>
constexpr auto beluga::views::detail::take_while_kld_fn::operator() ( Range &&  range,
Hasher  hasher,
std::size_t  min,
std::size_t  max,
double  epsilon,
double  z = beluga::detail::kDefaultKldZ 
) const
inlineconstexpr

Overload that implements the take_while_kld algorithm.

Template Parameters
RangeAn input range with particle states.
HasherA callable object that can compute the spatial hash for a given state.
Parameters
rangeSource range from where to take elements.
hasherHasher instance used to compute the spatial hash for a given state.
minMinimum samples to take.
maxMaximum samples to take.
epsilonSee beluga::kld_condition() for details.
zSee 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.


The documentation for this struct was generated from the following file:


beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:54