lundi 17 septembre 2018

Add noise to vector that sums up to 0

I have a vector that is defined by a=[1000 1000 1000 1000 1000];. I am asked to add uniform noise in the interval [-9,9], but the still save the sum of all elements at 5000. How can I do that? Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire