Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
regulate IIR gain for rapid but smooth tracking of a function. More...
Public Member Functions | |
Controller (double initialValue) | |
int | ComputeBias (double smoothedValue, double value) |
Private Member Functions | |
bool | WasOnSameSide (double value) const |
bool | WasSpike () const |
Static Private Member Functions | |
static double | Change (double from, double to) |
Private Attributes | |
double | m_history [m_historySize] |
int | m_timesOnSameSide |
Static Private Attributes | |
static const size_t | m_historySize = 3 |
regulate IIR gain for rapid but smooth tracking of a function.
this is similar in principle to a PID controller but is tuned for the special case of FPS values to simplify stabilizing the filter.
|
inline |
|
inlinestaticprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
private |
|
staticprivate |
|
private |