اصلي دوتنه(SVG دوتنه، نومېنلي ۷۲۰ × ۵۴۰ پېکسل، د دوتنې کچه: ۳۰ کيلوبايټ)

دا دوتنه د ويکيمېډيا کامنز لخوا خپرېږې او کېدای شي چې دا په نورو پروژو هم کارېدلې وي. د دوتنې د کارېدنې لا نور مالومات د دوتنې د څرگندنو په مخ کې لاندې ښودل شوی.

لنډيز

This file was copied from en.wikipedia by Toobaz, what follows is its original description:

څرگندونه Eight different random walks.
نېټه
سرچينه I created this work entirely by myself.
 
This W3C-unspecified plot was created with Matplotlib.
ليکوال Morn (talk)
نورې بڼې File:Random_Walk_example.png

Code

Made with the following Python script (needs Matplotlib):

from pylab import *
from random import choice
numwalk = 8
length = 100
data = zeros((numwalk, length), int)
for n in range(numwalk):
	for x in range(1, length):
		step = choice([-1, 1])
		data[n,x] = data[n,x-1] + step
	plot(range(length), data[n,:])
xlabel('t')
axis ((0,100, -20, 20))
savefig('Random_Walk_example.svg')
show()
wikipedia user Morn, the copyright holder of this work, hereby publishes it under the following license:
GNU head د دې لاسوند د لمېسلو، وېشلو او/يا هم د بدلولو پرېښه د GNU د وړيا لاسوندکښنې منښتليک 1.2 بڼې او يا هم تر دې نوې بڼې چې د وړيا ساوتريو بنسټ لخوا خپره شوې وي ورکړل شوې، د نابدلېدونکو برخو او د مخ-پوښ او د شا-پوښ د متنونو پرته. د دې منښتليک يوه لمېسه د GNU د وړيا لاسوندکښنې منښتليک په سرليک برخه کې شامل شوی.

Original upload log

The original description page was here. All following user names refer to en.wikipedia.
  • 2008-10-14 18:20 Morn 720×540× (30897 bytes) {{Information |Description= |Source=I created this work entirely by myself. |Date=2008-10-14 |Author=~~~ |other_versions= }} Made with the following Python script: <code> from pylab import * from random import choice numwalk = 8 length = 100 data = z

The following is the similar code in MATLAB and Octave

function RandomWalk () hold off; x = 1:100; color = ['y' 'g' 'b' 'k' 'r', 'm' 'c']; y(1)= 0; for m = 1:7 for n = 2:100 y(n) = y(n-1) + 2*floor(rand()*2)-1; end plot(x, y, color(m), 'LineWidth',2); hold on axis([0 100, -20 20]) end end

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts انګليسي

copyright status انګليسي

copyrighted انګليسي

۱۴ اکتوبر 2008

د دوتنې پېښليک

په يوې نېټې/يوه وخت وټوکۍ چې د هماغه وخت او نېټې دوتنه چې څنگه ښکارېده هماغسې درښکاره شي.

نېټه/وختبټنوکډډېکارنتبصره
اوسنی۰۷:۲۸, ۵ فبروري ۲۰۱۰د ۰۷:۲۸, ۵ فبروري ۲۰۱۰ پورې د بټنوک بڼه۷۲۰ × ۵۴۰ (۳۰ کيلوبايټ)Toobaz== Summary == This file was copied from en.wikipedia by Toobaz, what follows is its original description: {{Information |Description=Eight different random walks. |Source=I created this work entirely by myself. |Date=2008-10-14 |Au

دا لاندينی مخ د همدې دوتنې سره تړنې لري:

د نړېوالې دوتنې کارېدنه

همدا دوتنه لاندينۍ نورې ويکي گانې کاروي: