Skip to content

Commit

Permalink
fix ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
gr-im committed Sep 3, 2024
1 parent cf76ab5 commit e926a81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions articles/rank-aggregation.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ percentage only if you are in the same slice.
```ocaml
let slice_of data =
let p = result data |> Float.to_int in
if p = 100 then 8 else p / 9
if p = 100 then 8 else p / 8
```

We assume that if we have a perfect score (`100`), we project the result into
the last slice, `9`, so that the score can be compared with the results between
`90` and 100 (_inclusive_). Now we can refine our heuristic so that it only
the last slice, `8`, so that the score can be compared with the results between
`~90` and 100 (_inclusive_). Now we can refine our heuristic so that it only
produces a fine comparison when scores are present in the same slice:

```ocaml
Expand Down

0 comments on commit e926a81

Please sign in to comment.