Home
last modified time | relevance | path

Searched refs:wholeEnvelop (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/
H A Dpeak_finder.cpp267 MountainPosition wholeEnvelop; in FilterSecondaryPeak() local
270 if (wholeEnvelop.firstPos.empty()) { in FilterSecondaryPeak()
274 int32_t lastFirstPos = wholeEnvelop.firstPos[0]; in FilterSecondaryPeak()
275 int32_t lastEndPos = wholeEnvelop.lastPos[0]; in FilterSecondaryPeak()
280 while (i < wholeEnvelop.peakPos.size()) { in FilterSecondaryPeak()
282 if ((wholeEnvelop.firstPos[i] == lastFirstPos) && (wholeEnvelop.lastPos[i] == lastEndPos)) { in FilterSecondaryPeak()
284 if (i != (wholeEnvelop.peakPos.size() - 1)) { in FilterSecondaryPeak()
290 lastFirstPos = wholeEnvelop.firstPos[i]; in FilterSecondaryPeak()
291 lastEndPos = wholeEnvelop.lastPos[i]; in FilterSecondaryPeak()
296 if (frontIndex == (wholeEnvelop.peakPos.size() - 1)) { in FilterSecondaryPeak()
[all …]