EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
Loading...
Searching...
No Matches
Emrys::TimeTraits< Time > Struct Template Reference

How a time type converts to a scalar, as a static member template toScalar<Scalar>(t) returning Scalar, in the unit of the parameters of the models it steps. More...

#include <EmrysFilter/Core/Time.h>

Detailed Description

template<typename Time>
struct Emrys::TimeTraits< Time >

How a time type converts to a scalar, as a static member template toScalar<Scalar>(t) returning Scalar, in the unit of the parameters of the models it steps.

Empty for a type that is not a time step; specialize it to make one.

template <>
struct Emrys::TimeTraits<Ticks> { // milliseconds, as seconds
template <typename Scalar>
static Scalar toScalar(Ticks t) { return Scalar(t.value) / Scalar(1000); }
};
How a time type converts to a scalar, as a static member template toScalar<Scalar>(t) returning Scala...
Definition Time.h:67

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