small refactor

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901259 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-05-25 20:45:36 +00:00
parent 35be1fd6c0
commit 4b995b5906
1 changed files with 2 additions and 2 deletions

View File

@ -43,10 +43,10 @@ public final class DAverage implements IDStarAlgorithm {
@Override
public ValueEval getResult() {
return count == 0 ? NumberEval.ZERO : new NumberEval(divide());
return count == 0 ? NumberEval.ZERO : new NumberEval(getAverage());
}
private double divide() {
private double getAverage() {
return divide(total, count);
}