پرونده:Largenumbers.svg

پروندهٔ اصلی(پروندهٔ اس‌وی‌جی، با ابعاد ۶۰۰ × ۴۸۰ پیکسل، اندازهٔ پرونده: ۲۵ کیلوبایت)

پردازش این تصویر در .

خلاصه

 
W3C-validity not checked.
 
این گرافیک با کد نامشخص از لحاظ W3C با Gnuplot ساخته شده است.
توضیح
Català: Una il·lustració de la llei dels grans nombres, semblant a File: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 w:law of large numbers, similar to File: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.
تاریخ (UTC)
منبع اثر شخصی
پدیدآور NYKevin
دیگر نسخه‌ها
Other related versions:File:LLN_Die_Rolls.gif
این پرونده را ترجمه کنید این پروندهٔ اس‌وی‌جی از متن جاسازی‌شده استفاده می‌کند که به‌سادگی می‌توان با این ابزار خودکار آن را به زبانتان ترجمه کرد (اطلاعات بیشتر).

همچنین می‌توانید تصویر را دریافت و با یک ویرایشگر متن به طور دستی آن را ویرایش کنید.

This file is translated using SVG <switch> elements. All translations are stored in the same file! Learn more.

For most Wikipedia projects, you can embed the file normally (without a lang parameter). The Wikipedia will use its language if the SVG file supports that language. For example, the German Wikipedia will use German if the SVG file has German. To embed this file in a particular language use the lang parameter with the appropriate language code, e.g. [[File:Largenumbers.svg|lang=en]] for the English version. Do not specify a lang parameter if it is not needed. The parameter may prevent the use of a subsequent translation.

To translate the text into your language, you can use the SVG Translate tool. Alternatively, you can download the file to your computer, add your translations using whatever software you're familiar with, and re-upload it with the same name. You will find help in Graphics Lab if you're not sure how to do this.

Source code

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]);


اجازه‌نامه

Creative Commons CC-Zero این پرونده تحت CC0 1.0 Universal Public Domain Dedication کریتیو کامنز قابل دسترسی است.
کسی که اثری را با این سند همراه کرده است، با چشم‌پوشی از تمام حقوق خود نسبت به اثر در جهان تحت قانون کپی‌رایت و همهٔ حقوق قانونی مرتبط یا همسایه‌ای که او در اثر داشته است، تا حد مجاز در قانون، آن را به مالکیت عمومی اهدا کرده است. شما می‌توانید بدون گرفتن اجازه این اثر را تکثیر کنید، تغییر دهید، منتشر کنید یا دوباره ایجاد کنید، حتی اگر مقاصد تجاری داشته باشید.

برچسب‌ها
InfoField
این نگاره برچسپ‌گذاری شده‌است: برچسپ‌ها را در ویکی‌انبار مشاهده کنید

عنوان

شرحی یک‌خطی از محتوای این فایل اضافه کنید

آیتم‌هایی که در این پرونده نمایش داده شده‌اند

توصیف‌ها

این خصوصیت مقداری دارد اما نامشخص است.

۳۱ ژانویهٔ 2010

source of file انگلیسی

تاریخچهٔ پرونده

روی تاریخ/زمان‌ها کلیک کنید تا نسخهٔ مربوط به آن هنگام را ببینید.

تاریخ/زمانبندانگشتیابعادکاربرتوضیح
کنونی‏۳۱ ژانویهٔ ۲۰۲۴، ساعت ۲۱:۲۸تصویر بندانگشتی از نسخهٔ مورخ ‏۳۱ ژانویهٔ ۲۰۲۴، ساعت ۲۱:۲۸۶۰۰ در ۴۸۰ (۲۵ کیلوبایت)ManlleusFile uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for ca.
‏۳ فوریهٔ ۲۰۱۰، ساعت ۰۲:۵۳تصویر بندانگشتی از نسخهٔ مورخ ‏۳ فوریهٔ ۲۰۱۰، ساعت ۰۲:۵۳۶۰۰ در ۴۸۰ (۲۲ کیلوبایت)NYKevinIn the interest of replicability, this one was generated using a known PRNG seed value. Will update Java source. Also, this one has axis labels!
‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۵۳تصویر بندانگشتی از نسخهٔ مورخ ‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۵۳۶۰۰ در ۴۸۰ (۲۱ کیلوبایت)NYKevinBetter version, with better Java code (more precise). Will update source soon.
‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۳۵تصویر بندانگشتی از نسخهٔ مورخ ‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۳۵۶۰۰ در ۴۸۰ (۲۱ کیلوبایت)NYKevinI mixed up x and y in the legend, will update gnuplot source code in a moment (already checked for svg closing tag).
‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۰۸تصویر بندانگشتی از نسخهٔ مورخ ‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۰۸۶۰۰ در ۴۸۰ (۲۱ کیلوبایت)NYKevinApparently gnuplot forgot the <svg> closing tag?
‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۰۶فاقد بندانگشتی (۲۱ کیلوبایت)NYKevinTrying again... looks like the last one had a problem?
‏۳۱ ژانویهٔ ۲۰۱۰، ساعت ۲۳:۰۴فاقد بندانگشتی (۲۱ کیلوبایت)NYKevin{{Information |Description={{en|1=An illustration of the w:law of large numbers, similar to File:LLN_Die_Rolls.gif but using the svg format instead of gif. This uses different data from that and hence it looks different. I will include source c

صفحه‌های زیر از این تصویر استفاده می‌کنند:

کاربرد سراسری پرونده

ویکی‌های دیگر زیر از این پرونده استفاده می‌کنند:

فراداده