Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6156F18822 for ; Thu, 18 Jun 2015 14:38:50 +0000 (UTC) Received: (qmail 89363 invoked by uid 500); 18 Jun 2015 14:38:49 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 89236 invoked by uid 500); 18 Jun 2015 14:38:49 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 89223 invoked by uid 99); 18 Jun 2015 14:38:48 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 14:38:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7B3B61A5C74 for ; Thu, 18 Jun 2015 14:38:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=scarlet.be Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id V0ZRlF_uFWEC for ; Thu, 18 Jun 2015 14:38:41 +0000 (UTC) Received: from hel.is.scarlet.be (hel.is.scarlet.be [193.74.71.26]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 2A2A0249EA for ; Thu, 18 Jun 2015 14:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1434638313; bh=ezpZRfphcESz+flOLnUKcDH2aG9gzcjN7LKLVmQUsoU=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:In-Reply-To:References:Message-ID; b=kdCnmg4XTIhR9Bc6cUNjCLpP9ar9ddBg6ywBY+3PPbzl0h7rerYc2ZSr5La6i+Ff5 3vjnY5WSfnREL+8LoceAX+WMFrpvPpVU0Q17ArfNl8sdaF1E0Kapd6dcYvvPmqKytk c0wdhwawNGDXQlzQzLOfX4rq2teDBiQpSbYiupdQ= Received: from webmail.scarlet.be (gresham.is.scarlet.be [193.74.71.215]) by hel.is.scarlet.be (8.14.9/8.14.9) with ESMTP id t5IEcWpD029132 for ; Thu, 18 Jun 2015 16:38:33 +0200 X-Scarlet: d=1434638313 c=193.74.71.215 Received: from ip-83-134-183-176.dsl.scarlet.be ([83.134.183.176]) via ip-83-134-183-176.dsl.scarlet.be ([83.134.183.176]) by webmail.scarlet.be with HTTP (HTTP/1.1 POST); Thu, 18 Jun 2015 16:38:32 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 18 Jun 2015 16:38:32 +0200 From: Gilles To: Subject: Re: [math]plot distribution In-Reply-To: References: Message-ID: <3e708f9c1bc25d85bfbcbb8c3ac542aa@scarlet.be> X-Sender: gilles@harfang.homelinux.org User-Agent: Scarlet Webmail X-DCC-scarlet.be-Metrics: hel; whitelist X-Virus-Scanned: clamav-milter 0.98.1-exp at hel X-Virus-Status: Clean Hi. On Thu, 18 Jun 2015 06:31:00 -0700, narjes saraie wrote: > Hi All. > I am beginner in java and have some data.I want to guess a > distribution for > my data then calculate goodness of fit (gof). > I find distribution commons math and use it ,if i want plot my > distribution > or CDF or probability (X>x), how do it? > is it any example for distribution and plotting it. > thanks. Perhaps it would be clearer to see what you mean with a code example. If you want to plot a distribution implemented in Commons Math, you'd call one the methods defined in the "RealDistribution" interface (e.g. "density(double x)"). But maybe that the functionality which you are looking for is defined in package "org.apache.commons.math3.stat.inference". If you need to fit data to a model (e.g. find the parameters of an assumed distribution), it is perhaps the least-squares fitting which you are looking for. For a univariate function, there is a utility implemented as "org.apache.commons.math3.fitting.SimpleCurveFitter". HTH, Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org