Add some white noise into the signal
void add_white_noise( vector & vSignal, double level, int type = NOISE_OVER_AVERAGE )
No return
EX1
void add_white_noise_ex1() { vector v1 = {0, 0.707, 1, 0.707, 0, -0.707, -1, -0.707, 0} vector v2; v2 = v1 += 10; add_white_noise(v1, 5, NOISE_OVER_AVERAGE); add_white_noise(v2, 5, NOISE_OVER_DIFFERENCE); }
origin.h