ScoreDistribution first = scoreDists.get(0); if (numDists == 1) { assertEquals(1.0, first.getConfidence().doubleValue()); } else { assertGreater(first.getConfidence(), 0.0); assertLess(first.getConfidence(), 1.0); ScoreDistribution second = scoreDists.get(1); assertGreater(second.getConfidence(), 0.0); assertLess(second.getConfidence(), 1.0);
@Override public ElementKey createKey(ScoreDistribution scoreDistribution){ Object[] content = {scoreDistribution.getValue(), scoreDistribution.getRecordCount(), scoreDistribution.getProbability(), scoreDistribution.getConfidence()}; return new ElementKey(content); } };
@Override public ElementKey createKey(ScoreDistribution scoreDistribution){ Object[] content = {scoreDistribution.getValue(), scoreDistribution.getRecordCount(), scoreDistribution.getProbability(), scoreDistribution.getConfidence()}; return new ElementKey(content); } };
Double confidence = scoreDistribution.getConfidence(); if(confidence != null){ value = valueFactory.newValue(confidence);