الملف الأصلي(ملف SVG، أبعاده 720 × 540 بكسل، حجم الملف: 30 كيلوبايت)

ملخص

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.
 
.هذا الرسم المتجهي أُنشئ بواسطة 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، صاحب حقوق التأليف والنشر لهذا العمل، أنشر هذا العمل تحت الرخصة التالية:
GNU head يسمح نسخ وتوزيع و/أو تعديل هذه الوثيقة تحت شروط رخصة جنو للوثائق الحرة، الإصدار 1.2 أو أي إصدار لاحق تنشره مؤسسة البرمجيات الحرة؛ دون أقسام ثابتة ودون نصوص أغلفة أمامية ودون نصوص أغلفة خلفية. نسخة من الرخصة تم تضمينها في القسم المسمى GNU Free Documentation License.

سجلُّ الرَّفع الأصيل

صفحة الوصف الأصلية كانت هنا، تشير جميع أسماء المستخدمين التالية إلى 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

الشروحات

أضف شرحاً من سطر واحد لما يُمثِّله هذا الملف

العناصر المصورة في هذا الملف

يُصوِّر

١٤ أكتوبر 2008

تاريخ الملف

اضغط على زمن/تاريخ لرؤية الملف كما بدا في هذا الزمن.

زمن/تاريخصورة مصغرةالأبعادمستخدمتعليق
حالي07:28، 5 فبراير 2010تصغير للنسخة بتاريخ 07:28، 5 فبراير 2010720 × 540 (30 كيلوبايت)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

الصفحة التالية تستخدم هذا الملف:

الاستخدام العالمي للملف

الويكيات الأخرى التالية تستخدم هذا الملف: