make DiscreteConditional::likelihood match the declaration

release/4.3a0
Varun Agrawal 2024-12-07 19:24:29 -05:00
parent 38563da342
commit 9633ad1fd8
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ DiscreteConditional::shared_ptr DiscreteConditional::choose(
}
/* ************************************************************************** */
DecisionTreeFactor::shared_ptr DiscreteConditional::likelihood(
DiscreteFactor::shared_ptr DiscreteConditional::likelihood(
const DiscreteValues& frontalValues) const {
// Get the big decision tree with all the levels, and then go down the
// branches based on the value of the frontal variables.
@ -226,7 +226,7 @@ DecisionTreeFactor::shared_ptr DiscreteConditional::likelihood(
}
/* ****************************************************************************/
DecisionTreeFactor::shared_ptr DiscreteConditional::likelihood(
DiscreteFactor::shared_ptr DiscreteConditional::likelihood(
size_t frontal) const {
if (nrFrontals() != 1)
throw std::invalid_argument(