@Test public void testNormConfidence2() throws Exception { for (int x=80; x<150; x++) { System.out.println(x + " -> " + NubMatchingServiceImpl.normConfidence(x)); } }
@VisibleForTesting protected static int normConfidence(int s) { return minMax(0, 100, s <= 80 ? s : (int) Math.round(75.8 + (26d * (Math.log10((s - 70d) * 1.5) - 1)))); }
NubMatchingServiceImpl implements NameUsageMatchingService, NameUsageMatchingService2 { @VisibleForTesting protected static int normConfidence(int s) { return minMax(0, 100, s <= 80 ? s : (int) Math.round(75.8 + (26d * (Math.log10((s - 70d) * 1.5) - 1)))); } }
NubMatchingServiceImpl implements NameUsageMatchingService, NameUsageMatchingService2 { @VisibleForTesting protected static int normConfidence(int s) { return minMax(0, 100, s <= 80 ? s : (int) Math.round(75.8 + (26d * (Math.log10((s - 70d) * 1.5) - 1)))); } @Inject  NubMatchingServiceImpl(NubIndex nubIndex, HigherTaxaComparator htComp, NameParser parser); }
NubMatchingServiceImpl implements NameUsageMatchingService, NameUsageMatchingService2 { @VisibleForTesting protected static int normConfidence(int s) { return minMax(0, 100, s <= 80 ? s : (int) Math.round(75.8 + (26d * (Math.log10((s - 70d) * 1.5) - 1)))); } @Inject  NubMatchingServiceImpl(NubIndex nubIndex, HigherTaxaComparator htComp, NameParser parser); NameUsageMatch2 v2(NameUsageMatch m); @Override NameUsageMatch match(String scientificName, @Nullable Rank rank, @Nullable LinneanClassification classification, boolean strict, boolean verbose); }
NubMatchingServiceImpl implements NameUsageMatchingService, NameUsageMatchingService2 { @VisibleForTesting protected static int normConfidence(int s) { return minMax(0, 100, s <= 80 ? s : (int) Math.round(75.8 + (26d * (Math.log10((s - 70d) * 1.5) - 1)))); } @Inject  NubMatchingServiceImpl(NubIndex nubIndex, HigherTaxaComparator htComp, NameParser parser); NameUsageMatch2 v2(NameUsageMatch m); @Override NameUsageMatch match(String scientificName, @Nullable Rank rank, @Nullable LinneanClassification classification, boolean strict, boolean verbose); static final Map<TaxonomicStatus, Integer> STATUS_SCORE; }