bump product version to 4.1.6.2
[LibreOffice.git] / nlpsolver / ThirdParty / EvolutionarySolver / src / net / adaptivebox / goodness / IGoodnessCompareEngine.java
blob1ff1dfb01923eddd6c3421463a6d343d24b1c614
1 /**
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.
20 * @version 1.0
21 * @Since MAOS1.2
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;
31 /**
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
36 **/
37 public abstract int compare(double[] goodness1, double[] goodness2);