14 #ifndef ESYS_LSMLINEARWINDOWAVERAGER_H
15 #define ESYS_LSMLINEARWINDOWAVERAGER_H
32 const ValueVector &valVector,
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)));
int m_beginIndex
Definition: LinearWindowAverager.h:80
const ValueVector & getAveragedVector()
Definition: LinearWindowAverager.h:48
int m_skipSize
Definition: LinearWindowAverager.h:82
ValueVector m_valVector
Definition: LinearWindowAverager.h:77
Definition: CheckPointable.cpp:16
int m_halfWindowSize
Definition: LinearWindowAverager.h:79
void calculateAverageVals()
Definition: LinearWindowAverager.h:57
std::vector< double > ValueVector
Definition: LinearWindowAverager.h:29
int m_endIndex
Definition: LinearWindowAverager.h:81
ValueVector m_avValVector
Definition: LinearWindowAverager.h:78
LinearWindowAverager(const ValueVector &valVector, int halfWindowSize, int beginIndex, int endIndex, int skipSize)
Definition: LinearWindowAverager.h:31
Definition: LinearWindowAverager.h:26