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

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

?? basics.java

?? 本程序是用java語言編寫的數據挖掘分類算法中的決策樹分類方法c4.5程序代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// It must be defined "const" because it is used to dimension arrays.
static const int IO_BUFFER_SIZE = 1024;
 
// This is the maximum length of a string read from a file
static const int MAX_INPUT_STRING_SIZE = 1000;
 
extern const int        DEFAULT_PRECISION;
 
extern const Real       REAL_EPSILON;
extern const StoredReal STORED_REAL_EPSILON;
 
 
// This is the maximum length of a quoted string we can read from a file
static const int MAX_QUOTED_STRING = 200000;
 
// See basicCore.c for these values.
extern const char *WHITE_SPACE;
extern const float  DEFAULT_PAGE_X;
extern const float  DEFAULT_PAGE_Y;
extern const float  DEFAULT_GRAPH_X;
extern const float  DEFAULT_GRAPH_Y;
extern MLCOStream*  globalLogStream;
extern const Real CONFIDENCE_INTERVAL_PROBABILITY;
extern const Real CONFIDENCE_INTERVAL_Z; // value such that area under standard
                                       // normal curve going left & right Z,
                                       // has CONFIDENCE_INTERVAL_PROBABILITY
 
class OptionServer;
extern OptionServer *optionServer;
 
#  if defined(__CENTERLINE__)
   extern "C" { int centerline_true(void); }
#  endif
 
#define RCSID(str)
 
// DECLARE_DISPLAY declares operator<< for the given class (.h file)
// DEF_DISPLAY defines it (for use in .c file)
// For templated classes do
//   template <class T> DEF_DISPLAY(DblLinkList<T>)
//
// Note: you should NOT place a semicolon after either DECLARE_DISPLAY or
//   DEF_DISPLAY when you use it in code.
#define DECLARE_DISPLAY(class) \
   MLCOStream& operator<<(MLCOStream& s, const class& c);
 
#define DEF_DISPLAY(class) \
   MLCOStream& operator<<(MLCOStream& s, const class& c) \
   {c.display(s); return s;}
 
extern const MString TRUE_STRING;
extern const MString FALSE_STRING;
extern const MString EMPTY_STRING;
const MString& bool_to_string(Bool boolValue);
 
inline Real square_real(Real x) {return x*x;}
inline double square_double(double x) {return x*x;}
Real Mround(Real x, int digits);
 
MString get_env_default(const MString& envVarName, const MString& defaultName);
MString get_env(const MString& envVarName);
int get_env_int(const MString& envVarName, int val);
Bool get_env_bool(const MString& envVarName, Bool val);
 
 
// Log base 2.  Solaris doesn't have log2().
double log_bin(double num);
 
// Lose the least significant digits of Reals in an array.  Sometimes things
// just don't add up right...
template <class Element> class Array;
template <class Element> class Array2;
extern void lose_lsb_array(Array<Real>& a);
 
template<class T> inline void mlc_swap(T& a, T& b)
   {T temp; temp = a; a = b; b = temp;}
 
// MLCThreads.h is included in all cases in order to define some
//   stub functions.
#include <MLCThreads.h>
 
// Note:  The following concerns performance in using the MLC methods that
//   are passed strings.
// The following class (MLC) has several methods that are passed
//   error messages.  These error messages used to be passed as MString&s.
//   If normal invocation is:
//      class_method(other_args, "This is an error message");
//   the MString(const char*) constructor/destructor pair was invoked on
//   each call.  When this occured inside a tight loop the overhead
//   could be quite high.  If function a was calling function b in a tight
//   loop, and b was invoking one of the said class methods, we couldn't
//   even expect any help from a smart compiler to speed things up.
//   What was more disappointing about the performance loss was that no more
//   than one MString ever needed to be constructed--no such MString was used
//   unless the method immediately aborted.  There were only 2 ways to speed
//   this up, either
//   a) invoke the methods with static const MStrings, or
//   b) declare the calling arguments to be const char* const, so an MString
//   constructor was not called more than once.
//   We selected b.
 
// Name-space class for min/max, and clamping reals within ranges (with
//   abort on more than clampingEpsilon from the range), and comparison of
//   rational numbers with epsilons used to nullify small differences.
class MLC {
   NO_DEFAULT_OPS(MLC);
private:
   // Member data
   // Amount by which values to be clamped my exceed the range, without
   //   aborting.
   Real clampingEpsilon;
   StoredReal storedClampingEpsilon;
   static Real realEpsilon;
   static StoredReal storedRealEpsilon;
 
   static int dribbleState;
   // dribble each 10% = 100% / 10
   //@@ removed from kit
   // static const int DRIBBLE_SCALE = 10;
 
   // performance measurement
   timespec_t start, stop;
   const MString* perfExpName;
 
public:
   //@@ GNU gets very upset when real_epsilon() and stored_real_epsilon()
   //     in the constructor.  They don't seem to be defined at that point.
   MLC(Real clampEpsilon = realEpsilon * 10,
       StoredReal storedClampEpsilon = storedRealEpsilon * 10)
      : clampingEpsilon(clampEpsilon),
        storedClampingEpsilon(storedClampEpsilon) {}
   void set_epsilon_multiplier(int mult)
       {ASSERT(mult >= 0);
       clampingEpsilon = mult * real_epsilon();
       storedClampingEpsilon = mult * stored_real_epsilon();}
 
   static Real real_epsilon() { return realEpsilon;}
   static StoredReal stored_real_epsilon() { return storedRealEpsilon;}
   static void get_epsilon(Real & val) {val = realEpsilon;}
   static void get_epsilon(StoredReal & val) {val = storedRealEpsilon;}
   // Amount by which values to be clamped may exceed the range, without
   //   aborting.
   Real clamping_epsilon() const {return clampingEpsilon;}
   StoredReal stored_clamping_epsilon() const {return storedClampingEpsilon;}
 
   void get_clamping_epsilon(Real& val) const {val = clampingEpsilon;}
   void get_clamping_epsilon(StoredReal& val) const
      {val = storedClampingEpsilon;}
 
   // approx_less() and approx_greater() are disjoint with approx_equal().
   Bool approx_equal(Real lhs, Real rhs, int precMultiplier = 1) const
      {DBG(ASSERT(precMultiplier >= 0));
      return (fabs(lhs - rhs) <=
              clampingEpsilon * precMultiplier *
              MLC::max(Real(1), MLC::min(fabs(lhs), fabs(rhs))));
      }
   Bool approx_greater(Real lhs, Real rhs, int precMultiplier = 1) const
      {return (approx_equal(lhs, rhs, precMultiplier) ? FALSE : (lhs > rhs));}
   Bool approx_less(Real lhs, Real rhs, int precMultiplier = 1) const
      {return (approx_equal(lhs, rhs, precMultiplier) ? FALSE : (lhs < rhs));}
   void verify_approx_equal(Real lhs, Real rhs, const char* const errMsg,
                            int precMultiplier = 1) const
   {if (!approx_equal(lhs, rhs, precMultiplier))
      err << errMsg << endl << lhs << " versus " << rhs << fatal_error;
   }
   Bool approx_equal(StoredReal lhs, StoredReal rhs,
                     int precMultiplier = 1) const
   {DBG(ASSERT(precMultiplier >= 0));
   return (fabs(lhs - rhs) <=
           storedClampingEpsilon * precMultiplier *
           MLC::max(StoredReal(1),
                    StoredReal(MLC::min(fabs(lhs), fabs(rhs)))));
   }
   Bool approx_greater(StoredReal lhs, StoredReal rhs,
                       int precMultiplier = 1) const
      {return (approx_equal(lhs, rhs, precMultiplier) ? FALSE : (lhs > rhs));}
   Bool approx_less(StoredReal lhs, StoredReal rhs,
                    int precMultiplier = 1) const
      {return (approx_equal(lhs, rhs, precMultiplier) ? FALSE : (lhs < rhs));}
   void verify_approx_equal(StoredReal lhs, StoredReal rhs,
                            const char* const errMsg,
                            int precMultiplier = 1) const
   {if (!approx_equal(lhs, rhs, precMultiplier))
      err << errMsg << endl << lhs << " versus " << rhs << fatal_error;
   }
 
   Real real_max(const Array<Real> &realArray);
   Real real_max(const Array<Real> &realArray, int &idx);
   Real real_min(const Array<Real> &realArray);
   Real real_min(const Array<Real> &realArray, int &idx);
 
   // These are approximate equality functions for Arrays of Reals
   // and StoredReals.
   Bool approx_equal(const Array<Real>& a1, const Array<Real>& a2,
                     int precMult = 1);
   Bool approx_equal(const Array<StoredReal>& a1,
                     const Array<StoredReal>& a2, int precMult = 1);
   //void verify_approx_equal(const Array<Real>& a1, const Array<Real>& a2,
   //		    const char* const errMsg, int precMult = 1);
   //void verify_approx_equal(const Array<StoredReal>& a1,
   //		    const Array<StoredReal>& a2,
   //		    const char* const errMsg, int precMult = 1);
 
   // These are approximate equality functions for Array2s of Reals
   // and StoredReals.
   Bool approx_equal(const Array2<Real>& a1, const Array2<Real>& a2,
                     int precMult = 1);
   Bool approx_equal(const Array2<StoredReal>& a1,
                     const Array2<StoredReal>& a2, int precMult = 1);
   //void verify_approx_equal(const Array2<Real>& a1, const Array2<Real>& a2,
   //		    const char* const errMsg, int precMult = 1);
   //void verify_approx_equal(const Array2<StoredReal>& a1,
   //		    const Array2<StoredReal>& a2,
   //		    const char* const errMsg, int precMult = 1);
 
   // The verify_strictly_XXX functions do not use "greater than" or
   //   "less than".  They use "must exceed by epsilon" and
   //   "must be at least epsilon less than".
   // They are not mutually disjoint.
   static void verify_strictly_in_range(Real source, Real lowBound,
                                        Real highBound,
                                        const char* const
                                        additionalErrMsg = NULL);
   static void verify_strictly_greater(Real lhs, Real rhs,
                                       const char* const
                                       additionalErrMsg = NULL);
   static void verify_strictly_less(Real lhs, Real rhs,
                                    const char* const additionalErrMsg = NULL);
   static void verify_strictly_in_range(StoredReal source,
                                        StoredReal lowBound,
                                        StoredReal highBound,
                                        const char* const
                                        additionalErrMsg = NULL);
   static void verify_strictly_greater(StoredReal lhs, StoredReal rhs,
                                       const char* const
                                       additionalErrMsg = NULL);
   static void verify_strictly_less(StoredReal lhs, StoredReal rhs,
                                    const char* const additionalErrMsg = NULL);
 
   // The clampXXX functions will take a value that is outside, by epsilon,
   //   that desired, and clamp it to the range.
   void clamp_to_range(Real& source, Real lowBound, Real highBound,
                       const char* const additionalErrMsg = NULL,
                       int precMultiplier = 1) const;
   void clamp_above(Real& source, Real lowBound,
                    const char* const additionalErrMsg = NULL,
                    int precMultiplier = 1) const;
   void clamp_below(Real& source, Real highBound,
                    const char* const additionalErrMsg = NULL,
                    int precMultiplier = 1) const;
   void clamp_to_range(StoredReal& source, StoredReal lowBound,
                       StoredReal highBound,
                       const char* const additionalErrMsg = NULL,
                       int precMultiplier = 1) const;
   void clamp_above(StoredReal& source, StoredReal lowBound,
                    const char* const additionalErrMsg = NULL,
                    int precMultiplier = 1) const;
   void clamp_below(StoredReal& source, StoredReal highBound,
                    const char* const additionalErrMsg = NULL,
                    int precMultiplier = 1) const;
   // @@ These should be template members once the compiler supports them.
   static int max(int lhs, int rhs)
      {return (lhs >= rhs) ? lhs : rhs;}
   static int min(int lhs, int rhs)
      {return (lhs <= rhs) ? lhs : rhs;}
   static Real max(Real lhs, Real rhs)
      {return (lhs >= rhs) ? lhs : rhs;}
   static Real min(Real lhs, Real rhs)
      {return (lhs <= rhs) ? lhs : rhs;}
   static StoredReal max(StoredReal lhs, StoredReal rhs)
      {return (lhs >= rhs) ? lhs : rhs;}
   static StoredReal min(StoredReal lhs, StoredReal rhs)
      {return (lhs <= rhs) ? lhs : rhs;}
 
   // dribble
   static void reset_dribble();
   static void dribble_wrapper(Real dribble);
   static void finish_dribble();
 
#ifdef TEST_PERFORMANCE
 
   // performance measurement; this is in basics.h so that we can redefine
   // TEST_PERFORMANCE in a separate file
 
   void start_performance_meas(const MString& str) {
      clock_gettime(CLOCK_REALTIME, &start);
      Mcout << "\n--- " << str << " started at "
            << start.tv_sec << " sec " << start.tv_nsec << " nanosec ...\n";
      perfExpName = &str;
   }
 
   void stop_performance_meas() {
      clock_gettime(CLOCK_REALTIME, &stop);
      // need unbuffered output for debugging
      Mcout << "\n ... finished  at "
            << stop.tv_sec << " sec " << stop.tv_nsec << " nanosec ---\n";
      Mcout << *perfExpName << " took " << (stop.tv_sec - start.tv_sec) +
         1.e-9 * (stop.tv_nsec - start.tv_nsec) << " seconds\n";
   }
 
#else
 
   // start_performance_meas does not compile without an assignment
   void start_performance_meas(const MString&) { }
   void stop_performance_meas() { }
 
#endif // TEST_PERFORMANCE
 
};
 
extern MLC mlc;
 
// Compare two Array<Real>s for equality, where the desired
//   precision multiplier.  Always treat as StoredRead for comparison
//   purposes.
Bool stored_real_equal(const Array<Real>& a1, const Array<Real>& a2,
                       int precMultiplier = 1);
Bool stored_real_equal(const Array<Real>& a1, const Array<StoredReal>& a2,
                       int precMultiplier = 1);
Bool stored_real_equal(const Array<StoredReal>& a1, const Array<Real>& a2,
                       int precMultiplier = 1);
Bool stored_real_equal(const Array<StoredReal>& a1,
                       const Array<StoredReal>& a2,
                       int precMultiplier = 1);
Bool stored_real_equal(const Array2<Real>& a1, const Array2<Real>& a2,
                       int precMultiplier = 1);
 
// This class contains flags which can be used to determine if other
//   static classes in basics are fully initialized.
class StaticInit {
   NO_DEFAULT_OPS(StaticInit);
public:
   // Public member data
   Bool is_initialized;  // Using an accessor function may cause a crash
                         //   if this is accessed at the wrong time.
 
   // Methods
   StaticInit() { is_initialized = TRUE; }
 
   // The following line is just a way of using variables so we
   //   don't get variable declared but never used.
  //  iostream_init doesn't appear in this form under MSVC
#if defined(PC_MSVC) || defined(GNU)
   void use_vars() { (void)mlcInit; }
#elif defined(MIPS_PRO)
   // Since 7.21, the iostream_init has been fixed and actually
   //   our statement causes a warning if it's there.
#  if (_COMPILER_VERSION <= 720)
   void use_vars() { (void)mlcInit; (void)iostream_init; }
#  else
   void use_vars() { (void)mlcInit; }
#  endif
#else
#error "compiler not supported"
#endif
 
   ~StaticInit() { is_initialized = FALSE; }
};
 
// Ternary value that extends Bool
class NYU {
   // Member data
   enum {unset = -1, no = 0, yes = 1} value;
public:
   NYU() {value = unset;}
   NYU(Bool b) {if (b) value = yes; else value = no;}
   NYU(int b) {if (b == 1) value = yes; else if (b == 0) value = no;
               else err << "NYU::int constructor not 0 or 1" << fatal_error;}
   const NYU& operator=(const NYU& nyu) { value = nyu.value; return *this;}
   Bool operator=(Bool b) {return b ? (value = yes) : (value = no);}
   Bool operator=(int b) {if (b == 1) return value = yes;
                          else if (b == 0) return value = no;
     else {err << "NYU::int constructor not 0 or 1" << fatal_error; return 0;}}
   Bool operator!() const {return !Bool(*this);}
   Bool is_unset() const {return value == unset;}
   operator Bool() const {if (value == unset)
                      err << "NYU::attempt to use unset value" << fatal_error;
                      return value == yes;}
   void display(MLCOStream& stream = Mcout) const;
};
DECLARE_DISPLAY(NYU)
 
// Check this member to see if initialization is complete.
extern StaticInit basicStatics;
 
 */
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区在线视频| 日韩美女视频一区| 亚洲婷婷综合色高清在线| 午夜精品久久久久影视| 成人性生交大片免费看中文| 欧美日韩在线一区二区| 国产精品午夜久久| 国产精品一级二级三级| 欧美最新大片在线看| 久久精品在线免费观看| 免费亚洲电影在线| 欧美体内she精高潮| 亚洲图片你懂的| 高清不卡在线观看| 精品99999| 麻豆91在线观看| 精品视频全国免费看| 亚洲人成影院在线观看| 成人天堂资源www在线| 欧美va天堂va视频va在线| 日韩国产精品久久久| 在线一区二区观看| 亚洲美女偷拍久久| 99久久国产综合精品色伊| 国产亚洲福利社区一区| 国产原创一区二区三区| 欧美草草影院在线视频| 裸体歌舞表演一区二区| 日韩一区二区在线观看| 人人狠狠综合久久亚洲| 日韩三级中文字幕| 免费成人结看片| 精品三级在线看| 国产综合色视频| 国产亚洲一区二区三区四区| 久久不见久久见免费视频1| 日韩欧美一区二区在线视频| 免费高清在线一区| 日韩精品中文字幕在线不卡尤物| 日本欧美一区二区三区| 欧美一卡2卡3卡4卡| 久久99久久久欧美国产| 337p日本欧洲亚洲大胆精品| 激情偷乱视频一区二区三区| 精品国产乱码久久久久久夜甘婷婷| 久久99久久久久| 久久久99精品免费观看不卡| 成人黄色小视频| 亚洲欧美日韩一区二区三区在线观看| 91麻豆产精品久久久久久| 亚洲线精品一区二区三区| 欧美麻豆精品久久久久久| 久久99久久99| 中文字幕一区二区三区蜜月| 色婷婷av一区二区三区gif| 亚洲成人午夜影院| 欧美tk—视频vk| a亚洲天堂av| 日韩电影网1区2区| 国产日产欧美精品一区二区三区| jlzzjlzz欧美大全| 日韩中文字幕亚洲一区二区va在线| 制服丝袜一区二区三区| 国产福利91精品| 亚洲一本大道在线| 久久综合狠狠综合久久激情| a级高清视频欧美日韩| 视频一区在线播放| 国产精品蜜臀av| 91精品在线免费| av在线综合网| 久久精品噜噜噜成人av农村| 国产精品进线69影院| 欧美另类z0zxhd电影| 国产传媒久久文化传媒| 香蕉加勒比综合久久| 欧美国产一区视频在线观看| 欧美日韩国产另类不卡| 成人中文字幕在线| 日本亚洲天堂网| 亚洲精品视频免费观看| 精品久久久久一区二区国产| 色婷婷综合在线| 国产v综合v亚洲欧| 视频一区免费在线观看| 最新国产成人在线观看| 久久久久综合网| 欧美精品在线观看播放| 99re视频这里只有精品| 国产美女久久久久| 免费一区二区视频| 五月婷婷综合网| 亚洲私人黄色宅男| 中文字幕乱码一区二区免费| 日韩免费一区二区三区在线播放| 欧美系列亚洲系列| 91在线观看免费视频| 国产成人亚洲精品青草天美| 日本不卡中文字幕| 天天影视涩香欲综合网| 亚洲综合在线免费观看| 国产精品天干天干在线综合| 精品久久久三级丝袜| 欧美一区午夜精品| 欧美一区二区三区小说| 欧美乱妇23p| 91精品国产入口在线| 欧美午夜电影网| 欧美三区免费完整视频在线观看| 91无套直看片红桃| 色综合久久综合中文综合网| 成人动漫精品一区二区| 成人亚洲一区二区一| 成人免费视频视频在线观看免费| 韩国av一区二区| 国产精品99久久不卡二区| 日本aⅴ精品一区二区三区| 亚洲国产一区二区三区青草影视| 亚洲精选在线视频| 亚洲一区二区三区美女| 亚洲成人久久影院| 天堂成人国产精品一区| 日韩电影在线观看一区| 免费黄网站欧美| 亚洲最大色网站| 日日骚欧美日韩| 美女在线视频一区| 国产一区二区福利视频| 国产精品1区2区| 99re免费视频精品全部| 日韩成人一区二区| 椎名由奈av一区二区三区| 久久先锋资源网| 国产一区二区伦理片| 久久精品国内一区二区三区| 亚洲成人在线免费| 综合色中文字幕| 亚洲电影在线播放| 日韩av电影一区| 国产一区二区调教| 一本大道av一区二区在线播放| 欧美亚洲尤物久久| 欧美精品第一页| 久久久噜噜噜久久人人看 | 久久久精品免费网站| 国产欧美视频在线观看| 《视频一区视频二区| 亚洲成av人片在线观看无码| 极品美女销魂一区二区三区 | 麻豆精品一二三| 成人av在线播放网址| 欧美视频在线观看一区| 精品国产123| 综合分类小说区另类春色亚洲小说欧美| 洋洋成人永久网站入口| 国产在线观看免费一区| 色爱区综合激月婷婷| 精品国精品国产尤物美女| 国产精品成人网| 麻豆极品一区二区三区| 91毛片在线观看| 精品国产乱子伦一区| 一区二区三区免费看视频| 国产一区二区三区四区在线观看| 色久优优欧美色久优优| 2023国产精品| 性久久久久久久| 色综合久久中文字幕综合网| 亚洲精品在线一区二区| 天堂av在线一区| 成人99免费视频| 精品av久久707| 午夜精品爽啪视频| www.欧美色图| 久久久精品免费免费| 蜜臂av日日欢夜夜爽一区| 在线视频中文字幕一区二区| 国产女人18水真多18精品一级做| 青青草97国产精品免费观看无弹窗版| 一本大道久久精品懂色aⅴ| 国产色综合一区| 寂寞少妇一区二区三区| 56国语精品自产拍在线观看| 一区二区三区在线视频免费观看| 成人午夜精品一区二区三区| 26uuu久久天堂性欧美| 日日摸夜夜添夜夜添国产精品| 91老司机福利 在线| 国产精品三级在线观看| 国产伦精品一区二区三区视频青涩 | 亚洲精品成人悠悠色影视| 激情偷乱视频一区二区三区| 欧美一区二区三区不卡| 日韩综合一区二区| 欧美日本在线看| 亚洲国产aⅴ天堂久久| 在线观看亚洲成人| 亚洲一区在线免费观看| 91精品福利视频| 亚洲国产中文字幕|