Search in sources :

Example 1 with TKF91Likelihood

use of dr.oldevomodel.indel.TKF91Likelihood in project beast-mcmc by beast-dev.

the class IstvanOperatorParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    TKF91Likelihood likelihood = (TKF91Likelihood) xo.getChild(TKF91Likelihood.class);
    double weight = xo.getDoubleAttribute("weight");
    double iP = xo.getDoubleAttribute("iP");
    double exponent = xo.getDoubleAttribute("exponent");
    double gapPenalty = xo.getDoubleAttribute("gapPenalty");
    return new IstvanOperator(iP, exponent, gapPenalty, weight, likelihood);
}
Also used : TKF91Likelihood(dr.oldevomodel.indel.TKF91Likelihood) IstvanOperator(dr.oldevomodel.indel.IstvanOperator)

Example 2 with TKF91Likelihood

use of dr.oldevomodel.indel.TKF91Likelihood in project beast-mcmc by beast-dev.

the class TKF91LikelihoodParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    TreeModel tree = (TreeModel) xo.getChild(TreeModel.class);
    Alignment alignment = (Alignment) xo.getChild(Alignment.class);
    GammaSiteModel siteModel = (GammaSiteModel) xo.getChild(GammaSiteModel.class);
    TKF91Model tkfModel = (TKF91Model) xo.getChild(TKF91Model.class);
    return new TKF91Likelihood(tree, alignment, siteModel, tkfModel);
}
Also used : TreeModel(dr.evomodel.tree.TreeModel) TKF91Likelihood(dr.oldevomodel.indel.TKF91Likelihood) Alignment(dr.evolution.alignment.Alignment) GammaSiteModel(dr.oldevomodel.sitemodel.GammaSiteModel) TKF91Model(dr.oldevomodel.indel.TKF91Model)

Aggregations

TKF91Likelihood (dr.oldevomodel.indel.TKF91Likelihood)2 Alignment (dr.evolution.alignment.Alignment)1 TreeModel (dr.evomodel.tree.TreeModel)1 IstvanOperator (dr.oldevomodel.indel.IstvanOperator)1 TKF91Model (dr.oldevomodel.indel.TKF91Model)1 GammaSiteModel (dr.oldevomodel.sitemodel.GammaSiteModel)1