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 D | intensity_processor.cpp | 35 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 D | intensity_processor.h | 42 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 D | audio_utils.cpp | 55 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 D | utils.cpp | 239 …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 D | audio_utils.h | 103 std::vector<double> PadData(const std::vector<double> &data, int32_t hopLength);
|
H A D | utils.h | 143 …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 D | peak_finder.h | 160 … 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 D | peak_finder.cpp | 506 …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()
|