|
EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
|
Dimension_ coordinates that wrap with a common period, such as angles or DFT bins. More...
#include <EmrysFilter/Spaces/Coordinates.h>
Public Member Functions | |
| Periodic (Eigen::Index n) | |
| n coordinates of a resizable Periodic. | |
| template<typename Derived> | |
| void | normalize (Eigen::MatrixBase< Derived > const &block) const |
| Wraps every value in block into [lower(), upper()), writing through the const reference (see writable()). | |
| auto | difference () const |
| The Periodic on [-period()/2, period()/2), with the same size. | |
Static Public Member Functions | |
| static consteval double | lower () |
| static consteval double | upper () |
| static consteval double | period () |
Static Public Attributes | |
| static constexpr int | FixedValueDimension |
| the fixed coordinates (see Space) | |
| static constexpr int | ValueDimensionStep |
| one coordinate per element if resizable | |
| static constexpr int | MaxValueDimension = MaxDimension_ |
| the largest valid size, or Eigen::Dynamic | |
Friends | |
| bool | operator== (Periodic const &, Periodic const &)=default |
| Equal when every stored parameter and size is; a fixed-size Periodic is always equal. | |
Dimension_ coordinates that wrap with a common period, such as angles or DFT bins.
Values are kept in [lower(), upper()) and differences in [-period()/2, period()/2): the difference space is the Periodic on that interval, so RadiansPi is its own and Degrees360's is Degrees180. The interval is a template argument, so a fixed-size Periodic is an empty type: struct Bin : Periodic<{.lower = 0.0, .upper = 256.0}> {};. The interval has no default [coordinate-parameters]. The common angles are named RadiansPi, Radians2Pi, Degrees180, and Degrees360.
A Gaussian on a Periodic coordinate is a Gaussian in its tangent space, valid while its standard deviation is small against the period; a spread on the order of the period is better held by particles, a grid, or a mixture [tangent-gaussians].
|
inlinestaticnodiscardconsteval |
|
inlinestaticnodiscardconsteval |
|
inlinestaticnodiscardconsteval |
|
staticconstexpr |
the fixed coordinates (see Space)
|
staticconstexpr |
one coordinate per element if resizable