Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 12055 invoked from network); 20 Feb 2010 12:20:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Feb 2010 12:20:31 -0000 Received: (qmail 25068 invoked by uid 500); 20 Feb 2010 12:20:30 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 24987 invoked by uid 500); 20 Feb 2010 12:20:30 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 24977 invoked by uid 99); 20 Feb 2010 12:20:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Feb 2010 12:20:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of arkalpa@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Feb 2010 12:20:22 +0000 Received: by wwf26 with SMTP id 26so119167wwf.10 for ; Sat, 20 Feb 2010 04:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=enpnLNKkt/hcGLtSHzat/z4TgF2wqI1ihzdXtRMVzf0=; b=pXH/37KAAeO4AIky3iwU3l4QEJ9MwOcr4MZ1gKgMneXi2TtSNWiyHOhRS8VgUFjBTV IPL2+OZoc6P3nmj3NSpGKdZVLUGdfMHANmdBwjdCM0Tcz81ui3cOkBg8Y7iGYxsl/quP EYMSrBrqZ/btwImj1Ns0yictemrf3Deb5kxx8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=yDpb1LwVAZm+jOrLBbII9NZZI5ooDL2LfIpPdV4Kt2Kq8Hh+AfHPKuYl5KKLhj9fr8 exKo9gdHnirE4jSlslzihvqRu7TVmyOCoSssKmQD2dNKyzCz56wEaYs+g26ytAMq9CAz PKGp+z8SlyHOV+h6iXpOCdf5N+qm7A8tceI7o= MIME-Version: 1.0 Received: by 10.216.178.70 with SMTP id e48mr939097wem.0.1266668401663; Sat, 20 Feb 2010 04:20:01 -0800 (PST) In-Reply-To: References: <47ee3b271002200348n7db2eebh1ce88734e7295b72@mail.gmail.com> Date: Sat, 20 Feb 2010 17:50:01 +0530 Message-ID: <47ee3b271002200420y406cc799w4da4e44bfb998fde@mail.gmail.com> Subject: Re: NormalDistribution From: kalpa rajadurai To: HttpClient User Discussion Content-Type: multipart/alternative; boundary=001485f274c8211ef904800738f9 X-Virus-Checked: Checked by ClamAV on apache.org --001485f274c8211ef904800738f9 Content-Type: text/plain; charset=ISO-8859-1 Sam, Thanks for info :) Regards kalpa On Sat, Feb 20, 2010 at 5:35 PM, Sam Crawford wrote: > Kalpa, > > I think you have the wrong mailing list... unless HttpClient is > branching out into whole new areas! > > I suspect you want to head back to http://commons.apache.org/math/ and > find the mailing lists for that under the Project Information section. > > Thanks, > > Sam > > > On 20 February 2010 11:48, kalpa rajadurai wrote: > > Hi Team, > > > > We are working on a small project in designing a web based statistical > > calculator, supporting certain distribution functions. > > > > we used method *cummulativeProbability(double x)* of *class > > NormalDistributionImpl* for implementing Normal distribution function. > > > > We tried to cross check Apache API's result with that of OpenOffice Calc > and > > Excel's result. In most of the cases, the results matched with each > other. > > But in certain rare cases, the cumulativeProbability() method returned by > > slightly different result when compared to the result returned by > NORMDIST() > > function of openoffice calc and Excel. > > > > Here goes the illustration of the case where we found the mismatch in > > results: > > > > *Using Apache's API:* > > NormalDistribution normDist = new NormalDistributionImpl(40,1.5); > > try{ > > System.out.println("cummulative probability:: > > "+normDist.cumulativeProbability(0.908789)); > > } > > catch(MathException e){ > > e.printStackTrace(); > > } > > > > *Result:* > > cummulative probability:: *-8.104628079763643E-15* > > > > *Using openoffice calc:* > > Same input values given in openoffice calc using the formula: > > *=NORMDIST(0.908789;40;1.5;1)* > > > > *Result:* > > *0.0* > > > > *Using Microsoft Excel:* > > Same input values given in excel using the formula: > > *=NORMDIST(0.908789;40;1.5;1)* > > > > *Result:* > > *5.0738E-150* > > > > *Different results:* > > Apache -8.104628079763643E-15 > > Openoffice 0.0 > > Excel 5.0738E-150 > > > > We wish to know the following things, > > 1.) What is the reason for this variation in results? > > 2.) Which result is more accurate? > > 3.) Is there any possibility to get the same results as Open Office or > Excel > > for this case, using Apache's API? > > > > Hope to receive reply from your team at the earliest as possible. > > Thanks in Advance > > > > -- > > Karpaga R > > > > "Did you always know that?" > > "No, I didn't. But I believed" > > ---Matrix III > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > -- Karpaga R "Did you always know that?" "No, I didn't. But I believed" ---Matrix III --001485f274c8211ef904800738f9--