پرونده:Largenumbers.svg
این پرونده از ویکیانبار است و ممکن است توسط پروژههای دیگر هم استفاده شده باشد. توضیحات موجود در صفحهٔ توضیحات پرونده در آنجا، در زیر نشان داده شده است.
خلاصه
| توضیحLargenumbers.svg |
Català: Una il·lustració de la llei dels grans nombres, semblant a LLN Die Rolls.gif però utilitzant el format svg en comptes de gif. Això utilitza dades diferents i, per tant, sembla diferent. El codi font es troba a la secció següent. El codi està sota la mateixa "llicència" que l'obra en si.
English: An illustration of the law of large numbers, similar to LLN Die Rolls.gif but using the svg format instead of gif. This uses different data from that and hence it looks different. Source code is in the section below. The code is under the same "license" as the work itself. |
| تاریخ | |
| منبع | اثر شخصی |
| پدیدآور | NYKevin |
| دیگر نسخهها |
File:Largenumbers.svg contains 2 translations.
|
| SVG genesis InfoField | switch elements: all translations are stored in the same file. |
این پرونده با استفاده از عناصر <switch> اسویجی ترجمه شده است. تمام ترجمهها در همین پرونده ذخیره شدهاند. اطلاعات بیشتر.
برای بیشتر پروژههای ویکیپدیا میتوان این پرونده را به صورت معمول (بدون پارامتر برای ترجمهٔ متن به زبانتان میتوانید از ابزار ترجمهٔ اسویجی استفاده کنید. یا به جای آن، میتوانید پرونده را در رایانهٔ خود دانلود کرده، ترجمههایتان را با هر نرمافزاری که آشنایی دارید اضافه کنید، و دوباره آن را با همان نام آپلود کنید. اگر در این مورد مطمئن نیستید، میتوانید از کارگاه گرافیک کمک بگیرید. |
Source code

Here is a listing of the source used to create this file.
Note that you will need to insert some paths. I've tried to make it obvious where to do so.
This code is all in the public domain (the cc0 waiver applies to it)
The code (in Java) which generated the data:
import java.io.*;
public class Main {
public static void main(String[] args) {
PrintStream output=null;
try{
output=new PrintStream("");//FIXME Insert a suitable path in the quote marks
}catch(FileNotFoundException e){
throw new RuntimeException(e);
}
//int diceValues[] = {0,0,0,0,0,0};//this variable may be uncommented and used for debugging
double average=0;
double total=0;
output.println("#count average");//makes a header for the data; may be safely removed
Random rnd=new Random(4124484382302655524l);
//seed selected by trial and error
for(int i=1;i<=1000;i++){
int rand=rnd.nextInt(6);//now holds a random int from 0 to 5
//diceValues[rand]++;//uncomment for debugging
rand++;//convert to 1-indexed
total+=rand;
average=total/i;
output.println(i+" "+(average));
}
//System.out.println(average);
}
}
The gnuplot code:
set terminal svg
set output "OUTPUT PATH HERE"
set title "average dice value against number of rolls"
set xlabel "trials"
set ylabel "mean value"
plot [] [1:6] "PATH FROM JAVA CODE HERE" title "average" with lines, 3.5 title "y=3.5" with lines
#it is recommended that you copy and paste this code into a .plt file and run it in batch mode:
#If you must run this interactively, be sure to type "exit" or ^D (control-D) at the end,
#or gnuplot will leave off the </svg> closing tag.
MATLAB/Octave Source code
% Specify how many trials you want to run:
num_trials = 1000;
% Now grab all the dice rolls:
trials = randi(6, [1 num_trials]);
% Plot the results:
figure(1);
% Cumulative sum of the trial results divided by the index gives the
% average:
plot(cumsum(trials)./(1:num_trials), 'r-');
% Let's put a reference line at 3.5 just for fun (make the color a darker
% green as well):
hold on;
plot([1 num_trials], [3.5 3.5], 'color', [0 0.5 0]);
% Make it look pretty:
title('average dice value against number of rolls');
xlabel('trials');
ylabel('mean value');
legend('average', 'y=3.5');
axis([0 num_trials 1 6]);
اجازهنامه
| این پرونده تحت CC0 1.0 Universal Public Domain Dedication کریتیو کامنز قابل دسترسی است. | |
| کسی که اثری را با این سند همراه کرده است، با چشمپوشی از تمام حقوق خود نسبت به اثر در جهان تحت قانون کپیرایت و همهٔ حقوق قانونی مرتبط یا همسایهای که او در اثر داشته است، تا حد مجاز در قانون، آن را به مالکیت عمومی اهدا کرده است. شما میتوانید بدون گرفتن اجازه این اثر را تکثیر کنید، تغییر دهید، منتشر کنید یا دوباره ایجاد کنید، حتی اگر مقاصد تجاری داشته باشید.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
| برچسبها InfoField | این نگاره برچسپگذاری شدهاست: برچسپها را در ویکیانبار مشاهده کنید |
On the left, random fluctuations are evident.
Here, the average begins to level out around 3.5
عنوان
آیتمهایی که در این پرونده نمایش داده شدهاند
توصیفها
این خصوصیت مقداری دارد اما نامشخص است.
۳۱ ژانویهٔ 2010
source of file انگلیسی
original creation by uploader انگلیسی
image/svg+xml
تاریخچهٔ پرونده
روی تاریخ/زمانها کلیک کنید تا نسخهٔ مربوط به آن هنگام را ببینید.
| تاریخ/زمان | بندانگشتی | ابعاد | کاربر | توضیح | |
|---|---|---|---|---|---|
| کنونی | ۱۵ نوامبر ۲۰۲۴، ساعت ۰۷:۵۴ | ۶۰۰ در ۴۸۰ (۲۵ کیلوبایت) | wikimediacommons>Dr. Greywolf | File uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for yue. |
کاربرد پرونده
صفحههای زیر از این تصویر استفاده میکنند: