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

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

?? rep.h

?? c++編寫的并行拉馬克遺傳算法的程序。實現分析對接程序
?? H
字號:
//  These are the classes  associated with the Representation class//  hierarchy.  The Representation class is meant to be a generic//  place holder for any type of Representation that a user might//  need to build a problem out of.  By the way, these derived //  (Representation) classes look like perfect candidates for templates //  We need to make sure that the const pointers//  are never used to indirectly change values!//  rsh 07/08/95//  //  The type Element was added to take care of all of the void *//  rsh 02/23/96#ifndef _REP_H#define _REP_H#include <iostream.h>#ifdef sgi    #include <stdio.h>    #include "structs.h"#else    extern "C"    {	#include <stdio.h>	#include "structs.h"    }#endif#define ACCURACY 0.001//#define REALV_LOW -100.0 //gmm, 1998-07-08//#define REALV_HIGH 100.0 //gmm, 1998-07-08#define REALV_LOW -3.14159265358979323846 //gmm, 1998-07-08#define REALV_HIGH 3.14159265358979323846 //gmm, 1998-07-08enum RepType {T_BASE, T_IntV, T_RealV, T_CRealV, T_BitV};typedef union {   double real;   FourByteLong integer;   unsigned char bit;} Element;class Representation{   public:      unsigned int number_of_pts;      RepType mytype;      unsigned char normalized; // =1 means the vector's normalized   public:      Representation(void);      Representation(unsigned int);      virtual ~Representation(void);      virtual Representation &operator=(const Representation &) = 0;      unsigned int number_of_points(void) const;      int is_normalized(void) const;      virtual RepType type(void) const;       virtual void write(unsigned char, int) = 0;      virtual void write(FourByteLong, int) = 0;      virtual void write(double, int) = 0;//      virtual void write(const void *, int) = 0;//      virtual const void *gene(unsigned int) const = 0;      virtual void write(const Element, int) = 0;      virtual const Element gene(unsigned int) const = 0;      virtual Representation *clone(void) const = 0;      virtual const void *internals(void) const = 0;};class IntVector : public Representation{//   friend void debug(IntVector &);   protected:      static FourByteLong low, high;      FourByteLong *vector;      const void *internals(void) const;      Representation *clone(void) const;   public:      IntVector(void);      IntVector(int);      IntVector(int, FourByteLong *);      IntVector(int, FourByteLong, FourByteLong);      IntVector(const IntVector &);      ~IntVector(void);      void write(unsigned char, int);      void write(FourByteLong, int);      void write(double, int);//      void write(const void *, int);      void write(const Element, int);      Representation &operator=(const Representation &);//      const void *gene(unsigned int) const;      const Element gene(unsigned int) const;};class RealVector : public Representation{//   friend void debug(RealVector &);   protected:      float high, low;      double *vector;      const void *internals(void) const;      Representation *clone(void) const;   public:      RealVector(void);      RealVector(int);      RealVector(int, double *);      RealVector(int, double, double);      RealVector(const RealVector &);      ~RealVector(void);      void write(unsigned char, int);      void write(FourByteLong, int);      void write(double, int);//      void write(const void *, int);      void write(const Element, int);      Representation &operator=(const Representation &);//      const void *gene(unsigned int) const;      const Element gene(unsigned int) const;};//  Maybe this should be derived from RealVectorclass ConstrainedRealVector : public Representation{//   friend debug(ConstrainedRealVector &);   protected:      static float high, low;      static double sum;      double *vector;      const void *internals(void) const;      Representation *clone(void) const;      void normalize(void) const;   public:      ConstrainedRealVector(void);      ConstrainedRealVector(int);      ConstrainedRealVector(int, double *);      ConstrainedRealVector(int, double, double);      ConstrainedRealVector(const ConstrainedRealVector &);      ~ConstrainedRealVector(void);      void write(unsigned char, int);      void write(FourByteLong, int);      void write(double, int);//      void write(const void *, int);      void write(const Element, int);      Representation &operator=(const Representation &);//      const void *gene(unsigned int) const;      const Element gene(unsigned int) const;};class BitVector : public Representation{//   friend void debug(BitVector &);   protected:      static float one_prob;      unsigned char *vector;      const void *internals(void) const;      Representation *clone(void) const;   public:      BitVector(void);      BitVector(int);      BitVector(int, unsigned char *);      BitVector(int, float);      BitVector(const BitVector &);      ~BitVector(void);      void write(unsigned char, int);      void write(FourByteLong, int);      void write(double, int);//      void write(const void *, int);      void write(const Element, int);      Representation &operator=(const Representation &);//      const void *gene(unsigned int) const;      const Element gene(unsigned int) const;};/**************************************************************************      Inline Functions**************************************************************************/inline Representation::Representation(void){   number_of_pts = 0;   mytype = T_BASE;}inline Representation::Representation(unsigned int pts){   number_of_pts = pts;}inline Representation::~Representation(void){}inline unsigned int Representation::number_of_points(void) const{   return(number_of_pts);}inline int Representation::is_normalized(void) const{   return(normalized);}inline RepType Representation::type(void) const{   return(mytype);}inline Representation *Representation::clone(void) const{   return(NULL);}inline IntVector::IntVector(void): Representation(0){   vector = (FourByteLong *)NULL;   mytype = T_IntV;}//  This constructor does a shallow copy of the arrayinline IntVector::IntVector(int num_els, FourByteLong *array): Representation(num_els){   vector = array;   mytype = T_IntV;}inline IntVector::~IntVector(void){   if(vector!=(FourByteLong *)NULL)   {      delete [] vector;   }}inline Representation *IntVector::clone(void) const{   return(new IntVector(*this));}inline RealVector::RealVector(void): Representation(0){   low = REALV_LOW;   high = REALV_HIGH;   vector = (double *)NULL;   mytype = T_RealV;}//  This performs a shallow copy of the arrayinline RealVector::RealVector(int num_els, double *array): Representation(num_els){   low = REALV_LOW;   high = REALV_HIGH;   vector = array;   mytype = T_RealV;}inline RealVector::~RealVector(void){   if(vector!=(double *)NULL)   {      delete [] vector;   }}inline Representation *RealVector::clone(void) const{   return(new RealVector(*this));}inline ConstrainedRealVector::ConstrainedRealVector(void): Representation(0){   normalized = 1;   vector = (double *)NULL;   mytype = T_CRealV;}inline ConstrainedRealVector::ConstrainedRealVector(int num_els, double *array):  Representation(num_els){   normalized = 0;   vector = array;   mytype = T_CRealV;}inline ConstrainedRealVector::~ConstrainedRealVector(void){   if(vector!=(double *)NULL)   {       delete [] vector;   }}inline Representation *ConstrainedRealVector::clone(void) const{   return(new ConstrainedRealVector(*this));}inline BitVector::BitVector(void): Representation(0){   vector = (unsigned char *)NULL;   mytype = T_BitV;}//  Do a shallow copyinline BitVector::BitVector(int num_els, unsigned char *array): Representation(num_els){   vector = array;   mytype = T_BitV;}inline BitVector::~BitVector(void){   if(vector!=(unsigned char *)NULL)   {      delete [] vector;   }}inline Representation *BitVector::clone(void) const{   return(new BitVector(*this));}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久免费视频了| 日本久久精品电影| 亚洲成a人v欧美综合天堂| 国产精品女同互慰在线看| 精品国产伦一区二区三区观看方式| 色婷婷综合久久| 色成年激情久久综合| 一本大道av伊人久久综合| 91亚洲国产成人精品一区二区三| 国产一区二区三区高清播放| 久草这里只有精品视频| 久久99九九99精品| 极品少妇xxxx精品少妇| 国产精品中文字幕一区二区三区| 国模一区二区三区白浆| 国产精品1024| 成人av高清在线| 一本色道亚洲精品aⅴ| 国产高清在线精品| 成人免费毛片app| 色综合久久天天| 欧美三级资源在线| 欧美成人性福生活免费看| 久久只精品国产| 亚洲国产精品传媒在线观看| 亚洲激情图片qvod| 青青草91视频| 国产宾馆实践打屁股91| 日本久久一区二区| 日韩欧美一级精品久久| 亚洲国产成人午夜在线一区| 一区二区三区免费在线观看| 日韩激情av在线| 国产一区视频在线看| 91网站视频在线观看| 热久久免费视频| 中文字幕一区二区日韩精品绯色| 久久久久久久久久久久久女国产乱 | 精品一区二区av| 成人动漫av在线| 欧美精品 国产精品| 精品国产乱码久久| 亚洲码国产岛国毛片在线| 日韩va欧美va亚洲va久久| 成人avav影音| 欧美第一区第二区| 亚洲精品成人少妇| 国产一级精品在线| 欧美久久免费观看| 亚洲欧美自拍偷拍| 蜜臀av一区二区三区| 91浏览器在线视频| 久久免费视频色| 奇米精品一区二区三区在线观看| 99视频一区二区三区| 欧美大片国产精品| 亚洲精品中文字幕在线观看| 国产精品 日产精品 欧美精品| 欧美性色综合网| 国产精品午夜在线| 韩国av一区二区三区四区| 欧美日韩你懂得| 亚洲综合色视频| av在线播放一区二区三区| 欧美videos中文字幕| 一区二区三区国产豹纹内裤在线| 国产精品18久久久久久vr| 欧美一区二区三区白人| 亚洲乱码国产乱码精品精98午夜 | 国产成人欧美日韩在线电影| 欧美精品九九99久久| 亚洲成av人片在www色猫咪| 国产精品一级在线| 日韩欧美国产一区在线观看| 亚洲成人动漫av| 成人免费视频一区二区| 国产欧美日韩三区| 国产盗摄一区二区| 精品国产乱码91久久久久久网站| 久久99在线观看| 欧美一级欧美三级| 秋霞av亚洲一区二区三| 91精品国产综合久久久久久久久久| 亚洲精品欧美激情| 91行情网站电视在线观看高清版| 《视频一区视频二区| 99久久99久久免费精品蜜臀| 中文字幕一区二| av午夜精品一区二区三区| 亚洲区小说区图片区qvod| 一本色道**综合亚洲精品蜜桃冫| 成人欧美一区二区三区小说| 色嗨嗨av一区二区三区| 亚洲图片欧美色图| 7777精品久久久大香线蕉| 精品一区二区三区在线观看| 久久久精品黄色| 国产69精品久久777的优势| 亚洲欧洲另类国产综合| 成人app下载| 亚洲第一搞黄网站| 欧美一区二区成人| 国产成人精品亚洲日本在线桃色| 国产精品麻豆视频| 欧美丝袜丝交足nylons图片| 免费看日韩精品| 国产视频一区不卡| 91亚洲午夜精品久久久久久| 午夜精品一区二区三区电影天堂 | 亚洲大片精品永久免费| 欧美一区二区福利视频| 成人午夜av电影| 亚洲成人激情av| 久久免费美女视频| 欧美性猛交xxxx乱大交退制版| 日本欧美一区二区三区乱码| 中文字幕不卡在线观看| 欧美午夜电影网| 风间由美性色一区二区三区| 亚洲第一激情av| 国产精品久久精品日日| 欧美性色黄大片| 成人一级片在线观看| 青娱乐精品视频在线| 国产精品久久久久久久久搜平片 | 亚洲图片另类小说| 欧美高清www午色夜在线视频| 国产成人精品免费在线| 日韩av一级片| 亚洲精品精品亚洲| 国产日韩欧美在线一区| 日韩一区二区在线看| 91久久线看在观草草青青| 国产成人av一区二区三区在线 | 亚洲欧洲国产日本综合| 26uuu国产电影一区二区| 欧美人伦禁忌dvd放荡欲情| 国产91在线看| 久久av中文字幕片| 一区二区三区精品在线观看| 中文字幕巨乱亚洲| 亚洲精品一区二区精华| 在线成人高清不卡| 欧美日韩一区高清| 91视频xxxx| 91免费国产在线观看| 高清视频一区二区| 国产又粗又猛又爽又黄91精品| 亚洲成av人片在www色猫咪| 一区二区三区四区蜜桃| 日韩理论片一区二区| **性色生活片久久毛片| 中文字幕在线不卡视频| 中文字幕五月欧美| 中文字幕av在线一区二区三区| 国产午夜精品一区二区| 久久精品男人的天堂| 久久久久97国产精华液好用吗| 欧美高清www午色夜在线视频| 欧美性感一区二区三区| 欧美日韩一区二区三区高清| 欧洲色大大久久| 在线欧美小视频| 欧美视频你懂的| 欧美挠脚心视频网站| 777xxx欧美| 51精品久久久久久久蜜臀| 欧美精品乱人伦久久久久久| 制服丝袜av成人在线看| 日韩一区二区影院| 2020国产精品久久精品美国| xf在线a精品一区二区视频网站| 久久久777精品电影网影网| 日本一区二区免费在线| 亚洲靠逼com| 日韩 欧美一区二区三区| 国产乱码精品一区二区三区忘忧草| 懂色av中文字幕一区二区三区| hitomi一区二区三区精品| 在线免费观看一区| 欧美精品日韩一本| 久久精品人人做人人爽97| 一区二区三区中文字幕在线观看| 亚洲国产综合91精品麻豆| 久久国产麻豆精品| av在线不卡网| 欧美疯狂做受xxxx富婆| 久久久亚洲精品石原莉奈| 亚洲理论在线观看| 精久久久久久久久久久| 国产91精品露脸国语对白| 欧美亚洲禁片免费| 久久一区二区三区四区| 亚洲一区中文日韩| 麻豆高清免费国产一区| 91天堂素人约啪| 欧美videofree性高清杂交| 亚洲欧美经典视频| 国产高清精品网站| 欧美亚洲综合网|