Time-based history with linear interpolation.
size_t GetSize() const noexcept
Get the number of stored samples.
ValueType GetValueByTime(const Quantity< Second > time) const
Get the value at the specified time (linear interpolation)
bool IsEmpty() const noexcept
Check if the history is empty.
std::vector< ValueType > history_
void Register(T value)
Append a value to the history.
ValueType GetValueByOffset(const Quantity< Second > offset) const
Get the value at a certain time offset before the current time.