50 auto itPrev = std::prev(it);
53 diff = (it->second->getFloat() - itPrev->second->getFloat());
57 diff = (it->second->getDouble() - itPrev->second->getDouble());
61 diff = (it->second->getInt() - itPrev->second->getInt());
65 diff = (it->second->getLong() - itPrev->second->getLong());
67 double deltaT = it->first - itPrev->first;
70 deriv += diff / (deltaT * 0.000001);
81 return new Variant((
float)deriv);
93 return new Variant((
long)deriv);
101 ParameterTypeList result;
111 return StringFloatDictionary {{
"minSampleTimeDelta", minSampleTimeDelta}, {
"windowFilterSize", windowFilterSize}};
116 auto it = newValues.find(
"minSampleTimeDelta");
117 if (it != newValues.end())
119 minSampleTimeDelta = it->second;
121 it = newValues.find(
"windowFilterSize");
122 if (it != newValues.end())
124 windowFilterSize = it->second;