14 #ifndef ESYS_LSMLINEARWINDOWAVERAGER_H
15 #define ESYS_LSMLINEARWINDOWAVERAGER_H
43 m_endIndex(min(endIndex, static_cast<int>(valVector.size()))),
64 double weightSum = 0.0;
65 const int endJ = min(static_cast<int>(
m_valVector.size()), i + halfWindowSize+1);
66 for (
int j = max(0, i - halfWindowSize); j < endJ; j++)
68 const double weight = (1.0 - (
static_cast<double>(abs(i-j))/(halfWindowSize+1)));