Ugrás a tartalomhoz

Fájl:White-noise-zoom-animation.gif

Az oldal más nyelven nem érhető el.
A Wikipédiából, a szabad enciklopédiából

White-noise-zoom-animation.gif (416 × 272 képpont, fájlméret: 1,12 MB, MIME-típus: image/gif, ismétlődik, 40 képkocka, 2,0 s)

Összefoglaló

Leírás
English: Animation of a white noise plot with continuous zoom towards zero. The signal is self-similar, so the basic properties remain constant during the zoom. The animation repeats at a scaling factor of 2. The plot uses a finite number of sampling points, which are continuously added during the zoom, to keep the density constant.
Dátum
Forrás A feltöltő saját munkája
Szerző Geek3
GIF kód
InfoField
 
Ez vektorgrafikus kép Matplotlib segítségével készült
Forráskód
InfoField

Matplotlib source code

The plot was generated with Matplotlib
#! /usr/bin/env python3
# -*- coding:utf8 -*-

import matplotlib.pyplot as plt
from matplotlib import ticker
from matplotlib import animation
import numpy as np
from math import *

plt.rcParams['font.sans-serif'] = 'DejaVu Sans'
np.random.seed(58)

fname = "White-noise-zoom-animation"
nframes = 40
fx = 0.5
nsamples = int(320 / fx)

# create pseudo-random sequence for continous adding of time points
golden = (sqrt(5) - 1) / 2
t_unsorted = (golden * np.arange(nsamples)) % 1
sort_idx = np.argsort(t_unsorted)
t = t_unsorted[sort_idx]
randnorm = np.random.normal(0, 1, nsamples)
X = randnorm

# use self-similar signal for small t-values
mask0 = sort_idx < nsamples * fx**(1 - 1 / nframes)
t0, X0 = t[mask0], X[mask0]
for i in range(int(fx * nsamples) - 1, 0, -1):
    tfx = t[i] / fx
    i2 = np.searchsorted(t0, tfx)
    i1 = i2 - 1
    if tfx - t0[i1] < t0[i2] - tfx:
        X2 = X0[i1]
    else:
        X2 = X0[i2]
    X[i] = X2
    X0 = X[mask0] # update masked X0 from X (a bit inefficient)

ylim = -2.5, 2.5
def animate(nframe):
    plt.cla()
    xscale = fx**(nframe / nframes)
    mask = sort_idx < nsamples * fx / xscale
    plt.plot(t[mask], X[mask], '-')
    plt.xlim(0, xscale)
    plt.ylim(ylim[0], ylim[1])
    plt.grid(True)
    plt.xlabel('t')
    plt.ylabel('X')
    plt.gca().axes.xaxis.set_ticklabels([])
    plt.gca().axes.yaxis.set_ticklabels([])
    

fig = plt.figure(figsize=(520 / 90.0, 340 / 90.0), dpi=72)
plt.xlim(0, 1)
plt.ylim(ylim[0], ylim[1])
plt.grid(True)
plt.xlabel('t')
plt.ylabel('X')
plt.gca().axes.xaxis.set_ticklabels([])
plt.gca().axes.yaxis.set_ticklabels([])
plt.tight_layout()
anim = animation.FuncAnimation(fig, animate, frames=nframes)
anim.save(fname + '.gif', writer='imagemagick', fps=20)

Licenc

Én, e mű szerzője a művemet az alábbi licenc alatt teszem közzé:
w:hu:Creative Commons
Nevezd meg! Így add tovább!
Ez a fájl a Creative Commons Nevezd meg! – Így add tovább! 4.0 Nemzetközi licenc alapján használható fel.
A következőket teheted a művel:
  • megoszthatod – szabadon másolhatod, terjesztheted, bemutathatod és előadhatod a művet
  • feldolgozhatod – származékos műveket hozhatsz létre
Az alábbi feltételekkel:
  • Nevezd meg! – A szerzőt megfelelően fel kell tüntetned, hivatkozást kell létrehoznod a licencre és jelezned kell, ha a művön változtatást hajtottál végre. Ezt bármilyen észszerű módon megteheted, kivéve oly módon, ami azt sugallná hogy a jogosult támogat téged vagy a felhasználásod körülményeit.
  • Így add tovább! – Ha megváltoztatod, átalakítod, feldolgozod ezt a művet, a közreműködésedet csak az eredetivel megegyező vagy hasonló licenc alatt terjesztheted.

Képaláírások

Adj meg egy egysoros magyarázatot arról, hogy mit mutat be ez a fájl
Animation of infinite zoom into Gaussian white noise

A fájl által ábrázolt elemek

mű tárgya

10. december 2022

1 173 298 byte

2 másodperc

272 képpont

416 képpont

4433dc74f78f9790d6bfd08abe02ac9a4517b7c0

Fájltörténet

Kattints egy időpontra, hogy a fájl akkori állapotát láthasd.

Dátum/időBélyegképFelbontásFeltöltőMegjegyzés
aktuális2022. december 10., 17:08Bélyegkép a 2022. december 10., 17:08-kori változatról416 × 272 (1,12 MB)Geek3Uploaded own work with UploadWizard

Az alábbi lap használja ezt a fájlt: