Package org.drip.measure.chisquare
Class R1NonCentral
java.lang.Object
org.drip.measure.continuous.R1Univariate
org.drip.measure.chisquare.R1NonCentral
- Direct Known Subclasses:
R1NonCentralCumulantInvariant
public class R1NonCentral extends R1Univariate
R1NonCentral implements the Distribution Table for the R1 Non-central Chi-Square
Distribution. The References are:
- Johnson, N. L., S. Kotz, and N. Balakrishnan (1995): Continuous Univariate Distributions 2nd Edition John Wiley and Sons
- Muirhead, R. (2005): Aspects of Multivariate Statistical Theory 2nd Edition Wiley
- Non-central Chi-Squared Distribution (2019): Chi-Squared Function https://en.wikipedia.org/wiki/Noncentral_chi-squared_distribution
- Sankaran, M. (1963): Approximations to the Non-Central Chi-Square Distribution Biometrika 50 (1-2) 199-204
- Young, D. S. (2010): tolerance: An R Package for Estimating Tolerance Intervals Journal of Statistical Software 36 (5) 1-39
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd Continuous/Discrete Probability Measures
- Package = Chi-Square Distribution Implementation/Properties
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description R1NonCentral(R1NonCentralParameters r1NonCentralParameters, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator)
R1NonCentral Constructor -
Method Summary
Modifier and Type Method Description double
cumulant(int n)
Compute the Cumulantdouble
cumulative(double t)
Compute the cumulative under the distribution to the given valuedouble
density(double x)
Compute the Density under the Distribution at the given VariateR1ToR1
digammaEstimator()
Retrieve the Digamma Estimatordouble
excessKurtosis()
Retrieve the Excess Kurtosis of the DistributionR1ToR1
gammaEstimator()
Retrieve the Gamma Estimatordouble[]
leadingCentralMoments()
Compute the Leading central Momentsdouble[]
leadingRawMoments()
Compute the Leading Non-central MomentsR2ToR1
lowerIncompleteGammaEstimator()
Retrieve the Lower Incomplete Gamma Estimatordouble
mean()
Retrieve the Mean of the DistributionModifiedBesselFirstKindEstimator
modifiedBesselFirstKindEstimator()
Retrieve the Modified Bessel First Kind EstimatorR1ToR1
momentGeneratingFunction()
Construct the Moment Generating Functiondouble
nonCentralMoment(int n)
Compute the Non-central MomentR1NonCentralParameters
parameters()
Retrieve the R1 Non-Central Parametersdouble
skewness()
Retrieve the Skewness of the Distributionstatic R1NonCentral
Standard(double degreesOfFreedom, double nonCentralityParameter, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator)
Construct the Standard Instance of R1NonCentraldouble[]
support()
Lay out the Support of the PDF Rangedouble
variance()
Retrieve the Variance of the DistributionMethods inherited from class org.drip.measure.continuous.R1Univariate
bPOE, centralMoment, cvar, differentialEntropy, expectedShortfall, fisherInformation, histogram, incremental, invCumulative, iqr, kullbackLeiblerDivergence, median, mode, populationCentralMeasures, probabilityGeneratingFunction, quantile, random, randomArray, supported, tukeyAnomaly, tukeyCriterion
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
R1NonCentral
public R1NonCentral(R1NonCentralParameters r1NonCentralParameters, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator) throws java.lang.ExceptionR1NonCentral Constructor- Parameters:
r1NonCentralParameters
- R1 Non-central ParametersgammaEstimator
- Gamma EstimatordigammaEstimator
- Digamma EstimatorlowerIncompleteGammaEstimator
- Lower Incomplete Gamma EstimatormodifiedBesselFirstKindEstimator
- Modified Bessel First Kind Estimator- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
Standard
public static final R1NonCentral Standard(double degreesOfFreedom, double nonCentralityParameter, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator)Construct the Standard Instance of R1NonCentral- Parameters:
degreesOfFreedom
- Degrees of FreedomnonCentralityParameter
- Non-centrality ParametergammaEstimator
- Gamma EstimatordigammaEstimator
- Digamma EstimatorlowerIncompleteGammaEstimator
- Lower Incomplete Gamma EstimatormodifiedBesselFirstKindEstimator
- Modified Bessel First Kind Estimator- Returns:
- The Standard Instance of R1NonCentral
-
parameters
Retrieve the R1 Non-Central Parameters- Returns:
- The R1 Non-Central Parameters
-
gammaEstimator
Retrieve the Gamma Estimator- Returns:
- Gamma Estimator
-
digammaEstimator
Retrieve the Digamma Estimator- Returns:
- Digamma Estimator
-
lowerIncompleteGammaEstimator
Retrieve the Lower Incomplete Gamma Estimator- Returns:
- Lower Incomplete Gamma Estimator
-
modifiedBesselFirstKindEstimator
Retrieve the Modified Bessel First Kind Estimator- Returns:
- Modified Bessel First Kind Estimator
-
support
public double[] support()Description copied from class:R1Univariate
Lay out the Support of the PDF Range- Specified by:
support
in classR1Univariate
- Returns:
- Support of the PDF Range
-
density
public double density(double x) throws java.lang.ExceptionDescription copied from class:R1Univariate
Compute the Density under the Distribution at the given Variate- Specified by:
density
in classR1Univariate
- Parameters:
x
- Variate at which the Density needs to be computed- Returns:
- The Density
- Throws:
java.lang.Exception
- Thrown if the input is invalid
-
cumulative
public double cumulative(double t) throws java.lang.ExceptionDescription copied from class:R1Univariate
Compute the cumulative under the distribution to the given value- Specified by:
cumulative
in classR1Univariate
- Parameters:
t
- Variate to which the cumulative is to be computed- Returns:
- The cumulative
- Throws:
java.lang.Exception
- Thrown if the inputs are invalid
-
mean
public double mean() throws java.lang.ExceptionDescription copied from class:R1Univariate
Retrieve the Mean of the Distribution- Specified by:
mean
in classR1Univariate
- Returns:
- The Mean of the Distribution
- Throws:
java.lang.Exception
- Thrown if the Mean cannot be estimated
-
variance
public double variance() throws java.lang.ExceptionDescription copied from class:R1Univariate
Retrieve the Variance of the Distribution- Specified by:
variance
in classR1Univariate
- Returns:
- The Variance of the Distribution
- Throws:
java.lang.Exception
- Thrown if the Variance cannot be estimated
-
skewness
public double skewness() throws java.lang.ExceptionDescription copied from class:R1Univariate
Retrieve the Skewness of the Distribution- Overrides:
skewness
in classR1Univariate
- Returns:
- The Skewness of the Distribution
- Throws:
java.lang.Exception
- Thrown if the Skewness cannot be estimated
-
excessKurtosis
public double excessKurtosis() throws java.lang.ExceptionDescription copied from class:R1Univariate
Retrieve the Excess Kurtosis of the Distribution- Overrides:
excessKurtosis
in classR1Univariate
- Returns:
- The Excess Kurtosis of the Distribution
- Throws:
java.lang.Exception
- Thrown if the Skewness cannot be estimated
-
momentGeneratingFunction
Description copied from class:R1Univariate
Construct the Moment Generating Function- Overrides:
momentGeneratingFunction
in classR1Univariate
- Returns:
- The Moment Generating Function
-
cumulant
public double cumulant(int n) throws java.lang.ExceptionCompute the Cumulant- Parameters:
n
- Cumulant Index- Returns:
- The Cumulant
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
leadingRawMoments
public double[] leadingRawMoments()Compute the Leading Non-central Moments- Returns:
- Leading Non-central Moments
-
leadingCentralMoments
public double[] leadingCentralMoments()Compute the Leading central Moments- Returns:
- Leading central Moments
-
nonCentralMoment
public double nonCentralMoment(int n) throws java.lang.ExceptionCompute the Non-central Moment- Overrides:
nonCentralMoment
in classR1Univariate
- Parameters:
n
- Moment Index- Returns:
- The Non-central Moment
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-