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

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

?? basics.java

?? 此編碼是一個數據挖掘的決策樹各種算法。以作為入門提示
?? 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一区二区三区免费野_久草精品视频
国产日韩欧美精品电影三级在线 | 色综合咪咪久久| 欧美亚洲综合另类| 久久影院午夜片一区| 一区二区三区在线不卡| 精品一区二区三区免费播放| 99久久精品久久久久久清纯| 欧美一级日韩不卡播放免费| 一区视频在线播放| 国产精品亚洲一区二区三区妖精| 欧美日韩精品欧美日韩精品一综合| 国产女人水真多18毛片18精品视频 | 欧美一区二区精品在线| 中文字幕一区二区三区色视频| 裸体健美xxxx欧美裸体表演| 日本高清成人免费播放| 国产精品网站在线观看| 久久国产精品72免费观看| 欧美网站一区二区| 一区二区三区丝袜| av电影一区二区| 久久精品人人爽人人爽| 国产一区二区三区高清播放| 日韩欧美一区二区三区在线| 青青草国产成人99久久| 欧美日韩国产区一| 亚洲一区二区三区不卡国产欧美| 波多野结衣在线aⅴ中文字幕不卡| 精品第一国产综合精品aⅴ| 日本视频免费一区| 制服视频三区第一页精品| 亚洲国产日韩综合久久精品| 欧美亚一区二区| 亚洲男人都懂的| 欧美在线你懂的| 天堂成人免费av电影一区| 欧美精选午夜久久久乱码6080| 天堂成人国产精品一区| 91精品久久久久久久99蜜桃| 蜜桃av一区二区| 久久美女高清视频| 国产成人自拍网| 国产精品女主播av| 91电影在线观看| 日韩黄色片在线观看| 日韩色视频在线观看| 九色综合狠狠综合久久| 国产亚洲欧美日韩俺去了| 成人性生交大片免费看视频在线| 国产午夜精品久久久久久久| 99精品国产热久久91蜜凸| 亚洲在线一区二区三区| 欧美一级免费大片| 精品亚洲免费视频| 国产精品嫩草99a| 在线观看不卡视频| 奇米777欧美一区二区| 久久婷婷国产综合精品青草| www.欧美色图| 偷拍一区二区三区| 久久嫩草精品久久久久| www.日韩av| 蜜臀精品一区二区三区在线观看 | 欧美va亚洲va| aaa亚洲精品一二三区| 亚洲一区二区精品视频| 欧美成人精品高清在线播放| 成人福利视频网站| 亚洲v日本v欧美v久久精品| 亚洲精品在线免费播放| 色悠久久久久综合欧美99| 麻豆成人综合网| 亚洲乱码精品一二三四区日韩在线| 91精品国产综合久久婷婷香蕉| 国产福利精品导航| 天堂成人国产精品一区| 亚洲欧洲在线观看av| 欧美一级艳片视频免费观看| 99re这里只有精品6| 久久精品久久精品| 亚洲午夜在线视频| 欧美极品xxx| 91精品婷婷国产综合久久 | 亚洲精品午夜久久久| 日韩一区和二区| 日本韩国精品在线| 国产成人免费网站| 美女一区二区三区| 亚洲成人动漫一区| 亚洲黄色片在线观看| 日本一区二区视频在线| 欧美成人精品3d动漫h| 欧美日韩日日夜夜| 日本黄色一区二区| 成人午夜伦理影院| 久久99国产精品麻豆| 亚洲成人午夜影院| 亚洲欧美日韩国产成人精品影院 | 日韩小视频在线观看专区| 99精品偷自拍| 成人午夜激情视频| 黑人巨大精品欧美一区| 五月天激情综合网| 亚洲国产精品自拍| 亚洲免费在线视频| 亚洲区小说区图片区qvod| 国产欧美日韩精品在线| 精品国产亚洲在线| 91精品福利在线一区二区三区| 欧美综合一区二区| 欧美三区在线视频| 欧美色综合网站| 欧美亚洲国产bt| 欧美在线啊v一区| 欧美主播一区二区三区美女| 日本精品一区二区三区高清 | 亚洲一区二区三区精品在线| 亚洲精品视频免费看| 亚洲女人小视频在线观看| 亚洲男人的天堂在线观看| 亚洲欧美日韩一区| 亚洲一区在线视频| 五月综合激情婷婷六月色窝| 日韩精品国产精品| 九色porny丨国产精品| 国产精品一线二线三线| 国产精品一区二区三区乱码| 成人污视频在线观看| av男人天堂一区| 欧美日韩一区二区三区四区 | 国产精品视频你懂的| 国产精品久久久久aaaa| 亚洲人一二三区| 亚洲国产一区二区视频| 美女mm1313爽爽久久久蜜臀| 久久电影网电视剧免费观看| 国产米奇在线777精品观看| 国产福利一区二区三区| 一本到高清视频免费精品| 欧美日本在线看| 2017欧美狠狠色| 国产精品久久久久久久裸模| 亚洲国产毛片aaaaa无费看| 麻豆精品蜜桃视频网站| 成人国产精品免费观看动漫| 色播五月激情综合网| 欧美一区二区性放荡片| 国产午夜精品久久久久久久| 亚洲一区二区在线视频| 精一区二区三区| 一本色道综合亚洲| 欧美成人艳星乳罩| 亚洲精品成人少妇| 精品影视av免费| 色综合久久综合网| 精品福利在线导航| 亚洲精品视频在线| 国产在线精品一区在线观看麻豆| 成人黄色国产精品网站大全在线免费观看| 在线精品视频一区二区三四| 精品久久人人做人人爽| 亚洲卡通欧美制服中文| 久久99热这里只有精品| 色拍拍在线精品视频8848| 26uuu色噜噜精品一区二区| 亚洲男同1069视频| 国产精品99久久久久久有的能看| 欧美中文字幕不卡| 欧美国产一区二区| 日产精品久久久久久久性色| 91天堂素人约啪| 精品播放一区二区| 亚洲sss视频在线视频| 不卡电影免费在线播放一区| 日韩一区二区免费视频| 亚洲综合免费观看高清完整版在线 | 久久久精品2019中文字幕之3| 亚洲图片欧美视频| 色综合色狠狠综合色| 欧美国产日产图区| 精品一区免费av| 日韩一区二区影院| 日韩主播视频在线| 欧美伊人久久久久久午夜久久久久| 国产日韩欧美精品在线| 激情六月婷婷久久| 日韩欧美的一区二区| 日韩av不卡在线观看| 欧美群妇大交群的观看方式| 亚洲一区二区在线观看视频| 色婷婷av一区二区三区大白胸| 国产精品网友自拍| 风间由美一区二区三区在线观看 | 欧美国产精品一区二区三区| 亚洲人成伊人成综合网小说| 国模冰冰炮一区二区| 欧美日韩一卡二卡三卡 | 欧美人伦禁忌dvd放荡欲情| 国产日产欧产精品推荐色 | 中文字幕精品一区二区精品绿巨人 |