Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
prasser committed Jan 3, 2025
1 parent d85c572 commit f946180
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private JournalistRisk getJournalistRisk(Groupify<TupleWrapper> population,
double numRecordsInSample = 0d;
double numClassesInSample = 0d;
double smallestClassSizeInPopulation = Integer.MAX_VALUE;
double largestClassSizeInPopulation = Integer.MIN_VALUE;
double largestClassSizeInPopulation = -Double.MAX_VALUE;
int maxindex = sample.size();
int index = 0;

Expand Down Expand Up @@ -523,7 +523,7 @@ private ProsecutorRisk getProsecutorRisk(Groupify<TupleWrapper> population,
double numRecords = 0d;
double numClasses = 0d;
double smallestClassSize = Integer.MAX_VALUE;
double largestClassSize = Integer.MIN_VALUE;
double largestClassSize = -Double.MAX_VALUE;
int maxindex = sample.size();
int index = 0;

Expand All @@ -547,7 +547,7 @@ private ProsecutorRisk getProsecutorRisk(Groupify<TupleWrapper> population,
smallestClassSize = groupSize;
}
// Compute rM
if (groupSize < largestClassSize) {
if (groupSize > largestClassSize) {
largestClassSize = groupSize;
}
// Compute rC
Expand Down

0 comments on commit f946180

Please sign in to comment.