optimize range by score

This commit is contained in:
hdt3213
2020-05-08 22:17:36 +08:00
parent 4289d621f6
commit 497ebdea14
4 changed files with 98 additions and 19 deletions

View File

@@ -24,6 +24,8 @@ type ScoreBorder struct {
Exclude bool
}
// if max.greater(score) then the score is within the upper border
// do not use min.greater()
func (border *ScoreBorder)greater(value float64)bool {
if border.Inf == negativeInf {
return false