Wrong values in StochasticPropagation.getPosteriorValues() when the variables of interest are more then 1

Issue #425 new
Juan L. Mateo created an issue

Since there are two list of variables (variablesToSample and variablesOfInterest) and the order of the variables can be different, the posterior values returned can be interchanged.

It would be better not just to check if the current variable to sample is in the list of variables of interest, but obtain the the proper index:

indexOfVariableOfInterest = variablesOfInterest.indexOf(variablesToSample.get(indexOfVariable));

Comments (1)

  1. Log in to comment