Implementation detail for a reweight range adaptor object. More...
#include <reweight.hpp>
Public Member Functions | |
template<class ExecutionPolicy , class Range , class Model , std::enable_if_t< std::is_execution_policy_v< std::decay_t< ExecutionPolicy >>, int > = 0, std::enable_if_t< ranges::range< Range >, int > = 0> | |
constexpr auto | operator() (ExecutionPolicy &&policy, Range &range, Model model) const -> Range & |
Overload that implements the reweight algorithm. More... | |
template<class ExecutionPolicy , class Model , std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0> | |
constexpr auto | operator() (ExecutionPolicy policy, Model model) const |
Overload that returns a view closure to compose with other views. More... | |
template<class Range , class Model , class ExecutionPolicy , std::enable_if_t< ranges::range< Range >, int > = 0, std::enable_if_t< std::is_execution_policy_v< ExecutionPolicy >, int > = 0> | |
constexpr auto | operator() (Range &&range, Model model, ExecutionPolicy policy) const -> Range & |
Overload that re-orders arguments from a view closure. More... | |
Implementation detail for a reweight range adaptor object.
Definition at line 38 of file reweight.hpp.
|
inlineconstexpr |
Overload that implements the reweight algorithm.
ExecutionPolicy | An execution policy. |
Range | An input range of particles. |
Model | A callable that can compute the importance weight given a particle state. |
policy | The execution policy to use. |
range | An existing range of particles to apply this action to. |
model | A callable instance to compute the weights given the particle states. |
For each particle, we multiply the current weight by the new importance weight to accumulate information from sensor updates.
Definition at line 57 of file reweight.hpp.
|
inlineconstexpr |
Overload that returns a view closure to compose with other views.
Definition at line 84 of file reweight.hpp.
|
inlineconstexpr |
Overload that re-orders arguments from a view closure.
Definition at line 78 of file reweight.hpp.