-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More similarity metrics #1396
More similarity metrics #1396
Conversation
|
||
public enum SimilarityMetric implements ToDoubleFunction<JPlagComparison> { | ||
AVG("average similarity", JPlagComparison::similarity), | ||
MIN("minimum similarity", JPlagComparison::minimalSimilarity), | ||
MAX("maximal similarity", JPlagComparison::maximalSimilarity), | ||
INTERSECTION("matched tokens", it -> (double) it.getNumberOfMatchedTokens()); | ||
INTERSECTION("matched tokens", it -> (double) it.getNumberOfMatchedTokens()), | ||
SYMMETRIC("symmetric similarity", it -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this equivalent to the implementation of the "average similarity", only ignoring base code?
With reversing the distribution, it now is the wrong way for the report-viewer. We should decide whether we want it to be reversed in the application and then written into the report the way the report-viewer currently expects it, or whether the report-viewer should turn it around |
Quality Gate passed for 'JPlag Report Viewer'Kudos, no new issues were introduced! 0 New issues |
Quality Gate passed for 'JPlag Plagiarism Detector'The SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
Replaced by #2058 |
Adds the similarity metrics described in #1134
Also changes the report generation to export all metrics defined in the enum
As discussed the distributions in the report are not reversed anymore, this is an api breaking change.