Browse Source

refacto: update the doc as well

feat-normalized-lcm
Dominique Merle 1 year ago
parent
commit
f8d8c5b7da
  1. 4
      README.md

4
README.md

@ -77,10 +77,10 @@ TallyInterface tally = new TallyWithDefaultGrade(new ProposalTallyInterface[] {
In some polls with a very high amount of proposals, where participants cannot be expected to judge every last one of them, it may make sense to normalize the tallies instead of using a default grade.
To that effect, use a `TallyNormalized` instead of a `Tally`.
To that effect, use a `NormalizedTally` instead of a `Tally`.
```java
TallyInterface tally = new TallyNormalized(new ProposalTallyInterface[] {
TallyInterface tally = new NormalizedTally(new ProposalTallyInterface[] {
// Amounts of judgments received of each grade, from "worst" grade to "best" grade
new ProposalTally(new Integer[]{4, 5, 2, 1, 3, 1, 2}), // Proposal A
new ProposalTally(new Integer[]{3, 6, 2, 1, 3, 1, 2}), // Proposal B

Loading…
Cancel
Save