File:OrnsteinUhlenbeckProcess2D.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(SVG文件,尺寸为720 × 540像素,文件大小:3.97 MB)


摘要

描述
English: 2D Ornstein-Uhlenbeck process with time step of .0001, while theta = 1.0 and sigma = 300. The initial position is (10, 10). Finally the point wanders around the central point (0, 0).
日期
来源 自己的作品
作者 Shiyu Ji

Python/Matplotlib Code

# A simulation of 2D Ornstein-Uhlenbeck process with time step dt = .0001
import matplotlib.pyplot as pl
import numpy as np

t0 = 0.0
dt = 0.0001
t_final = 2
T = np.arange(t0, t_final, dt)
ax = pl.figure().add_subplot(111)
ax.set_xlabel('X')
ax.set_ylabel('Y')

x, y = 10.0, 10.0
ux, uy = 0.0, 0.0
theta = 1.0
sigma = 300.0
np.random.seed(1)
for t in T:
    new_x = x + theta*(ux-x)*dt + sigma * np.random.normal(0, dt)
    new_y = y + theta*(uy-y)*dt + sigma * np.random.normal(0, dt)
    ax.plot([x, new_x], [y, new_y], 'b-', linewidth=0.5)
    x, y = new_x, new_y

pl.show()

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
w:zh:知识共享
署名 相同方式共享
本文件采用知识共享署名-相同方式共享 4.0 国际许可协议授权。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

image/svg+xml

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2016年11月11日 (五) 11:242016年11月11日 (五) 11:24版本的缩略图720 × 540(3.97 MB)Shiyu JiUser created page with UploadWizard

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

元数据