2 * Description: For comparison of goodness.
4 * @ Author Create/Modi Note
5 * Xiaofeng Xie Feb 19, 2004
6 * Xiaofeng Xie May 11, 2004
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * Please acknowledge the author(s) if you use this code in any way.
24 package net
.adaptivebox
.goodness
;
26 public abstract interface IGoodnessCompareEngine
{
27 public static final int LARGER_THAN
= 2;
28 public static final int EQUAL_TO
= 1;
29 public static final int LESS_THAN
= 0;
32 * check the magnitude of two IEncodeEngine
33 * LARGER_THAN: goodness1 is worse than goodness2
34 * LESS_THAN: goodness1 is better than goodness2
35 * EQUAL_TO : goodness1 is eqaul to goodness2
37 public abstract int compare(double[] goodness1
, double[] goodness2
);