Package jsl.utilities.distributions
Interface VarianceIfc
-
- All Known Subinterfaces:
DistributionFunctionIfc
,DistributionIfc
,LossFunctionDistributionIfc
- All Known Implementing Classes:
Bernoulli
,Beta
,Binomial
,Constant
,DEmpiricalCDF
,Distribution
,DUniform
,Exponential
,Gamma
,Geometric
,LogLogistic
,Lognormal
,MTP
,NegativeBinomial
,Normal
,PearsonType5
,PearsonType6
,Poisson
,ShiftedDistribution
,ShiftedGeometric
,ShiftedLossFunctionDistribution
,StudentT
,Triangular
,TruncatedDistribution
,Uniform
,VConstant
,Weibull
public interface VarianceIfc
Defines an interface for getting the variance of a distribution
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getStandardDeviation()
Returns the standard deviation for the probability distribution as the square root of the variance if it existsdouble
getVariance()
Returns the variance of the distribution if defined
-
-
-
Method Detail
-
getVariance
double getVariance()
Returns the variance of the distribution if defined- Returns:
- double the variance of the random variable
-
getStandardDeviation
double getStandardDeviation()
Returns the standard deviation for the probability distribution as the square root of the variance if it exists- Returns:
- sqrt(getVariance())
-
-