diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-11-09 18:00:24 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-11-09 18:00:24 +0300 |
commit | e0b4d1c8c7f512607344e00622416bf641926fb7 (patch) | |
tree | 74dcc340487c988e7fabd538274fd9739e3d7a38 /moses/SquareMatrix.cpp | |
parent | 32e29d6b8ad7134e514f849213be9d817033bb73 (diff) |
beautify
Diffstat (limited to 'moses/SquareMatrix.cpp')
-rw-r--r-- | moses/SquareMatrix.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/moses/SquareMatrix.cpp b/moses/SquareMatrix.cpp index 470ac52d2..0923fe4de 100644 --- a/moses/SquareMatrix.cpp +++ b/moses/SquareMatrix.cpp @@ -57,13 +57,13 @@ float SquareMatrix::CalcEstimatedScore( Bitmap const &bitmap ) const } // end of a gap? else if(bitmap.GetValue(currPos) == true && startGap != notInGap) { - estimatedScore += GetScore(startGap, currPos - 1); + estimatedScore += GetScore(startGap, currPos - 1); startGap = notInGap; } } // coverage ending with gap? if (startGap != notInGap) { - estimatedScore += GetScore(startGap, bitmap.GetSize() - 1); + estimatedScore += GetScore(startGap, bitmap.GetSize() - 1); } return estimatedScore; @@ -108,13 +108,13 @@ float SquareMatrix::CalcEstimatedScore( Bitmap const &bitmap, size_t startPos, s } // end of a gap? else if(startGap != notInGap && (bitmap.GetValue(currPos) == true || (startPos <= currPos && currPos <= endPos))) { - estimatedScore += GetScore(startGap, currPos - 1); + estimatedScore += GetScore(startGap, currPos - 1); startGap = notInGap; } } // coverage ending with gap? if (lastCovered != bitmap.GetSize() - 1) { - estimatedScore += GetScore(lastCovered+1, bitmap.GetSize() - 1); + estimatedScore += GetScore(lastCovered+1, bitmap.GetSize() - 1); } return estimatedScore; |