Traits class governing how to average up several T_ELEM
types into a T
type in the most efficient way (which is usually not with the naive addition operator)
More...
#include <StochasticTrajectory.h>
Public Types | |
typedef Ensemble< T, T_ELEM > | EnsembleType |
typedef EnsembleType::Elem | Elem |
typedef EnsembleType::Impl | Impl |
typedef EnsembleType::ToBeAveragedType | ToBeAveragedType |
Static Public Member Functions | |
static const ToBeAveragedType | averageInRange (typename Impl::const_iterator, typename Impl::const_iterator, const EnsembleType &) |
Traits class governing how to average up several T_ELEM
types into a T
type in the most efficient way (which is usually not with the naive addition operator)
T | the to-be-averaged type of the ensemble |
T_ELEM | the to-be-averaged type of the underlying Averageable instances |
A generic (naive) implementation is provided for the traits class right away. It assumes that T_ELEM
is additive and dividable by a double, and that it can be converted into a T
.
Definition at line 205 of file StochasticTrajectory.h.