KStarConstants.java
Upload User: rhdiban
Upload Date: 2013-08-09
Package Size: 15085k
Code Size: 2k
Category:

Windows Develop

Development Platform:

Java

  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.  *    KStarConstants.java
  18.  *    Copyright (c) 1995-97 by Len Trigg (trigg@cs.waikato.ac.nz).
  19.  *    Java port to Weka by Abdelaziz Mahoui (am14@cs.waikato.ac.nz).
  20.  *
  21.  */
  22. package weka.classifiers.kstar;
  23. /*
  24.  * @author Len Trigg (len@intelligenesis.net)
  25.  * @author Abdelaziz Mahoui (am14@cs.waikato.ac.nz)
  26.  * @version $Revision 1.0 $
  27.  */
  28. public interface KStarConstants {
  29.   /** Some usefull constants */
  30.   public static final int    ON            = 1;
  31.   public static final int    OFF           = 0;
  32.   public static final int    NUM_RAND_COLS = 5;
  33.   public static final double FLOOR         = 0.0;
  34.   public static final double FLOOR1        = 0.1;
  35.   public static final double INITIAL_STEP  = 0.05;
  36.   public static final double LOG2          = 0.693147181;
  37.   public static final double EPSILON       = 1.0e-5;
  38.   /** How close the root finder for numeric and nominal have to get */
  39.   public static final int    ROOT_FINDER_MAX_ITER = 40;
  40.   public static final double ROOT_FINDER_ACCURACY = 0.01;
  41.   /** Blend setting modes */
  42.   public static final int B_SPHERE  = 1; /* Use sphere of influence */
  43.   public static final int B_ENTROPY = 2; /* Use entropic blend setting */
  44.   /** Missing value handling mode */
  45.   /* Ignore the instance with the missing value */
  46.   public static final int M_DELETE  = 1; 
  47.   /* Treat missing values as maximally different */
  48.   public static final int M_MAXDIFF = 2; 
  49.   /* Normilize over the attributes */
  50.   public static final int M_NORMAL  = 3; 
  51.   /* Average column entropy curves */
  52.   public static final int M_AVERAGE = 4; 
  53.   
  54. }