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

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

?? basics.java

?? 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一区二区三区免费野_久草精品视频
亚洲va韩国va欧美va精品| 久久久欧美精品sm网站| 亚洲女同ⅹxx女同tv| 不卡av电影在线播放| 国产精品电影一区二区三区| 色婷婷av久久久久久久| 亚洲成人动漫在线免费观看| 欧美高清激情brazzers| 理论片日本一区| 久久久久久亚洲综合| 99免费精品视频| 亚洲一区二区三区小说| 欧美成人女星排名| 成人免费福利片| 亚洲美女在线国产| 91精品国产综合久久蜜臀 | 51精品秘密在线观看| 毛片av一区二区三区| 中文字幕乱码亚洲精品一区| 成人18精品视频| 午夜影视日本亚洲欧洲精品| 精品国产成人系列| 99精品国产热久久91蜜凸| 亚洲国产wwwccc36天堂| 精品国产91亚洲一区二区三区婷婷| 国内成人精品2018免费看| 亚洲日本在线视频观看| 欧美二区乱c少妇| 国产91对白在线观看九色| 亚洲激情图片一区| 欧美成人video| 色综合网站在线| 六月婷婷色综合| 中文字幕字幕中文在线中不卡视频| 欧美日韩免费视频| 国产91精品入口| 婷婷丁香久久五月婷婷| 国产亚洲欧洲一区高清在线观看| 色屁屁一区二区| 国产精品99久久久| 日韩精品1区2区3区| 国产精品欧美一级免费| 日韩欧美在线综合网| 91在线视频18| 国产一区二三区| 五月婷婷综合激情| 中文字幕一区二区三区精华液 | 日本视频一区二区| 亚洲精品国产一区二区三区四区在线 | 国产精品理论在线观看| 日韩欧美一二三区| 欧美日韩在线直播| 91亚洲永久精品| 免费精品视频在线| 亚洲精品免费在线| 国产精品欧美久久久久无广告| 欧美大片一区二区| 欧美日韩夫妻久久| 在线免费观看视频一区| 成人久久18免费网站麻豆| 久久99精品国产.久久久久久| 亚洲一区二区三区四区五区中文 | 亚洲一二三四区| 自拍偷拍亚洲综合| 国产精品美女视频| 久久久久久久久久看片| 日韩精品一区二区三区老鸭窝| 欧美色中文字幕| 色成人在线视频| 91麻豆国产福利精品| 成人性生交大合| 成人综合在线观看| 国产乱码精品一区二区三区五月婷 | 亚洲色图.com| 日韩伦理av电影| 国产精品欧美极品| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 国产偷v国产偷v亚洲高清| 日韩欧美精品在线视频| 日韩欧美中文字幕公布| 日韩欧美色综合网站| 欧美tk—视频vk| 精品人在线二区三区| 精品久久久久久久久久久院品网 | 国内精品写真在线观看| 久久福利资源站| 国产精品夜夜嗨| av资源网一区| 91官网在线观看| 在线免费精品视频| 欧美电影在哪看比较好| 日韩一二三区不卡| 亚洲精品一区二区三区蜜桃下载 | 欧美一级欧美三级在线观看| 日韩欧美国产综合| 久久久久99精品一区| 国产欧美一区二区三区在线老狼| 国产欧美日韩综合| 亚洲码国产岛国毛片在线| 一区二区国产视频| 日韩av中文字幕一区二区三区| 免费亚洲电影在线| 成人性视频免费网站| 色香蕉成人二区免费| 欧美日韩一卡二卡| 精品国产一二三区| 国产精品久久毛片| 亚洲国产精品人人做人人爽| 精品亚洲成a人| 风间由美一区二区三区在线观看| 92国产精品观看| 日韩一区二区三区在线观看 | 亚洲色图第一区| 免费黄网站欧美| 99久久er热在这里只有精品15| 欧美在线观看一二区| 日韩三级高清在线| 亚洲人精品一区| 久久国产免费看| 99re亚洲国产精品| 精品盗摄一区二区三区| 亚洲黄色av一区| 国产精品888| 欧美揉bbbbb揉bbbbb| 久久欧美一区二区| 亚洲最大色网站| 国产二区国产一区在线观看| 色综合久久综合网欧美综合网| 日韩欧美一区二区免费| 亚洲人成人一区二区在线观看| 日韩精品国产欧美| 色伊人久久综合中文字幕| 精品国产一区二区在线观看| 亚洲精品菠萝久久久久久久| 国产真实乱子伦精品视频| 欧美亚洲综合另类| 国产拍揄自揄精品视频麻豆| 日本视频中文字幕一区二区三区| 色噜噜狠狠一区二区三区果冻| 久久久久国产一区二区三区四区| 日韩成人一级大片| 欧美中文字幕一区| 国产精品久久久久久久第一福利| 热久久免费视频| 精品视频999| 一色屋精品亚洲香蕉网站| 国产一区二区精品在线观看| 欧美片在线播放| 亚洲欧洲在线观看av| 国产激情一区二区三区桃花岛亚洲| 欧美高清激情brazzers| 亚洲综合色视频| 97久久人人超碰| 国产欧美日韩不卡免费| 国产美女主播视频一区| 精品91自产拍在线观看一区| 丝袜美腿亚洲一区| 欧美日韩黄色影视| 亚洲综合小说图片| 欧美亚洲综合色| 伊人色综合久久天天| 91社区在线播放| 国产精品久久久久影院老司 | 日韩精品一区二区在线| 亚洲第一会所有码转帖| 欧美亚洲国产一区二区三区va| 国产精品久久二区二区| 成人精品免费看| 中文字幕不卡的av| www.色综合.com| 亚洲婷婷综合色高清在线| 91在线视频免费91| 一区二区三区 在线观看视频| 欧美午夜精品久久久久久超碰| 亚洲精品中文字幕乱码三区 | 不卡视频免费播放| 国产精品久久久久aaaa| 色一情一乱一乱一91av| 亚洲午夜私人影院| 欧美日韩国产一级| 日韩在线播放一区二区| 欧美一区二区高清| 国内精品免费在线观看| 中文字幕+乱码+中文字幕一区| 成人国产免费视频| 自拍av一区二区三区| 欧洲人成人精品| 天堂av在线一区| 精品va天堂亚洲国产| 大胆亚洲人体视频| 一区2区3区在线看| 91精品国产综合久久国产大片| 久久精品999| 国产精品久久久久影院老司| 欧美性猛片aaaaaaa做受| 秋霞国产午夜精品免费视频| 久久久久久99久久久精品网站| 国产不卡视频一区二区三区| 亚洲人成电影网站色mp4| 欧美美女一区二区在线观看|