LimitIntegral

template<fgc4::utils::NumericScalar T, size_t time_window_length = 16>
class LimitIntegral : public vslib::Component

Public Functions

inline LimitIntegral(std::string_view name, Component &parent)

Constructor of the LimitIntegral Component, initializes limit and window length Parameters.

Parameters:
inline bool limit(const T input) noexcept

Checks for the cumulative (integral) limit.

Parameters:

input – Numerical input to be checked

Returns:

True if the provided value does not violate the integral limit threshold, false otherwise

inline void reset() noexcept

Resets the component to the initial state of buffers, buffer pointers, and the cumulative value.

Public Members

Parameter<T> integral_limit

Cumulative limit.

Parameter<size_t> integral_limit_window_length

Length of the time window for the cumulative calculation.