python np.random.multivariate_normal

import numpy as np mean = [0, 0] cov = [[1, 0], [0, 5]] import matplotlib.pyplot as plt x, y = np.random.multivariate_normal(mean, cov, 100).T plt.plot(x, y, 'x') plt.axis('equal') plt.show() Parame
相關文章
相關標籤/搜索