Dosya:Largenumbers.svg
From Wikipedia, the free encyclopedia
![Dosya:Largenumbers.svg](http://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Largenumbers.svg/600px-Largenumbers.svg.png)
Tam çözünürlük (SVG dosyası, sözde 600 × 480 piksel, dosya boyutu: 25 KB)
![]() | Bu dosya Wikimedia Commons'ta bulunmaktadır. Dosyanın açıklaması aşağıda gösterilmiştir. Commons, serbest/özgür telifli medya dosyalarının bulundurulduğu depodur. Siz de yardım edebilirsiniz. |
Özet
AçıklamaLargenumbers.svg |
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. |
Tarih | (UTC) |
Kaynak | Yükleyenin kendi çalışması |
Yazar | NYKevin |
Diğer sürümler |
File:Largenumbers.svg has 2 translations.
Other related versions:File:LLN_Die_Rolls.gif |
![]() |
Bu SVG dosyası, yetenekli herhangi bir SVG düzenleyicisi veya metin düzenleyicisi kullanılarak dilinize çevrilebilen gömülü metin içerir. Daha fazla bilgi için SVG dosyalarını çevirme hakkında bakın. |
![]() |
Bu dosya SVG <switch> öğeleri kullanılarak çevrilmiştir. Tüm çeviriler aynı dosyada saklanır! Daha fazla bilgi edinin.
Bu dosyayı kendi dilinize (varsa) gömmek için Bu dosyayı dilinize çevirmek için SVG Çeviri aracını kullanabilirsiniz. Alternatif olarak, dosyayı bilgisayarınıza indirebilir, aşina olduğunuz herhangi bir yazılımı kullanarak çevirilerinizi ekleyebilir ve aynı adıyla yeniden yükleyebilirsiniz. Bunu nasıl yapacağınızdan emin değilseniz Grafik Laboratuvarı içinde yardım bulacaksınız. |
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]);
Lisanslama
![]() ![]() |
Bu dosya Creative Commons Evrensel Kamu Malı İthafı altındadır. |
Bu çalışmayı oluşturan kişi bu senet ile eser hakkında tüm dünya çapında telif hakkı yasaları kapsamında, yasalar tarafından izin verilen ölçülerde ve diğer benzer tüm haklarından feragat etmiş ve kamu malı olarak nitelendirmiştir. Siz bu çalışmayı ve eseri hiç bir izin almadan ticari amaçlar da dahil olmak üzere kopyalayabilir, değiştirebilir ve serbestçe dağıtabilirsiniz.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Annotations InfoField | This image is annotated: View the annotations at Commons |
On the left, random fluctuations are evident.
Here, the average begins to level out around 3.5
Altyazılar
Bu dosyada gösterilen öğeler
betimlenen
Vikiveri ögesi olmayan bir değer
31 Ocak 2010
Dosya geçmişi
Dosyanın herhangi bir zamandaki hâli için ilgili tarih/saat kısmına tıklayın.
Tarih/Saat | Küçük resim | Boyutlar | Kullanıcı | Yorum | |
---|---|---|---|---|---|
güncel | 21.28, 31 Ocak 2024 | ![]() | 600 × 480 (25 KB) | Manlleus | File uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for ca. |
02.53, 3 Şubat 2010 | ![]() | 600 × 480 (22 KB) | NYKevin | In the interest of replicability, this one was generated using a known PRNG seed value. Will update Java source. Also, this one has axis labels! | |
23.53, 31 Ocak 2010 | ![]() | 600 × 480 (21 KB) | NYKevin | Better version, with better Java code (more precise). Will update source soon. | |
23.35, 31 Ocak 2010 | ![]() | 600 × 480 (21 KB) | NYKevin | I mixed up x and y in the legend, will update gnuplot source code in a moment (already checked for svg closing tag). | |
23.08, 31 Ocak 2010 | ![]() | 600 × 480 (21 KB) | NYKevin | Apparently gnuplot forgot the <svg> closing tag? | |
23.06, 31 Ocak 2010 | Küçük resim yok | (21 KB) | NYKevin | Trying again... looks like the last one had a problem? | |
23.04, 31 Ocak 2010 | Küçük resim yok | (21 KB) | 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 |
Dosya kullanımı
Bu görüntü dosyasına bağlantısı olan sayfalar:
Küresel dosya kullanımı
Aşağıdaki diğer vikiler bu dosyayı kullanır:
- ca.wikipedia.org üzerinde kullanımı
- de.wikipedia.org üzerinde kullanımı
- en.wikipedia.org üzerinde kullanımı
- eu.wikipedia.org üzerinde kullanımı
- fa.wikipedia.org üzerinde kullanımı
- fi.wikipedia.org üzerinde kullanımı
- fr.wikipedia.org üzerinde kullanımı
- he.wikipedia.org üzerinde kullanımı
- it.wikipedia.org üzerinde kullanımı
- ja.wikipedia.org üzerinde kullanımı
- lv.wikipedia.org üzerinde kullanımı
- pt.wikipedia.org üzerinde kullanımı
- Usuário(a):MCarrera (NeuroMat)/Lei dos grandes números
- Usuária:MCarrera (NeuroMat)/ Lei dos grandes números (leitura de fórmulas)
- Usuário(a):Gildemar Felix/Teste1 - Lei dos Grandes Números
- Usuário(a):MCarrera (NeuroMat)/Testes/Lei dos grandes números
- Usuário(a):MCarrera (NeuroMat)/Testes/Lei dos grandes números (fórmulas)
- Usuário:Gildemar Felix/Testes/Lei dos grandes números
- simple.wikipedia.org üzerinde kullanımı
- sq.wikipedia.org üzerinde kullanımı
- sr.wikipedia.org üzerinde kullanımı
- th.wikipedia.org üzerinde kullanımı
- www.wikidata.org üzerinde kullanımı
- zh.wikipedia.org üzerinde kullanımı
- zh.wikibooks.org üzerinde kullanımı
Meta veri
Bu dosyada, muhtemelen fotoğraf makinesi ya da tarayıcı tarafından eklenmiş ek bilgiler mevcuttur. Eğer dosyada sonradan değişiklik yapıldıysa, bazı bilgiler yeni değişikliğe göre eski kalmış olabilir.
Resim başlığı | Produced by GNUPLOT 4.2 patchlevel 5 |
---|---|
Genişlik | 600 |
Yükseklik | 480 |