最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

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

【Python 編程】1D 隨機(jī)游走 1D Random Walk

2021-09-13 18:43 作者:AoiSTZ23  | 我要投稿

By: Tao Steven Zheng (鄭濤)


A random walk is a stochastic process that describes a path that consists of a succession of random steps on some mathematical space such as the integers. The following Python code generates three 1-dimensional random walks and plots them. Each plot starts at 0 and at each step moves up (+1) or down (?1) with equal probability.

隨機(jī)游動(random walk)是一種隨機(jī)過程(stochastic process),它描述了在某些數(shù)學(xué)空間(如整數(shù))上由一系列隨機(jī)步驟組成的隨機(jī)游動。以下的 Python 代碼生成三個一維隨機(jī)游動并繪制它們。每個繪圖從 0 開始,每一步以同樣的概率可以向上(+1)或向下 (?1)移動。

?Results

結(jié)果

Looks like the stock market!

看上去像股市!


【Python 編程】1D 隨機(jī)游走 1D Random Walk的評論 (共 條)

分享到微博請遵守國家法律
崇州市| 山阳县| 达州市| 祁东县| 红安县| 浏阳市| 郑州市| 新建县| 安溪县| 图们市| 涞水县| 台南县| 曲靖市| 宾阳县| 凌云县| 枣阳市| 常山县| 武川县| 中卫市| 嘉黎县| 郴州市| 克山县| 江城| 南江县| 固始县| 鄂尔多斯市| 山丹县| 靖西县| 伊春市| 合作市| 社旗县| 伊通| 永城市| 名山县| 新营市| 呼伦贝尔市| 万载县| 安多县| 扎兰屯市| 翁源县| 于田县|