am cf88cf65: Add a check for ForgettingCurveUtils::decodeProbability.
* commit 'cf88cf65936962373797d14694011b15d0f4c5f0': Add a check for ForgettingCurveUtils::decodeProbability.main
commit
683889298e
|
@ -72,7 +72,8 @@ const ForgettingCurveUtils::ProbabilityTable ForgettingCurveUtils::sProbabilityT
|
|||
const int elapsedTimeStepCount = getElapsedTimeStepCount(historicalInfo->getTimeStamp(),
|
||||
headerPolicy->getForgettingCurveDurationToLevelDown());
|
||||
return sProbabilityTable.getProbability(
|
||||
headerPolicy->getForgettingCurveProbabilityValuesTableId(), historicalInfo->getLevel(),
|
||||
headerPolicy->getForgettingCurveProbabilityValuesTableId(),
|
||||
std::min(std::max(historicalInfo->getLevel(), 0), MAX_LEVEL),
|
||||
std::min(std::max(elapsedTimeStepCount, 0), MAX_ELAPSED_TIME_STEP_COUNT));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue