@Test public void test() { System.out.println("specificity"); 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 }; Specificity instance = new Specificity(); double expResult = 0.9714; double result = instance.measure(truth, prediction); assertEquals(expResult, result, 1E-4); }
@Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }
Specificity implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); } }
Specificity implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }  }
Specificity 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(); }
Specificity 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 Specificity instance; }