Search in sources :

Example 1 with PathGradient

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);
}
Also used : PathGradient(dr.inference.hmc.PathGradient) GradientWrtParameterProvider(dr.inference.hmc.GradientWrtParameterProvider)

Aggregations

GradientWrtParameterProvider (dr.inference.hmc.GradientWrtParameterProvider)1 PathGradient (dr.inference.hmc.PathGradient)1