Home
last modified time | relevance | path

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

/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/
H A Dpeak_finder.cpp73 std::vector<int32_t> peakAmp; in GetVoiceFlag() local
78 peakAmp.push_back(fabs(data[peaks[i]])); in GetVoiceFlag()
80 lowerAmp = *max_element(peakAmp.begin(), peakAmp.end()) * INTERSITY_BOUNDARY_POINT; in GetVoiceFlag()
81 if (peakAmp.size() > 2) { in GetVoiceFlag()
82 lowerAmp = peakAmp[static_cast<int32_t>(peakAmp.size() * INTERSITY_NUMBER_BOUNDARY_POINT)]; in GetVoiceFlag()