Typedef beluga::RollingWindow

Typedef Documentation

template<typename T, std::size_t N>
using beluga::RollingWindow = CircularArray<T, N, CircularArrayFeatureFlags::kRolloverOnWrite | CircularArrayFeatureFlags::kExtrapolateOnRead | CircularArrayFeatureFlags::kLayoutReversal>

Convenient type alias for a circular array that behaves like a rolling window.

A rolling window automatically overwrites older values, it extrapolates its last value to always seem full, and it is accessed by the front.