Home
last modified time | relevance | path

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

/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/intensity_processor/src/
H A Dintensity_processor.cpp35 if ((data.empty()) || (hopLength < 1)) { in GetRMS()
42 paddingData = audioUtil.PadData(data, hopLength); in GetRMS()
47 size_t frmN = paddingDataSize / static_cast<size_t>(hopLength); in GetRMS()
50 int32_t index = i * hopLength; in GetRMS()
51 for (int32_t j = 0; j < hopLength; ++j, ++index) { in GetRMS()
54 rmseEnvelop.push_back(sqrt(accum / hopLength)); in GetRMS()
73 i += hopLength; in EnergyEnvelop()
112 for (size_t i = 0; (i + hopLength) < dataSize;) { in VolumeInLinary()
113 oneFrmData.assign(it + i, it + i + hopLength); in VolumeInLinary()
116 i += hopLength; in VolumeInLinary()
[all …]
/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/intensity_processor/include/
H A Dintensity_processor.h42 std::vector<double> GetRMS(const std::vector<double> &data, int32_t hopLength, bool centerFlag);
53 …td::vector<double> EnergyEnvelop(const std::vector<double> &data, int32_t nFft, int32_t hopLength);
76 std::vector<double> VolumeInLinary(const std::vector<double> &data, int32_t hopLength);
87 std::vector<double> VolumeInDB(const std::vector<double> &data, int32_t hopLength);
/ohos5.0/base/sensors/sensor/vibration_convert/core/utils/src/
H A Daudio_utils.cpp55 std::vector<double> AudioUtils::PadData(const std::vector<double> &data, int32_t hopLength) in PadData() argument
59 paddingData.insert(paddingData.end(), hopLength / 2, 0); in PadData()
61 paddingData.insert(paddingData.end(), hopLength / 2, 0); in PadData()
H A Dutils.cpp239 …tor<double> ObtainAmplitudeEnvelop(const std::vector<double> &data, size_t count, size_t hopLength) in ObtainAmplitudeEnvelop() argument
258 j += hopLength; in ObtainAmplitudeEnvelop()
/ohos5.0/base/sensors/sensor/vibration_convert/core/utils/include/
H A Daudio_utils.h103 std::vector<double> PadData(const std::vector<double> &data, int32_t hopLength);
H A Dutils.h143 …or<double> ObtainAmplitudeEnvelop(const std::vector<double> &data, size_t count, size_t hopLength);
/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/include/
H A Dpeak_finder.h160 … int32_t GetPeakEnvelope(const std::vector<double> &data, int32_t samplingRate, int32_t hopLength,
/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/
H A Dpeak_finder.cpp506 …akFinder::GetPeakEnvelope(const std::vector<double> &data, int32_t samplingRate, int32_t hopLength, in GetPeakEnvelope() argument
510 if ((data.empty()) || (samplingRate == 0) || (hopLength == 0)) { in GetPeakEnvelope()
518 size_t maxN = static_cast<size_t>(hopLength); in GetPeakEnvelope()