32 this->filterSizeInMs = filterSizeInMs;
33 this->windowFilterSize = windowSize;
38 std::unique_lock lock(historyMutex);
40 if (dataHistory.size() == 0)
49 return new Variant(calcGaussianFilteredValue<float>(dataHistory));
53 return new Variant(calcGaussianFilteredValue<double>(dataHistory));
57 return new Variant(calcGaussianFilteredValue<int>(dataHistory));
61 return new Variant(calcGaussianFilteredValue<long>(dataHistory));
69 ParameterTypeList result;
81 props[
"filterSizeInMs"] = filterSizeInMs;
87 auto it = newValues.find(
"filterSizeInMs");
88 if (it != newValues.end())
90 filterSizeInMs = it->second;