KendallDistribution
javanpst.distributions.tests

## Class KendallDistribution

• `public class KendallDistributionextends Object`
An implementation of the Kendall distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
• ### Method Summary

Methods
Modifier and TypeMethod and Description
`double``computeApproximatedProbability(int n, double T)`
Computes approximated probability of the exact Kendall distribution
`double``computeAsymptoticProbability(double Z, boolean dependence)`
Computes asymptotic probability of the Kendall distribution
`double``computeExactProbability(int n, double T)`
Computes exact probability of the Kendall distribution
`static Critical1KeyTable``getCriticalTable()`
Gets the table of critical values of the distribution
`static Aproximate1KeyTable``getExactTable()`
Gets the table of the distribution
`static KendallDistribution``getInstance()`
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Method Detail

• #### getInstance

`public static KendallDistribution getInstance()`
Returns:
the instance of the distribution
• #### getCriticalTable

`public static Critical1KeyTable getCriticalTable()`
Gets the table of critical values of the distribution
Returns:
Reference to the table
• #### getExactTable

`public static Aproximate1KeyTable getExactTable()`
Gets the table of the distribution
Returns:
Reference to the table
• #### computeExactProbability

`public double computeExactProbability(int n,                             double T)`
Computes exact probability of the Kendall distribution
Parameters:
`n` - number of pairs
`T` - Kendall statistic
Returns:
p-value computed
• #### computeApproximatedProbability

`public double computeApproximatedProbability(int n,                                    double T)`
Computes approximated probability of the exact Kendall distribution
Parameters:
`n` - number of pairs
`T` - Kendall statistic
Returns:
p-value computed
• #### computeAsymptoticProbability

`public double computeAsymptoticProbability(double Z,                                  boolean dependence)`
Computes asymptotic probability of the Kendall distribution
Parameters:
`Z` - normal approximation
`dependence` - true if testing positive dependence. False, if negative
Returns:
p-value computed

SCaVis 2.1 © jWork.ORG