Add a check for ForgettingCurveUtils::decodeProbability.
Bug: 13607383 Change-Id: I1a56c52173d0e458864e65fb1c1f4603c0c81c6f
This commit is contained in:
parent
a17195224b
commit
cf88cf6593
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue