国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

用python簡易運行LHS_2D模型~

2022-03-30 10:33 作者:1ngram4_L  | 我要投稿
視頻源碼?
import numpy as np
import matplotlib.pyplot as plt


def latin_hypercube_2D_uniform(n):

    lower_limits = np.arange(0, n) / n
    upper_limits = np.arange(1, 1 + n) / n

    points = np.random.uniform(low=lower_limits, high=upper_limits, size=[2, n]).T
    np.random.shuffle(points[:, 1])

    return points


n = 10
p = latin_hypercube_2D_uniform(n)
print(p)

plt.figure(figsize=[5, 5])
plt.title('LHS DEMO')
plt.xlim([0, 1])
plt.ylim([0, 1])
plt.scatter(p[:, 0], p[:, 1], c='r')

for i in np.arange(0, 1, 1 / n):
    plt.axvline(i)
    plt.axhline(i)
plt.show()


用python簡易運行LHS_2D模型~的評論 (共 條)

分享到微博請遵守國家法律
九龙县| 临沧市| 阜平县| 富平县| 潞西市| 柳江县| 崇仁县| 贵德县| 南华县| 连南| 四会市| 繁昌县| 高雄县| 米易县| 黑河市| 铜川市| 樟树市| 兰州市| 上杭县| 尖扎县| 特克斯县| 垦利县| 米林县| 马山县| 和政县| 滁州市| 开江县| 黔东| 星子县| 黔江区| 泽库县| 昆明市| 霍城县| 黑龙江省| 虞城县| 荥经县| 微山县| 琼海市| 云龙县| 孝昌县| 茶陵县|