use of dr.inference.hmc.PathGradient in project beast-mcmc by beast-dev.
the class PathGradientParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
GradientWrtParameterProvider source = (GradientWrtParameterProvider) xo.getElementFirstChild(PathLikelihood.SOURCE);
GradientWrtParameterProvider destination = (GradientWrtParameterProvider) xo.getElementFirstChild(PathLikelihood.DESTINATION);
return new PathGradient(source, destination);
}
Aggregations