Interface Distribution
-
- All Known Implementing Classes:
BetaDistribution,CauchyDistribution,ChiDistribution,ChiSquaredDistribution,ConstantDistribution,ExpGammaDistribution,ExponentialDistribution,ExponentiallyModifiedGaussianDistribution,GammaDistribution,GeneralizedExtremeValueDistribution,GeneralizedLogisticAlternateDistribution,GeneralizedLogisticDistribution,GeneralizedParetoDistribution,GumbelDistribution,HaltonUniformDistribution,InverseGaussianDistribution,KappaDistribution,LaplaceDistribution,LogGammaDistribution,LogisticDistribution,LogLogisticDistribution,LogNormalDistribution,NormalDistribution,PoissonDistribution,RayleighDistribution,SkewGeneralizedNormalDistribution,StudentsTDistribution,UniformDistribution,WeibullDistribution
public interface DistributionStatistical distributions, with their common functions.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDistribution.ParameterizerCommon distributions parameters.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description doublecdf(double val)Return the cumulative density function at the given value.doublelogpdf(double val)Return the log density of an existing valuedefault doublenextRandom(java.util.Random random)Generate a new random valuedoublepdf(double val)Return the density of an existing valuedoublequantile(double val)Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.java.lang.StringtoString()Describe the distribution
-
-
-
Method Detail
-
pdf
double pdf(double val)
Return the density of an existing value- Parameters:
val- existing value- Returns:
- distribution density
-
logpdf
double logpdf(double val)
Return the log density of an existing value- Parameters:
val- existing value- Returns:
- log distribution density
-
cdf
double cdf(double val)
Return the cumulative density function at the given value.- Parameters:
val- existing value- Returns:
- cumulative density
-
quantile
double quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.- Parameters:
val- Quantile to find- Returns:
- Quantile position
-
nextRandom
default double nextRandom(java.util.Random random)
Generate a new random value- Parameters:
random- Random number generator- Returns:
- new random value
-
toString
java.lang.String toString()
Describe the distribution- Overrides:
toStringin classjava.lang.Object- Returns:
- description
-
-