jkjaer / fastF0Nls

C++ and MATLAB code for fast and accurate fundamental frequency estimation
BSD 3-Clause "New" or "Revised" License
98 stars 24 forks source link

where is the noise component in the matlab code? #1

Closed xxxkxin closed 3 years ago

xxxkxin commented 3 years ago

I can't find the noise component of the generated test signal. There is only a linear parameter “alpha” which is set randomly in test.m line24,line74,line110 . But it dosen't seem like a noise component. So how can i change the SNR and the noise type of test signal?

jkjaer commented 3 years ago

Hi,

There is no noise added since the purpose of the test is to make sure that the correct pitch is estimated when all modelling assumptions are fullfilled and no noise is added.

If you want to add noise to a signal at a particular SNR, please see, e.g., the awgn function in MATLAB. Please also look at the examples in the examples folder.

22898 commented 2 years ago

你好,我想问下,你这是全部的代码吗,我是个初学者,想你给我点帮助,建议