MCPcopy Create free account
hub / github.com/audeering/opensmile / compute

Method compute

src/functionals/functionalModulation.cpp:351–356  ·  view source on GitHub ↗

allowWinSmaller = false : If window gets smaller than N/2, everything will be re-allocated and an FFT of N/2 (or smaller) will be performed .. = true: The smaller input window will only be zero-padded and the full fft is performed

Source from the content-addressed store, hash-verified

349// allowWinSmaller = false : If window gets smaller than N/2, everything will be re-allocated and an FFT of N/2 (or smaller) will be performed
350// .. = true: The smaller input window will only be zero-padded and the full fft is performed
351void cSmileUtilMappedMagnitudeSpectrum::compute(
352 const FLOAT_DMEM *in, long Nin, bool allowWinSmaller = false)
353{
354 const FLOAT_DMEM *mags = fft_->getMagnitudes(in, Nin, allowWinSmaller);
355 mapMagnitudesToModSpecBins(mags, fft_->getNmagnitudes());
356}
357
358const FLOAT_DMEM * cSmileUtilMappedMagnitudeSpectrum::getModSpec()
359{

Callers 2

computeModSpecSTFTavgMethod · 0.80
processMethod · 0.80

Calls 2

getMagnitudesMethod · 0.80
getNmagnitudesMethod · 0.80

Tested by

no test coverage detected