use of dr.oldevomodel.indel.IstvanOperator 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);
}
Aggregations