File:BrownFractionalH75Seed1.svg

頁面內容唔支援其他語言。
出自維基百科,自由嘅百科全書

原本檔案(SVG檔案,表面大細: 720 × 540 像素,檔案大細:410 KB)

摘要

描述
English: One realization of Fractional Brownian Motion with H = 0.75.
日期
來源 自己作品
作者 Shiyu Ji

Python/Matplotlib Code

# A realization of 1D Fractional Brownian motion with time step dt = .5

import matplotlib.pyplot as pl
import numpy as np

t0 = 0.0
dt = 0.5
t_final = 1000.0
T = np.arange(t0, t_final+dt, dt)
H = .75
ax = pl.figure().add_subplot(111)
ax.set_xlabel('t')
ax.set_ylabel('X')

np.random.seed(1)

Gamma = [[0.0 for _ in T] for _ in T]
for i in range(len(T)):
    for j in range(len(T)):
        Gamma[i][j] = 0.5*(T[i]**(2*H) + T[j]**(2*H) - abs(T[j]-T[i])**(2*H))

eigens, P = np.linalg.eig(Gamma)

Lambda = [[0.0 for _ in T] for _ in T]
for i in range(len(Lambda)):
    Lambda[i][i] = eigens[i]**0.5

Sigma = np.matmul(np.matmul(P, Lambda), np.matrix.transpose(P))

path = [np.random.normal(0, 1) for _ in T]

path = np.matmul(Sigma, path)

for i in range(1, len(T)):
    ax.plot([T[i-1], T[i]], [path[i-1], path[i]], 'k-', linewidth=0.5)

pl.show()

協議

我,呢份作品嘅作者,決定用以下許可發佈呢件作品:
w:en:Creative Commons
署名 相同方式分享
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
你可以:
  • 去分享 – 複製、發佈同傳播呢個作品
  • 再改 – 創作演繹作品
要遵照下面嘅條件:
  • 署名 – 你一定要畀合適嘅表彰、畀返指向呢個授權條款嘅連結,同埋寫明有無改過嚟。你可以用任何合理方式去做,但唔可以用任何方式暗示授權人認可咗你或者你嘅使用方式。
  • 相同方式分享 – 如果你用任何方式改過呢個作品,你必須要用返原本或者相似嘅條款發佈。

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

圖中顯示嘅係

21 11 2016

image/svg+xml

428b22a21ec0b07f0965065a6e27fcef1e4d4856

419,929 字節

540 像素

720 像素

檔案歷史

撳個日期/時間去睇響嗰個時間出現過嘅檔案。

日期/時間縮圖尺寸用戶註解
現時2016年11月21號 (一) 10:29響2016年11月21號 (一) 10:29嘅縮圖版本720 × 540(410 KB)Shiyu JiUser created page with UploadWizard

以下嘅3版用到呢個檔:

全域檔案使用情況

下面嘅維基都用緊呢個檔案:

Metadata