一、等間隔序列創(chuàng)建
import numpy as np
x = np.linspace(0, 15, 100)? #創(chuàng)建從0到15的100個等間隔序列。
二诞仓、三角函數(shù)的創(chuàng)建
import numpy as np
x=np.sin(x)
三优构、從標準正態(tài)分布中隨機地抽取1000個數(shù)瓷们,作為我們的連續(xù)數(shù)值型數(shù)據
import numpy as np
data = np.random.normal(size=1000)