Class FDistribution
java.lang.Object
math.FDistribution
This class calculates the CDF and ICDF of the F(Fisher) distribution
- Author:
- Federico Granata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleCDF(double f) CDF ALGORITHM AS 63 APPL.static doubleCDF(double f, int num, int den) CDF ALGORITHM AS 63 APPL.doubleICDF(double p) get the quantile of a probability f computes f, given P P(f>x) it uses the false position method for solving the problemstatic doubleICDF(double p, int num, int den) voidsetParameters(int num, int den) sets the degrees of freedom of the distributionstatic voidtest()test function
-
Constructor Details
-
FDistribution
public FDistribution(int num, int den) Creates a new instance of FDistribution- Parameters:
num- numerator degrees of freedomden- denominator degrees of freedom
-
-
Method Details
-
setParameters
public void setParameters(int num, int den) sets the degrees of freedom of the distribution- Parameters:
num- numerator degrees of freedomden- denominator degrees of freedom
-
CDF
public static double CDF(double f, int num, int den) CDF ALGORITHM AS 63 APPL. STATIST. VOL.32, NO.1 Computes P(f>x)- Parameters:
f- quantilenum- numerator degrees of freedomden- denominator degrees of freedom
-
CDF
public double CDF(double f) CDF ALGORITHM AS 63 APPL. STATIST. VOL.32, NO.1 Computes P(f>x)- Parameters:
f- quantile- Returns:
- the resulting double
-
ICDF
public double ICDF(double p) get the quantile of a probability f computes f, given P P(f>x) it uses the false position method for solving the problem -
ICDF
public static double ICDF(double p, int num, int den) -
test
public static void test()test function
-