Struct default_weighted_mean_fn

Struct Documentation

struct default_weighted_mean_fn

Templated functor to compute weighted mean for arbitrary. Assumes weights and vector’s scalar types match.

Public Functions

template<typename T, typename Scalar = typename T::Scalar>
inline T operator()(const std::vector<T> &samples, const std::vector<Scalar> &weights) const

Operator() overload for eigen types.