mardi 1 septembre 2020

Create vector of values with random increments

If we start with a vector between 0 and 1 with 10 increments

z = np.linspace(0,1,10)

how can I create a different version of this vector, where the increments are drawn according to a Poisson distribution with intensity lambda? Would I have to use something like cumsum?




Aucun commentaire:

Enregistrer un commentaire