Answers for "numpy normal of vector"

6

numpy normal distribution

>>> mu, sigma = 0, 0.1 # mean and standard deviation
>>> s = np.random.normal(mu, sigma, 1000)
Posted by: Guest on May-12-2020
3

norm complex numpy

#c is a complex number
np.linalg.norm(c)

#or
np.absolute(c)
Posted by: Guest on September-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language