Sylib
A C++ Library For V5
|
Generic Derivative Solver. More...
#include <math.hpp>
Public Member Functions | |
SympleDerivativeSolver () | |
Creates a generic derivative solver that outputs the dX/dT, where X is the input value provided, and T is the time in milliseconds since the last input. Keeps track of its own timer. More... | |
double | solveDerivative (double input) |
Calculates the slope between the last input value and the current input value. More... | |
double | getCurrentDerivative () const |
Gets the current stored output value without adding any new input. More... | |
double | getCurrentInputValue () const |
Gets the most recent input value. More... | |
Generic Derivative Solver.
sylib::SympleDerivativeSolver::SympleDerivativeSolver | ( | ) |
Creates a generic derivative solver that outputs the dX/dT, where X is the input value provided, and T is the time in milliseconds since the last input. Keeps track of its own timer.
double sylib::SympleDerivativeSolver::getCurrentDerivative | ( | ) | const |
Gets the current stored output value without adding any new input.
double sylib::SympleDerivativeSolver::getCurrentInputValue | ( | ) | const |
Gets the most recent input value.
double sylib::SympleDerivativeSolver::solveDerivative | ( | double | input | ) |
Calculates the slope between the last input value and the current input value.
input | The raw input value |