r3617 - in branches/4.0.1/src/main/java/fr/ifremer/isisfish/simulator/sensitivity: . distribution
Author: echatellier Date: 2012-02-28 14:41:45 +0100 (Tue, 28 Feb 2012) New Revision: 3617 Url: http://forge.codelutin.com/repositories/revision/isis-fish/3617 Log: Start distribution support Added: branches/4.0.1/src/main/java/fr/ifremer/isisfish/simulator/sensitivity/distribution/ branches/4.0.1/src/main/java/fr/ifremer/isisfish/simulator/sensitivity/distribution/Distribution.java Added: branches/4.0.1/src/main/java/fr/ifremer/isisfish/simulator/sensitivity/distribution/Distribution.java =================================================================== --- branches/4.0.1/src/main/java/fr/ifremer/isisfish/simulator/sensitivity/distribution/Distribution.java (rev 0) +++ branches/4.0.1/src/main/java/fr/ifremer/isisfish/simulator/sensitivity/distribution/Distribution.java 2012-02-28 13:41:45 UTC (rev 3617) @@ -0,0 +1,87 @@ +/* + * #%L + * + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2012 Ifremer, Codelutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +package fr.ifremer.isisfish.simulator.sensitivity.distribution; + +import static org.nuiton.i18n.I18n._; + +/** + * Distribution used in sensitivity analysis. + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public enum Distribution { + + DBINOM(_(""), + new DistibutionParams("size", _("number of trials (zero or more).")), + new DistibutionParams("prob", _("probability of success on each trial."))), + DCAUCHY(_(""), + new DistibutionParams("location", _("location and scale parameters. (location = 0, scale = 1)")), + new DistibutionParams("scale", _("location and scale parameters. (location = 0, scale = 1)"))), + DCHISQ(_(""), + new DistibutionParams("df", _("degrees of freedom (non-negative, but can be non-integer).")), + new DistibutionParams("ncp", _("non-centrality parameter (non-negative)."))), + DEXP(_(""), + new DistibutionParams("rate", _("vector of rates"))), + DF(_(""), + new DistibutionParams("df1", _("degrees of freedom. ‘Inf’ is allowed.")), + new DistibutionParams("df2", _("degrees of freedom. ‘Inf’ is allowed.")), + new DistibutionParams("ncp", _("non-centrality parameter. If omitted the central F is assumed."))), + DGAMMA(_(""), + new DistibutionParams("rate", _("an alternative way to specify the scale.")), + new DistibutionParams("shape", _("shape and scale parameters. Must be positive, ‘scale’ strictly.")), + new DistibutionParams("scale", _("shape and scale parameters. Must be positive, ‘scale’ strictly."))), + DGEOM(_(""), + new DistibutionParams("prob", _("probability of success in each trial. ‘0 < prob <= 1’."))), + DHYPER(_(""), + new DistibutionParams("m", _("the number of white balls in the urn.")), + new DistibutionParams("n", _("the number of black balls in the urn.")), + new DistibutionParams("k", _("the number of balls drawn from the urn."))), + DLNORM(_(""), + new DistibutionParams("meanlog", _("mean and standard deviation of the distribution on the log scale with default values of ‘0’ and ‘1’ respectively.")), + new DistibutionParams("sdlog", _("mean and standard deviation of the distribution on the log scale with default values of ‘0’ and ‘1’ respectively."))); + + protected String description; + + protected DistibutionParams[] params; + + private Distribution(String description, DistibutionParams... params) { + this.description = description; + this.params = params; + } + + public static class DistibutionParams { + protected String name; + protected String description; + public DistibutionParams(String name, String description) { + + } + } +} + Property changes on: branches/4.0.1/src/main/java/fr/ifremer/isisfish/simulator/sensitivity/distribution/Distribution.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL
participants (1)
-
echatellier@users.forge.codelutin.com