@Test public void testMeasure() { System.out.println("sensitivity"); int[] truth = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; int[] prediction = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; Sensitivity instance = new Sensitivity(); double expResult = 0.8333; double result = instance.measure(truth, prediction); assertEquals(expResult, result, 1E-4); }
@Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }
Sensitivity implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); } }
Sensitivity implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }  }
Sensitivity implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }  @Override double measure(int[] truth, int[] prediction); static double of(int[] truth, int[] prediction); @Override String toString(); }
Sensitivity implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }  @Override double measure(int[] truth, int[] prediction); static double of(int[] truth, int[] prediction); @Override String toString(); final static Sensitivity instance; }