Package pal.statistics
Class ShimodairaHasegawaTest
- java.lang.Object
-
- pal.statistics.ShimodairaHasegawaTest
-
- All Implemented Interfaces:
Report
public class ShimodairaHasegawaTest extends java.lang.Object implements Report
Shimodaira-Hasegawa-Test (1999) to compare a set of evolutionary hypotheses- Version:
- $Id: ShimodairaHasegawaTest.java,v 1.4 2001/07/13 14:39:13 korbinian Exp $
- Author:
- Korbinian Strimmer
-
-
Field Summary
Fields Modifier and Type Field Description intbestHnumber of maximum likelihood hypothesisdouble[]deltalog-likelihood difference to maximum likelihood hypothesisintnumBootstrapsnumber of bootstrap replicatesdouble[]pvalcorresponding p-value
-
Constructor Summary
Constructors Constructor Description ShimodairaHasegawaTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompare(double[][] sLogL, int numBoot)Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, pval (which will automatically be created by this procedure).voidcompare(double[][] pLogL, int[] alias, int numBoot)Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, 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)
-
-
-
Method Detail
-
compare
public void compare(double[][] sLogL, int numBoot)Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, pval (which will automatically be created by this procedure).- Parameters:
sLogL- log-likelihoods of each sitenumBoot- number of bootstraps
-
compare
public void compare(double[][] pLogL, int[] alias, int numBoot)Compare all given hypotheses to the best (ML) hypothesis and store results in public arrays delta, pval (which will automatically be created by this procedure).- Parameters:
pLogL- log-likelihoods of each patternalias- map of patterns to sites in sequencenumBoot- number of bootstraps
-
-