Go to the documentation of this file.
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)));
int m_endIndex
Definition: LinearWindowAverager.h:81
int m_beginIndex
Definition: LinearWindowAverager.h:80
void calculateAverageVals()
Definition: LinearWindowAverager.h:57
int m_skipSize
Definition: LinearWindowAverager.h:82
LinearWindowAverager(const ValueVector &valVector, int halfWindowSize, int beginIndex, int endIndex, int skipSize)
Definition: LinearWindowAverager.h:31
Definition: LinearWindowAverager.h:27
const ValueVector & getAveragedVector()
Definition: LinearWindowAverager.h:48
int m_halfWindowSize
Definition: LinearWindowAverager.h:79
ValueVector m_valVector
Definition: LinearWindowAverager.h:77
Definition: CheckPointable.cpp:17
std::vector< double > ValueVector
Definition: LinearWindowAverager.h:29
ValueVector m_avValVector
Definition: LinearWindowAverager.h:78