jhplot.math.num.pdf
Class Logistic
- java.lang.Object
-
- jhplot.math.num.pdf.ContinuousDistribution
-
- jhplot.math.num.pdf.Logistic
-
- All Implemented Interfaces:
- Distribution
public class Logistic extends ContinuousDistribution
The Logistic distribution.
References:
- Eric W. Weisstein. "Logistic Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Logistic.html
- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor and Description Logistic()Default constructor.Logistic(double m, double s)Create a distribution with the given mean and scale parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecumulativeProbability(double x)The CDF for this distribution.doublegetMean()Access the mean.doublegetScale()Access the scale parameter.doubleinverseCumulativeProbability(double p)The inverse CDF for this distribution.voidsetMean(double m)Modify the mean.voidsetScale(double s)Modify the scale parameter.
-
-
-
Constructor Detail
-
Logistic
public Logistic()
Default constructor. The mean is set to zero and the scale parameter is set to one.
-
Logistic
public Logistic(double m, double s)Create a distribution with the given mean and scale parameters.- Parameters:
m- the mean.s- the scale parameter.
-
-
Method Detail
-
cumulativeProbability
public double cumulativeProbability(double x)
The CDF for this distribution. This method returns P(X < x).- Specified by:
cumulativeProbabilityin classContinuousDistribution- Parameters:
x- the value at which the CDF is evaluated.- Returns:
- CDF for this distribution.
-
getMean
public double getMean()
Access the mean.- Returns:
- the mean.
-
getScale
public double getScale()
Access the scale parameter.- Returns:
- the scale parameter.
-
inverseCumulativeProbability
public double inverseCumulativeProbability(double p)
The inverse CDF for this distribution. This method returns x such that, P(X < x) = p.- Specified by:
inverseCumulativeProbabilityin classContinuousDistribution- Parameters:
p- the cumulative probability.- Returns:
- x
-
setMean
public void setMean(double m)
Modify the mean.- Parameters:
m- The new mean value.
-
setScale
public void setScale(double s)
Modify the scale parameter.- Parameters:
s- The new scale parameter value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG