Class ChiSquareDistribution.NormalApproximation
java.lang.Object
org.ojalgo.random.RandomNumber
org.ojalgo.random.AbstractContinuous
org.ojalgo.random.ChiSquareDistribution
org.ojalgo.random.ChiSquareDistribution.NormalApproximation
- All Implemented Interfaces:
Comparable<RandomNumber>, DoubleSupplier, Supplier<Double>, BasicFunction, NullaryFunction<Double>, PrimitiveFunction.Nullary, ContinuousDistribution, Distribution, AccessScalar<Double>, ComparableNumber<RandomNumber>, NumberDefinition
- Enclosing class:
ChiSquareDistribution
-
Nested Class Summary
Nested classes/interfaces inherited from class ChiSquareDistribution
ChiSquareDistribution.Degree2, ChiSquareDistribution.NormalApproximationNested classes/interfaces inherited from interface BasicFunction
BasicFunction.Differentiable<N,F>, BasicFunction.Integratable<N, F>, BasicFunction.PlainUnary<T, R> -
Field Summary
FieldsFields inherited from class ChiSquareDistribution
NORMAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) doublecalculateDensity(double value) doublegetDistribution(double value) In probability theory and statistics, the cumulative distribution function (CDF), or just distribution function, describes the probability that a real-valued random variable X with a given probability distribution will be found at a value less than or equal to x.doubledoublegetQuantile(double probability) The quantile function, for any distribution, is defined for real variables between zero and one and is mathematically the inverse of the cumulative distribution function.doubleSubclasses must override either getStandardDeviation() or getVariance()!doubleSubclasses must override either getStandardDeviation() or getVariance()!Methods inherited from class ChiSquareDistribution
getDensity, ofMethods inherited from class AbstractContinuous
generateMethods inherited from class RandomNumber
checkProbabilty, compareTo, doubleValue, floatValue, intValue, invoke, longValue, newSampleSet, random, setRandom, setSeed, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContinuousDistribution
getLowerConfidenceQuantile, getUpperConfidenceQuantileMethods inherited from interface NullaryFunction
andThen, get, getAsDoubleMethods inherited from interface NumberDefinition
booleanValue, byteValue, shortValue
-
Field Details
-
myApproximation
-
-
Constructor Details
-
NormalApproximation
NormalApproximation(double degreesOfFreedom)
-
-
Method Details
-
getDistribution
public double getDistribution(double value) Description copied from interface:ContinuousDistributionIn probability theory and statistics, the cumulative distribution function (CDF), or just distribution function, describes the probability that a real-valued random variable X with a given probability distribution will be found at a value less than or equal to x. Intuitively, it is the "area so far" function of the probability distribution. Cumulative distribution functions are also used to specify the distribution of multivariate random variables. WikipediA- Specified by:
getDistributionin interfaceContinuousDistribution- Overrides:
getDistributionin classChiSquareDistribution- Parameters:
value- x- Returns:
- P(≤x)
-
getExpected
public double getExpected()- Specified by:
getExpectedin interfaceDistribution- Overrides:
getExpectedin classChiSquareDistribution
-
getQuantile
public double getQuantile(double probability) Description copied from interface:ContinuousDistributionThe quantile function, for any distribution, is defined for real variables between zero and one and is mathematically the inverse of the cumulative distribution function. WikipediA The input probability absolutely has to be [0.0, 1.0], but values close to 0.0 and 1.0 may be problematic- Specified by:
getQuantilein interfaceContinuousDistribution- Overrides:
getQuantilein classChiSquareDistribution- Parameters:
probability- P(<=x)- Returns:
- x
-
getStandardDeviation
public double getStandardDeviation()Description copied from class:RandomNumberSubclasses must override either getStandardDeviation() or getVariance()!- Specified by:
getStandardDeviationin interfaceDistribution- Overrides:
getStandardDeviationin classRandomNumber- See Also:
-
getVariance
public double getVariance()Description copied from class:RandomNumberSubclasses must override either getStandardDeviation() or getVariance()!- Specified by:
getVariancein interfaceDistribution- Overrides:
getVariancein classChiSquareDistribution- See Also:
-
calculateDensity
double calculateDensity(double value) - Overrides:
calculateDensityin classChiSquareDistribution
-