File:MonteCarloIntegrationCircle.png

From formulasearchengine
Jump to navigation Jump to search

MonteCarloIntegrationCircle.png(360 × 360 pixels, file size: 5 KB, MIME type: image/png)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: An illustration of Monte-Carlo Integration.
Date
Source My own fair hand and Matlab
Author Yoderj
 
This diagram was created with MATLAB.

Created with this Matlab code:

x=2*(rand(2,50)-.5);
t=sum(x.*x,1)<1;
clf
plot(x(1,~t),x(2,~t),'b.','MarkerSize',20)
hold on
plot(x(1,t),x(2,t),'r.','MarkerSize',20)
th=0:.03*pi:2*pi;
u=cos(th);
v=sin(th);
plot(u,v,'k');

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

13 February 2009

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:57, 13 February 2009Thumbnail for version as of 16:57, 13 February 2009360 × 360 (5 KB)wikimediacommons>Yoderj{{Information |Description={{en|1=An illustration of Monte-Carlo Integration. }} |Source=My own fair hand and Matlab |Author=Yoderj |Date=2009-02-13 |Permission= |other_versions= }} Created with this Matlab code: x=2*(rand(2,50)-.5); t=su

There are no pages that use this file.