@Test public void getScoreUsesInformationContent() throws Exception { Mockito.doReturn(this.features).when(this.patient).getFeatures(); double score = this.mocker.getComponentUnderTest().getScore(this.patient); Assert.assertEquals(0.56, score, 0.01); }
@Override public double getScore(Patient patient) { Pair<Double, Integer> symptomsScore = process(patient, true); Pair<Double, Integer> negativeSymptomsScore = process(patient, false); double score = 0; if (symptomsScore.getRight() + negativeSymptomsScore.getRight() > 0) { score = 2 * Math.atan(symptomsScore.getLeft() / 10 + negativeSymptomsScore.getLeft() / 20) / Math.PI; } return score; }
OmimInformationContentPatientScorer implements PatientScorer, Initializable { @Override public double getScore(Patient patient) { Pair<Double, Integer> symptomsScore = process(patient, true); Pair<Double, Integer> negativeSymptomsScore = process(patient, false); double score = 0; if (symptomsScore.getRight() + negativeSymptomsScore.getRight() > 0) { score = 2 * Math.atan(symptomsScore.getLeft() / 10 + negativeSymptomsScore.getLeft() / 20) / Math.PI; } return score; } }
OmimInformationContentPatientScorer implements PatientScorer, Initializable { @Override public double getScore(Patient patient) { Pair<Double, Integer> symptomsScore = process(patient, true); Pair<Double, Integer> negativeSymptomsScore = process(patient, false); double score = 0; if (symptomsScore.getRight() + negativeSymptomsScore.getRight() > 0) { score = 2 * Math.atan(symptomsScore.getLeft() / 10 + negativeSymptomsScore.getLeft() / 20) / Math.PI; } return score; }  }
OmimInformationContentPatientScorer implements PatientScorer, Initializable { @Override public double getScore(Patient patient) { Pair<Double, Integer> symptomsScore = process(patient, true); Pair<Double, Integer> negativeSymptomsScore = process(patient, false); double score = 0; if (symptomsScore.getRight() + negativeSymptomsScore.getRight() > 0) { score = 2 * Math.atan(symptomsScore.getLeft() / 10 + negativeSymptomsScore.getLeft() / 20) / Math.PI; } return score; }  @Override void initialize(); @Override PatientSpecificity getSpecificity(Patient patient); @Override double getScore(Patient patient); }
OmimInformationContentPatientScorer implements PatientScorer, Initializable { @Override public double getScore(Patient patient) { Pair<Double, Integer> symptomsScore = process(patient, true); Pair<Double, Integer> negativeSymptomsScore = process(patient, false); double score = 0; if (symptomsScore.getRight() + negativeSymptomsScore.getRight() > 0) { score = 2 * Math.atan(symptomsScore.getLeft() / 10 + negativeSymptomsScore.getLeft() / 20) / Math.PI; } return score; }  @Override void initialize(); @Override PatientSpecificity getSpecificity(Patient patient); @Override double getScore(Patient patient);  }