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 doublecumulant(int n)Compute the Cumulantdoublecumulative(double t)Compute the cumulative under the distribution to the given valuedoubledensity(double x)Compute the Density under the Distribution at the given VariateR1ToR1digammaEstimator()Retrieve the Digamma EstimatordoubleexcessKurtosis()Retrieve the Excess Kurtosis of the DistributionR1ToR1gammaEstimator()Retrieve the Gamma Estimatordouble[]leadingCentralMoments()Compute the Leading central Momentsdouble[]leadingRawMoments()Compute the Leading Non-central MomentsR2ToR1lowerIncompleteGammaEstimator()Retrieve the Lower Incomplete Gamma Estimatordoublemean()Retrieve the Mean of the DistributionModifiedBesselFirstKindEstimatormodifiedBesselFirstKindEstimator()Retrieve the Modified Bessel First Kind EstimatorR1ToR1momentGeneratingFunction()Construct the Moment Generating FunctiondoublenonCentralMoment(int n)Compute the Non-central MomentR1NonCentralParametersparameters()Retrieve the R1 Non-Central Parametersdoubleskewness()Retrieve the Skewness of the Distributionstatic R1NonCentralStandard(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 Rangedoublevariance()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, tukeyCriterionMethods 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:R1UnivariateLay out the Support of the PDF Range- Specified by:
supportin classR1Univariate- Returns:
- Support of the PDF Range
-
density
public double density(double x) throws java.lang.ExceptionDescription copied from class:R1UnivariateCompute the Density under the Distribution at the given Variate- Specified by:
densityin 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:R1UnivariateCompute the cumulative under the distribution to the given value- Specified by:
cumulativein 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:R1UnivariateRetrieve the Mean of the Distribution- Specified by:
meanin 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:R1UnivariateRetrieve the Variance of the Distribution- Specified by:
variancein 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:R1UnivariateRetrieve the Skewness of the Distribution- Overrides:
skewnessin 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:R1UnivariateRetrieve the Excess Kurtosis of the Distribution- Overrides:
excessKurtosisin classR1Univariate- Returns:
- The Excess Kurtosis of the Distribution
- Throws:
java.lang.Exception- Thrown if the Skewness cannot be estimated
-
momentGeneratingFunction
Description copied from class:R1UnivariateConstruct the Moment Generating Function- Overrides:
momentGeneratingFunctionin 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:
nonCentralMomentin classR1Univariate- Parameters:
n- Moment Index- Returns:
- The Non-central Moment
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-