Skip to content

Commit

Permalink
refactor ComparisonBenchmarkDataSupplier
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkeil committed Oct 1, 2024
1 parent 8a62a08 commit 75d12c1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ public ComparisonBenchmarkDataSupplier(int sampleSize, int sampleCount, double p
this.sampleSize = sampleSize;
this.sampleCount = sampleCount;
this.errorRate = errorRate;
// generate wrong values per dataset
// wrongValues[0] should not be used and exists to improve code readability by avoiding -1 shifts later on
this.wrongValues = new RDFNode[sampleCount + 1];
for (int sampleId = 0; sampleId <= sampleCount; sampleId++) {
this.wrongValues = new RDFNode[sampleCount];
for (int sampleId = 0; sampleId < sampleCount; sampleId++) {
this.wrongValues[sampleId] = ResourceFactory.createTypedLiteral(sampleId);
}
calculateOverlapShares(sampleCount, pairwiseOverlap);
Expand Down

0 comments on commit 75d12c1

Please sign in to comment.