1 | /* |
---|
2 | * This program is free software; you can redistribute it and/or modify |
---|
3 | * it under the terms of the GNU General Public License as published by |
---|
4 | * the Free Software Foundation; either version 2 of the License, or |
---|
5 | * (at your option) any later version. |
---|
6 | * |
---|
7 | * This program is distributed in the hope that it will be useful, |
---|
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
10 | * GNU General Public License for more details. |
---|
11 | * |
---|
12 | * You should have received a copy of the GNU General Public License |
---|
13 | * along with this program; if not, write to the Free Software |
---|
14 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
15 | */ |
---|
16 | |
---|
17 | /** |
---|
18 | * KStarConstants.java |
---|
19 | * Copyright (C) 1995 Univeristy of Waikato |
---|
20 | * Java port to Weka by Abdelaziz Mahoui (am14@cs.waikato.ac.nz). |
---|
21 | * |
---|
22 | */ |
---|
23 | |
---|
24 | |
---|
25 | package weka.classifiers.lazy.kstar; |
---|
26 | |
---|
27 | /* |
---|
28 | * @author Len Trigg (len@reeltwo.com) |
---|
29 | * @author Abdelaziz Mahoui (am14@cs.waikato.ac.nz) |
---|
30 | * @version $Revision 1.0 $ |
---|
31 | */ |
---|
32 | public interface KStarConstants { |
---|
33 | |
---|
34 | /** Some usefull constants */ |
---|
35 | int ON = 1; |
---|
36 | int OFF = 0; |
---|
37 | int NUM_RAND_COLS = 5; |
---|
38 | double FLOOR = 0.0; |
---|
39 | double FLOOR1 = 0.1; |
---|
40 | double INITIAL_STEP = 0.05; |
---|
41 | double LOG2 = 0.693147181; |
---|
42 | double EPSILON = 1.0e-5; |
---|
43 | |
---|
44 | /** How close the root finder for numeric and nominal have to get */ |
---|
45 | int ROOT_FINDER_MAX_ITER = 40; |
---|
46 | double ROOT_FINDER_ACCURACY = 0.01; |
---|
47 | |
---|
48 | /** Blend setting modes */ |
---|
49 | int B_SPHERE = 1; /* Use sphere of influence */ |
---|
50 | int B_ENTROPY = 2; /* Use entropic blend setting */ |
---|
51 | |
---|
52 | /** Missing value handling mode */ |
---|
53 | |
---|
54 | /* Ignore the instance with the missing value */ |
---|
55 | int M_DELETE = 1; |
---|
56 | /* Treat missing values as maximally different */ |
---|
57 | int M_MAXDIFF = 2; |
---|
58 | /* Normilize over the attributes */ |
---|
59 | int M_NORMAL = 3; |
---|
60 | /* Average column entropy curves */ |
---|
61 | int M_AVERAGE = 4; |
---|
62 | |
---|
63 | } |
---|