-
assigned issue to
- marked as enhancement
- marked as minor
VariableElimination constructor repeats calls made in super
Issue #120
resolved
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)
-
-
reporter - changed status to resolved
Eliminated the duplicated code
- Log in to comment