Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 48114 invoked from network); 4 Nov 2008 00:10:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2008 00:10:07 -0000 Received: (qmail 55847 invoked by uid 500); 4 Nov 2008 00:10:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 55810 invoked by uid 500); 4 Nov 2008 00:10:11 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 55799 invoked by uid 99); 4 Nov 2008 00:10:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 16:10:11 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 00:09:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 501DC234C26A for ; Mon, 3 Nov 2008 16:09:44 -0800 (PST) Message-ID: <1063021831.1225757384327.JavaMail.jira@brutus> Date: Mon, 3 Nov 2008 16:09:44 -0800 (PST) From: "Chris Douglas (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4437) Use qMC sequence to improve the accuracy of PiEstimator In-Reply-To: <1604635216.1224212564188.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644857#action_12644857 ] Chris Douglas commented on HADOOP-4437: --------------------------------------- Since it's in the examples, a few brief notes on the initialization of HaltonSequence and on nextPoint would help orient readers. It doesn't need to be a course in statistics- the existing code isn't, either- but even a sentence or two on why PiEstimator is using it and perhaps a couple comments identifying the variables would be helpful. +1 on the patch, though; documentation is just a suggestion. > Use qMC sequence to improve the accuracy of PiEstimator > ------------------------------------------------------- > > Key: HADOOP-4437 > URL: https://issues.apache.org/jira/browse/HADOOP-4437 > Project: Hadoop Core > Issue Type: Improvement > Components: examples > Reporter: Tsz Wo (Nicholas), SZE > Priority: Minor > Attachments: 4437_20081019.patch > > > Currently, PiEstimator uses java.util.Random to generate random 2d-points for estimating pi. The numbers generated by java.util.Random are uniformly distributed. The 2d-points generated tense to have clump and gap. So the accuracy of the estimated pi is low. The accuracy can be improved by using a quasi-Monte Carlo (qMC) sequence. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.