Package pal.statistics
Class KishinoHasegawaTest
- java.lang.Object
-
- pal.statistics.KishinoHasegawaTest
-
- All Implemented Interfaces:
Report
public class KishinoHasegawaTest extends java.lang.Object implements Report
Kishino-Hasegawa-(Templeton)-Test (1989, 1983) to compare a set of evolutionary hypotheses- Version:
- $Id: KishinoHasegawaTest.java,v 1.6 2004/02/25 02:55:55 matt Exp $
- Author:
- Korbinian Strimmer
-
-
Field Summary
Fields Modifier and Type Field Description intbestHnumber of maximum likelihood hypothesisdouble[]deltalog-likelihood difference to maximum likelihood hypothesisdouble[]deltaSEestimated error of log-likelihood differencesdouble[]pvalcorresponding p-value (two-sided test on normal distribution)
-
Constructor Summary
Constructors Constructor Description KishinoHasegawaTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompare(double[][] sLogL)Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, deltaSE, pval (which will automatically be created by this procedure).voidcompare(double[][] pLogL, int[] alias)Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, deltaSE, pval (which will automatically be created by this procedure).voidreport(java.io.PrintWriter out)print human readable report (e.g., on parameters and associated model)
-
-
-
Field Detail
-
bestH
public int bestH
number of maximum likelihood hypothesis
-
delta
public double[] delta
log-likelihood difference to maximum likelihood hypothesis
-
deltaSE
public double[] deltaSE
estimated error of log-likelihood differences
-
pval
public double[] pval
corresponding p-value (two-sided test on normal distribution)
-
-
Method Detail
-
compare
public void compare(double[][] sLogL)
Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, deltaSE, pval (which will automatically be created by this procedure).- Parameters:
sLogL- log-likelihoods of each site
-
compare
public void compare(double[][] pLogL, int[] alias)Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, deltaSE, pval (which will automatically be created by this procedure).- Parameters:
pLogL- log-likelihoods of each patternalias- map of patterns to sites in sequence
-
-