亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? basics.java

?? 本程序是用java語言編寫的數據挖掘分類算法中的決策樹分類方法c4.5程序代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package shared;
import java.lang.*;
import java.io.*;

/** Every file uses the members of the basics class.  Here we define some constants, an
 * initialization function and termination function. Note that since
 * initialization order of static instances is not defined within different
 * files, it is important that all initialization be done here, or at least
 * that any other initialization will not depend on anything initialized here.
 * This is especially a problem with constructors that call fatal_error and
 * output to err, since err may not be initialized at that stage. Note the
 * dependency between LONG_MAX and MAX_LONG_LEN.
 *
 * @author James Louis	8/16/2001	Ported to Java.
 * @author Eric Eros		5/16/97	Created MLC class
 * @author Ronny Kohavi	7/13/93	Initial revision (.c)
 * @author Ronny Kohavi	8/26/93	Initial revision (.h)
 */

public class Basics {
    //Compilation directives - JAL
    /** TRUE if DBG sections of code should be executed, FALSE otherwise. Default is FALSE**/
    public static boolean DBG = false;
    /** TRUE if DBGSLOW sections of code should be executed, FALSE otherwise. Default is FALSE**/
    public static boolean DBGSLOW = false;
    
    /** The probability interval value used for calculating confidence.
     */    
    public static double CONFIDENCE_INTERVAL_PROBABILITY;
    
    // MLC++ - Machine Learning Library in -*- C++ -*-
    // See Descrip.txt for terms and conditions relating to use and distribution.
    
    // This is an include file.  For a full description of the class and
    // functions, see the file "basicCore.c".
    
    
    /** Default value for opening protections.
     */
    public static int defaultOpenProt;
    /** The prefix character for displaying error strings.
     */
    public static char ERROR_PREFIX;
    /** The character used to display when a line is being wrapped.
     */
    public static char WRAP_INDENT;
    /** Bad exit status for program.
     */
    public static int BAD_STATUS;
    /** Value used for error catching.
     */
    public static String fatal_expected;
    /** TRUE if mineset is being used, FALSE otherwise.
     */
    public static boolean mineset; // for those messages specific to SGI's MineSet.
    //obs   public static char *minesetVersionStr;
    /** The version of mineset being used.
     */
    public static String minesetVersionStr;
    
    //obs   public static char *err_text;
    /** Standard error text.
     */
    public static String err_text;
    //obs   public static MLCOStream err;
    /** Writer for output of error information.
     */
    public static Writer err;
    
    // note that MString.c assumes that Real is typedef'd to a double.
    /** Maximum value for real numbers.
     */
    public static double REAL_MAX;
    /** Minimum number for real numbers.
     */
    public static double REAL_MIN;
    /** Maximum number for stored real numbers.
     */
    public static float STORED_REAL_MAX;
    /** Minimum number for stored real numbers.
     */
    public static float STORED_REAL_MIN;
    
    // For cases where a variable's value may be used as a flag to indicate
    //   it has not yet been set.  These are extreme negative values.
    //   See basicCore.c
    /** Number that designates undefined variance values.
     */
    public static double UNDEFINED_VARIANCE;
    /** Number that represents undefined real values.
     */
    public static double UNDEFINED_REAL;
    /** Number that represents undefined integer values.
     */
    public static int  UNDEFINED_INT;
    
    // Default wrap width for an MStream, this guarantees that it is off initially
    /** Number of characters allowed before a line is word wrapped.
     */    
    public static int DEFAULT_WRAP_WIDTH;
    // Default wrap prefix for an MStream -3 spaces
    //obs extern const char* DEFAULT_WRAP_PREFIX;
    /** Prefix added to word wrapped lines.
     */    
    public static String DEFAULT_WRAP_PREFIX;
    
/*
 
// These are defined here because of a Bug in CFront that declared
//   INT_MIN wrong (without (int)).  What happens is that 2147483648
//   does not fit in int, so it is made unsigned, then unary minus subtracts
//   from max unsigned int to get the same number.
#ifdef CFRONT
#define SHORT_MAX      32767
#define LONG_MAX       2147483647
#define INT_MAX        LONG_MAX
 
// defining LONG_MIN as -2147483648 does not work because the minus is
//   a unary operator and the number causes it to be unsigned.  We can
//   cast to (long), but ObjectCenter gives a warning... This method
//   is adapted from GNU limits.h
#define SHORT_MIN      (-SHORT_MAX-1)
#define LONG_MIN       (-LONG_MAX-1)
#define INT_MIN        LONG_MIN
 
// MAX_LONG_LEN is used to define array dimensions so it cannot be
//    extern const int.
// LONG_MAX is +2147483647 which is 10 digits +1 for sign.
// Note that this is an upper bound and MAX_LONG can be lower.
#define MAX_LONG_LEN   11
// Similar to LONG_MAX, 5 digits +1 for sign.
#define MAX_SHORT_LEN 6
#define	UCHAR_MAX     255  // max value of an "unsigned char"
 
// Just use standard "limits.h" if we're not using CFRONT.
//   We still need to set some of the symbols
#else
#include <limits.h>
#define SHORT_MAX      32767
#define SHORT_MIN      (-SHORT_MAX-1)
#define MAX_LONG_LEN   11
#define MAX_SHORT_LEN 6
#endif
 
 
// In the following, DBL_DIG and FLT_DIG are defined in limits.h
// This is needed to set the precision of the stream when doing Real I/O
//   This value is trunc((DSIGNIF - 1) / log2(10)),
//   or trunc((FSIGNIF - 1) / log2(10)), where DSIGNIF is the
//   number of significant bits for a double (defined in values.h),
//   FSIGNIF is likewise defined for a float, and 1 is subtracted for
//   the sign bit.
   public static int REAL_MANTISSA_LEN = DBL_DIG; // 15
   public static int STORED_REAL_MANTISSA_LEN = FLT_DIG; //  6
   public static int MAX_ECVT_DIGITS = DBL_DIG+2; // 17
   public static int MAX_ECVT_WIDTH = 84;  // from man page for ecvt_r
 */
    
    // Note:  Should the size of Real and/or StoredReal change, the above
    //   numbers must change correspondingly.  Also, REAL_EPSILON and
    //   STORED_REAL_EPSILON (in basicCore.c) must change.
    
    // Because Reals can be displayed with full digits,
    // MAX_REAL_LEN is set to a large number
    // MAX_REAL_DIGITS specifies the maximum number of digits which may
    //   appear before the decimal point in a Real.
    /** Maximum number of digits for real numbers.
     */    
    public static int MAX_REAL_DIGITS = 800;
    /** Maximum length for real number display.
     */    
    public static int MAX_REAL_LEN = 2048;
    /** Maximum length for stored real number display.
     */    
    public static int MAX_STORED_REAL_LEN = 2048;
    /** MAX_WIDTH is the maximum width allowed for real output.
     */    
    public static int MAX_WIDTH = 2048;
    
    
    
    
    
/*
#ifndef _basic_h
#define _basic_h 1
 
#include <machine.h>
char is_compiled_fast(); // returns TRUE if library compiled in fast mode
 
#include <stdlib.h>
#include <math.h>
 
// There's sometimes a need to give a reference to something that
//   is invalid.  the SGI compiler warns about NULL ref, so this
//   avoids the warning and is just as bad, i.e., an access will
//   cause program to abort.
#define NULL_REF 1
 
// make sure nobody has defined Bool via #define.  Xlib.h does this.
#ifdef Bool
#error Bool is already defined.  Please undefine before including basics.h
#endif
 
// knock out any alternate TRUE or FALSE if defined
#ifdef TRUE
#undef TRUE
#endif
#ifdef FALSE
#undef FALSE
#endif
 
#ifdef _BOOL
  typedef bool Bool;  // After George Boole
# define TRUE true
# define FALSE false
#else
  typedef char Bool;
# define TRUE Bool(!0)
# define FALSE Bool(0)
#endif
 
#ifndef FAST
#define DBG(stmts) if (GlobalOptions::debugLevel >= 1) {stmts;} else
#else
#define DBG(stmts)
#endif
 
#ifdef TEMPL_MAIN
   #define TEMPL_GENERATOR(name) int main()
#else
   #define TEMPL_GENERATOR(name) int name()
#endif
 
 
// DBGSLOW() should only be used for especially expensive code.
#ifndef FAST
#define DBGSLOW(stmts) if (GlobalOptions::debugLevel >= 2) {stmts;} else
#else
#define DBGSLOW(stmts)
#endif
 
// DBG_DECLARE() is intended for use in class or function declarations,
//   where "if" statements are not allowed.
// Note that when using this macro, the semicolon must be INSIDE,
//   since empty declarations are not allowed (r9.2)
#ifndef FAST
#define DBG_DECLARE(stmts) stmts
#else
#define DBG_DECLARE(stmts)
#endif
 
 
 
typedef double Real;
typedef float StoredReal; // for arrays etc.
 
// To prevent accidental copy construction, most copy constructors
// take a second "dummy" argument.  Initially this dummy argument was
// forced to be an integer and that integer was checked to be 0,
// The new standard is that it would be much simpler to have the dummy
// argument be an actual enumerated type.
// Example usage:
//	Foo.h: Foo(const Foo& foo, CtorDummy);
//	Client.h: Foo foo2(foo1, ctorDummy);
enum CtorDummy {ctorDummy=0};
 
// Also, there is an enumerated type for dummy arguments.
enum ArgDummy {argDummy=0};
 
// Declarations for the parallel execution using pthread library.  Currently
// only entropy discretizors are parallelized.  Do not define this constant if
// you do not want to use pthreads
 
// #define PTHREADS
 
#ifdef PTHREADS
#include <malloc.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/prctl.h>
#define PTHR_DECL(stmts)	stmts
#else
#define PTHR_DECL(stmts)
#endif // PTHREADS
 
#include <time.h>
#include <MString.h>
#include <GlobalOptions.h>
 
// Due to archaic 8+3 PC naming conventions, strstream.h
// is sometimes called strstrea.h
#ifdef PC_MSVC
#include <strstrea.h>
#else
#include <strstream.h>
#endif
 
#ifdef __GNUC__
typedef timespec timespec_t;
#endif
 
/* G++ and other smart and proper compilers define null as a variable, to
 * escape type sensitive situations. However, this breaks operator overloading
 * for comparason operators that require NULL to be 0, (traditional C++)
 *
#undef NULL
#define NULL 0
 
 
#include <error.h>
 
// MLCInit class to force consistent initialization order
class MLCInit {
   NO_DEFAULT_OPS(MLCInit);
public:
   // Public data
   static int count;
   // Methods
   MLCInit() { if(count++ == 0) startup(); }
   ~MLCInit() { if(--count == 0) shutdown(); }
 
   void startup();
   void shutdown();
};
 
// static instance of MLCInit:  used for force initialization order.
// note that this instance is DEFINED here in the header file; this
// forces its definition to occur BEFORE all other definitions in
// each file which includes basics.h, and thus before all other
// static initialization.
static MLCInit mlcInit;
 
// Enumerated type to declare constructors which indicate that a static
// instance should be initialized externally
enum UseExternalCtor { useExternalCtor = 1 };
 
// This macro causes a fatal_error if the given condition is FALSE.
// The behavior is similar to the C/C++ assert (see include/assert.h).
// The macro is executed as a DBG statement.
 
// These allow sharing the same message string across files to
//   save space (also help with gp_overflow(5) errors.
extern const char *ASSERT_FAILURE_MSG;
extern const char *ASSERT_FILE_MSG;
extern const char *ASSERT_LINE_MSG;
 
// ASSERTs for debugging purposes should be in DBG().
#define ASSERT(stmt) \
      ((stmt)?((void)0): \
       (void)(err << ASSERT_FAILURE_MSG << # stmt <<  \
        ASSERT_FILE_MSG << __FILE__ << \
        ASSERT_LINE_MSG << __LINE__ << fatal_error))
 
// Old version below caused compiler core dump on SGI and ConstCat
//      (void)((stmt) ||                                                     \
//      ((err << "MLC++ internal error: assertion failed: " # stmt   \
//	", file " << __FILE__ << ", line " << __LINE__ << fatal_error), 0))
 
 
#define ABORT_IF_REACHED \
   err << "MLC++ internal error: unexpected condition in file " \
       << __FILE__ << ", line " << __LINE__ << fatal_error
 
 
#include <MLCStream.h>
extern MLCIStream Mcin;
extern MLCOStream Mcout;
extern MLCOStream Mcerr;
 
// DBG*(code) needs a trailing semicolon outside, i.e. DBG(x=3);
// The last statement inside does not need a semicolon.  The semicolon
//   outside allows proper indentation in Emacs C++ mode.
//   and is also required inside IFs to generate an empty statement.
 
// The "else" is so DBG will work even if it is inside an if statement.
//   (the else in the definition assures proper matching of the else
//    in the code, and also makes use of the semicolon...):
//
//       if (foo)
//          DBG(bar);
//       else
//          kuku();
 
// This is the size of the buffer used for reading and writing files.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品精品国产自在97香蕉 | 麻豆久久久久久久| 国内精品国产成人| 欧美性受极品xxxx喷水| 久久精品人人爽人人爽| 五月天久久比比资源色| thepron国产精品| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲一区二区偷拍精品| 成人免费av资源| 欧美va亚洲va| 日韩av网站免费在线| 色欧美乱欧美15图片| 国产精品视频九色porn| 韩国女主播一区| 欧美一区二区在线播放| 亚洲二区在线视频| 日本精品视频一区二区三区| 国产精品免费视频一区| 国产精品456露脸| 久久免费电影网| 另类小说欧美激情| 日韩一级精品视频在线观看| 亚洲成人自拍网| 欧美影院一区二区三区| 亚洲另类春色国产| 色综合色综合色综合| 综合久久久久久| 日韩一区二区三区观看| 亚洲第一激情av| 欧美熟乱第一页| 亚洲综合成人网| 在线观看www91| 午夜成人在线视频| 欧美剧在线免费观看网站| 午夜精品一区二区三区免费视频| 91蜜桃网址入口| 亚洲蜜臀av乱码久久精品蜜桃| 91免费观看视频| 亚洲成av人**亚洲成av**| 欧美日韩国产成人在线免费| 亚洲成av人影院| 欧美电影免费观看高清完整版在线观看 | 国产欧美精品在线观看| 国产精品88av| 成人欧美一区二区三区白人| 91在线观看一区二区| 亚洲影视在线播放| 精品视频一区二区三区免费| 日韩高清中文字幕一区| 日韩精品一区在线观看| 国产一区二区剧情av在线| 国产亚洲精品精华液| 91视视频在线观看入口直接观看www | 成人性生交大片免费看中文网站| 国产欧美日韩另类视频免费观看| 不卡欧美aaaaa| 亚洲一区二区成人在线观看| 欧美色视频一区| 国内精品国产三级国产a久久 | 欧美一区二区啪啪| 国产大陆亚洲精品国产| 亚洲女厕所小便bbb| 欧美精品在线观看播放| 国产精品亚洲成人| 亚洲精品欧美综合四区| 91精品欧美一区二区三区综合在| 国产麻豆视频一区| 亚洲激情自拍视频| 日韩午夜激情视频| 91美女精品福利| 麻豆成人久久精品二区三区红| 国产区在线观看成人精品| 欧美伊人精品成人久久综合97| 久久av资源网| 亚洲成人av资源| 欧美国产成人精品| 91麻豆精品国产91久久久| av在线播放成人| 蜜桃视频一区二区| 亚洲精品免费视频| 国产午夜精品一区二区三区四区| 欧美天堂亚洲电影院在线播放| 国产成人免费在线视频| 日韩激情一区二区| 亚洲欧洲av色图| 精品盗摄一区二区三区| 欧美日韩美女一区二区| a级精品国产片在线观看| 国内精品国产三级国产a久久| 亚洲国产精品久久一线不卡| 一区视频在线播放| 久久久久久一二三区| 日韩一二在线观看| 欧美丰满嫩嫩电影| 91黄色免费看| 97超碰欧美中文字幕| 激情综合色丁香一区二区| 亚洲一区二区在线免费看| 国产精品美女久久久久av爽李琼 | 久久久久久久一区| 欧美精品777| 色久综合一二码| 本田岬高潮一区二区三区| 国产永久精品大片wwwapp| 日韩电影一二三区| 日本成人中文字幕在线视频| 亚洲自拍偷拍麻豆| 一区二区国产视频| 亚洲精品国产品国语在线app| 国产精品国产三级国产a| 中文字幕高清不卡| 中文字幕一区二区三区四区不卡 | 欧美天堂亚洲电影院在线播放| 色悠悠亚洲一区二区| 91麻豆国产自产在线观看| av在线不卡电影| 色猫猫国产区一区二在线视频| 91蜜桃视频在线| 欧美亚洲图片小说| 精品视频免费在线| 91精品国产福利在线观看| 欧美一区二区视频在线观看2022| 日韩美女视频一区二区在线观看| 日韩三级免费观看| 久久久美女艺术照精彩视频福利播放| 亚洲人成伊人成综合网小说| 中文字幕在线观看不卡| 亚洲欧美日韩一区| 日日摸夜夜添夜夜添国产精品 | 男女激情视频一区| 美女任你摸久久| 国产一区999| 91麻豆国产在线观看| 精品视频一区 二区 三区| 日韩三级电影网址| 欧美激情在线看| 亚洲精品欧美激情| 美女尤物国产一区| 成人性生交大合| 欧洲亚洲国产日韩| 日韩三级精品电影久久久| 国产精品私人影院| 亚洲国产成人va在线观看天堂| 久久er99精品| 色综合激情五月| 精品国产第一区二区三区观看体验| 国产三级三级三级精品8ⅰ区| **性色生活片久久毛片| 亚洲1区2区3区4区| 国产精品88888| 欧美日韩一区精品| 国产清纯白嫩初高生在线观看91| 一区二区视频在线| 韩国v欧美v亚洲v日本v| 色老头久久综合| 久久久久久免费网| 婷婷成人激情在线网| 成人在线视频一区| 欧美一级日韩免费不卡| 亚洲视频一区在线| 国内精品免费**视频| 欧美亚洲综合久久| 国产精品免费看片| 国产综合一区二区| 欧美性猛交xxxx乱大交退制版| 久久久三级国产网站| 日本系列欧美系列| 色婷婷久久久久swag精品| 久久久亚洲国产美女国产盗摄| 偷拍一区二区三区| 91视频xxxx| 国产精品萝li| 国产自产高清不卡| 欧美一区午夜视频在线观看| 亚洲激情自拍视频| 成人精品一区二区三区中文字幕| 欧美大片日本大片免费观看| 一区二区三区.www| 成人h版在线观看| 久久久精品国产免大香伊| 日韩二区三区在线观看| 在线观看91视频| 亚洲男女一区二区三区| 福利电影一区二区三区| 久久午夜色播影院免费高清| 奇米影视一区二区三区| 欧美午夜寂寞影院| 亚洲国产成人91porn| 色呦呦一区二区三区| 亚洲欧美另类在线| 91香蕉视频mp4| 亚洲免费毛片网站| 91麻豆精品秘密| 亚洲品质自拍视频网站| 成人综合婷婷国产精品久久 | 这里是久久伊人| 亚洲一区二区在线播放相泽| 色狠狠av一区二区三区| 17c精品麻豆一区二区免费|