MCPcopy Create free account
hub / github.com/FabricMC/Matcher / getScore

Method getScore

src/main/java/matcher/Matcher.java:739–743  ·  view source on GitHub ↗
(double rawScore, double maxScore)

Source from the content-addressed store, hash-verified

737 }
738
739 public static double getScore(double rawScore, double maxScore) {
740 double ret = rawScore / maxScore;
741
742 return ret * ret;
743 }
744
745 private static double getRawScore(double score, double maxScore) {
746 return Math.sqrt(score) * maxScore;

Callers 2

checkRankMethod · 0.95
getScoreMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected