VariableElimination constructor repeats calls made in super

Create issue
Issue #120 resolved
Miguel Ángel Artaso Landa created an issue

In the constructor of VariableElimination the method initializeEvidences is called.

private void initializeEvidences() { setPreResolutionEvidence(new EvidenceCase()); setPostResolutionEvidence(new EvidenceCase()); }

In the constructor of its father, InferenceAlgorithm, the following code is executed

preResolutionEvidence = new EvidenceCase(); postResolutionEvidence = new EvidenceCase();

which I think is doing exactly the same so the initializeEvidences method could be deleted as it is not used elsewhere in VariableElimination.

Comments (2)

  1. Log in to comment