Injecting random numbers in random places in an 1D numpy array
I have a 1D numpy array X with the shape (1000,). I want to inject in random (uniform) places 10 random (normal) values and thus obtain the numpy array of shape (1010,). How to do it efficiently in numpy?
Aucun commentaire:
Enregistrer un commentaire