Search in sources :

Example 1 with AlloppMulLabTree

use of dr.evomodel.alloppnet.speciation.AlloppMulLabTree in project beast-mcmc by beast-dev.

the class AlloppSpeciesNetworkModelTEST method testLhoodMulLabTree.

public void testLhoodMulLabTree() {
    ApSpInfo[] apspecies = new ApSpInfo[3];
    apspecies[0] = new ApSpInfo("a", 2, new Individual[0]);
    apspecies[1] = new ApSpInfo("b", 2, new Individual[0]);
    apspecies[2] = new ApSpInfo("z", 4, new Individual[0]);
    AlloppSpeciesBindings testASB = new AlloppSpeciesBindings(apspecies);
    AlloppMulLabTree testamlt = new AlloppMulLabTree(testASB);
    double llhood = testamlt.testGeneTreeInMULTreeLogLikelihood();
    assertEquals(llhood, -13.562218135041552713, 1e-10);
    System.out.println(llhood);
}
Also used : AlloppSpeciesBindings(dr.evomodel.alloppnet.speciation.AlloppSpeciesBindings) Individual(dr.evomodel.alloppnet.speciation.AlloppSpeciesBindings.Individual) ApSpInfo(dr.evomodel.alloppnet.speciation.AlloppSpeciesBindings.ApSpInfo) AlloppMulLabTree(dr.evomodel.alloppnet.speciation.AlloppMulLabTree)

Aggregations

AlloppMulLabTree (dr.evomodel.alloppnet.speciation.AlloppMulLabTree)1 AlloppSpeciesBindings (dr.evomodel.alloppnet.speciation.AlloppSpeciesBindings)1 ApSpInfo (dr.evomodel.alloppnet.speciation.AlloppSpeciesBindings.ApSpInfo)1 Individual (dr.evomodel.alloppnet.speciation.AlloppSpeciesBindings.Individual)1