use of dr.inference.hmc.SumDerivative in project beast-mcmc by beast-dev.
the class SumDerivativeParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
List<GradientWrtParameterProvider> derivativeList = new ArrayList<GradientWrtParameterProvider>();
for (int i = 0; i < xo.getChildCount(); i++) {
GradientWrtParameterProvider grad = (GradientWrtParameterProvider) xo.getChild(i);
derivativeList.add(grad);
}
return new SumDerivative(derivativeList);
}
Aggregations