Home
last modified time | relevance | path

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

/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/
H A Dpeak_finder.cpp217 if (peaks.empty() || peaks.size() <= 1) { in PeakFilterMinRange()
218 return peaks; in PeakFilterMinRange()
221 if (fabs(peaks[i] - peaks[i + 1]) < minSampleCount) { in PeakFilterMinRange()
224 return peaks; in PeakFilterMinRange()
226 if (data[peaks[i]] >= data[peaks[i + 1]]) { in PeakFilterMinRange()
228 peaks.erase(it); in PeakFilterMinRange()
236 return peaks; in PeakFilterMinRange()
454 peaks.push_back(0); in DetectPeak()
462 return peaks; in DetectPeak()
477 return peaks; in DetectPeak()
[all …]
/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/include/
H A Dpeak_finder.h141 const std::vector<int32_t> &peaks, double lowerAmp);
142 …void GetEachIndependentEnvelope(const std::vector<double> &data, const std::vector<int32_t> &peaks,
147 std::vector<int32_t> &peaks, int32_t minSampleCount);
149 const std::vector<int32_t> &peaks, double removeRatio);
153 const std::vector<int32_t> &peaks, double lowerAmp);
159 … double GetLowestPeakValue(const std::vector<double> &envelope, const std::vector<int32_t> &peaks);
181 int32_t GetIsolatedEnvelope(const std::vector<double> &data, const std::vector<int32_t> &peaks,
/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/conversion/src/
H A Dconversion_fft.cpp264 auto peaks = new (std::nothrow) float[nAverages_]; in Init() local
265 CHKPR(peaks, Sensors::ERROR); in Init()
266 std::shared_ptr<float> peaksShared(peaks, std::default_delete<float[]>()); in Init()