Implementation of an algorithm to calculate the effective sample size (ESS). More...
#include <beluga/type_traits/particle_traits.hpp>
#include <beluga/views/particles.hpp>
#include <range/v3/numeric/accumulate.hpp>
Go to the source code of this file.
Namespaces | |
beluga | |
The main Beluga namespace. | |
Functions | |
template<class Range , std::enable_if_t<!is_particle_range_v< Range >, int > = 0> | |
auto | beluga::effective_sample_size (Range &&range) |
Calculate the ESS of a given a range of weights. More... | |
Implementation of an algorithm to calculate the effective sample size (ESS).
Definition in file effective_sample_size.hpp.