public class HypothesisTest
extends java.lang.Object
| Constructor and Description |
|---|
HypothesisTest(java.util.Map<java.lang.String,Model> nullModel,
java.util.Map<java.lang.String,Model> altModel,
Optimizer o,
int reps)
Constructor
|
HypothesisTest(Model nullModel,
Model altModel,
Optimizer o,
int reps)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
test(java.util.Map<java.lang.String,Tree> t,
Alignment a,
Alignment unobserved,
Parameters nullParams,
Parameters altParams)
Does a hypothesis test on the given data and gives a p-value
|
double |
test(java.util.Map<java.lang.String,Tree> t,
Alignment a,
Alignment unobserved,
Parameters nullParams,
Parameters altParams,
java.util.Map<java.lang.String,java.lang.String> recode)
Does a hypothesis test on the given data and gives a p-value
|
double |
test(Tree t,
Alignment a,
Alignment unobserved,
Parameters nullParams,
Parameters altParams)
Does a hypothesis test on the given data and gives a p-value
|
double |
test(Tree t,
Alignment a,
Alignment unobserved,
Parameters nullParams,
Parameters altParams,
java.util.Map<java.lang.String,java.lang.String> recode)
Does a hypothesis test on the given data and gives a p-value
|
public HypothesisTest(Model nullModel, Model altModel, Optimizer o, int reps)
nullModel - The null modelaltModel - The alternative modelo - The optimiser to be usedreps - The number of samples of the null distribution to generatepublic HypothesisTest(java.util.Map<java.lang.String,Model> nullModel, java.util.Map<java.lang.String,Model> altModel, Optimizer o, int reps)
nullModel - Map from site class to null model for that site classaltModel - Map from site class to the alternate model for that site classo - The optimiser to be usedreps - The number of samples of the null distribution to generatepublic double test(Tree t, Alignment a, Alignment unobserved, Parameters nullParams, Parameters altParams) throws GeneralException
t - The treea - The alignmentunobserved - Any unobserved statesnullParams - The parameters of the null modelaltParams - The parameters of the alternative modelGeneralException - When there is a problem performing the hypothesis testpublic double test(Tree t, Alignment a, Alignment unobserved, Parameters nullParams, Parameters altParams, java.util.Map<java.lang.String,java.lang.String> recode) throws GeneralException
t - The treea - The alignmentunobserved - Any unobserved statesnullParams - The parameters of the null modelaltParams - The parameters of the alternative modelrecode - The recoding to be passed to the simulator. See
Simulate.getAlignment(int, java.util.Map) for while this is necessary.GeneralException - When there is a problem performing the hypothesis testpublic double test(java.util.Map<java.lang.String,Tree> t, Alignment a, Alignment unobserved, Parameters nullParams, Parameters altParams) throws GeneralException
t - Map from site class to treea - The alignmentunobserved - Any unobserved statesnullParams - The parameters of the null modelaltParams - The parameters of the alternative modelGeneralException - When there is a problem performing the hypothesis testpublic double test(java.util.Map<java.lang.String,Tree> t, Alignment a, Alignment unobserved, Parameters nullParams, Parameters altParams, java.util.Map<java.lang.String,java.lang.String> recode) throws GeneralException
t - Map from site class to treea - The alignmentunobserved - Any unobserved statesnullParams - The parameters of the null modelaltParams - The parameters of the alternative modelrecode - The recoding to be passed to the simulator. See
Simulate.getAlignment(int, java.util.Map) for while this is necessary.GeneralException - When there is a problem performing the hypothesis test