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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? accl.h

?? 螞蟻聚類算法源代碼(ant based clustering algorithm)
?? H
字號:
/*  Ant-based Clustering    Copyright (C) 2004 Julia Handl    Email: Julia.Handl@gmx.de    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//***************************************************date: 7.4.2003author: Julia Handl (julia.handl@gmx.de)description:implementation of ant-based clusteringRun Algorithm as follows:- Construct accl object (constructor requires a pointer  to a configuration object, to a data collection,  and an evaluation object)- Call initialisation routine init()- Call main routine run()- Possibly convert spatial distribution to explicit  partitioning using constructclustering()- Solution can be visualised by calling routine  visualize() from parent class clalg  - Evaluation object must be initialised by the  spatial distribution or the explicit partitioning  or an array of the grid-positions of all data  elements; subsequently evaluation functions  can be called***************************************************/#ifndef ACCL_JH_2003#define ACCL_JH_2003#include "clalg.h"/* class accl*/class accl:public clalg {    class ant;    class antcolony; private:    antcolony * colony;    int generation_ctr;    /* Class Antcolony */    class antcolony {    private:    	/* Array of ants that make up the colony */	ant * ants;	/* Toroidal grid, the ants "live" on */	grid * env;	/* Pointer to the configuration object encapsulating all parameter settings */	conf * par;	    public:    	/* Constructor: requires a pointer to the current configuration object	and a pointer to a grid object */	antcolony(conf * c, grid * e);	/* Destructor */	~antcolony();	/* Read/Write access to individual members / ants of the colony */	ant &operator[](int i);	/* Starting phase: all ants are randomly placed on the grid	and pick up a data elements */	void init();	/* Main phase: members of the colony are subsequently	activated and transport data elements */	void cometolive();	/* Ending phase: all ants drop their data items at the	position where they picked them up */	void finish();    };    class ant {        	/* Short term memory of an ant */	class memory {	    friend class ant;	public:	    /* Array of the last transported data items */	    int * index;	    /* Array of corresponding dropping positions */	    position<int>* pos;	    /* Flag to indicate whether the memory is full.	       Only then it will be used */	    int initialized;	    /* Flag for the intermediate deactivation of the memory	       until next picking operation */	    int braindead;	    	    /* Pointer to the next writing position in the memory */	    int ptr;	    	    /* Size of the memory */	    int size;	    /* Each ant needs a pointer to the environment:	       this environment provides access to local neighbourhood and	       permits the comparison of data items	    */	    grid * env;	    /* Constructor:	       requires a pointer to the environment and the desired size	       if the memory 	    */	    memory(grid * e, int s);	    /* Desctructor:	       deletion of the allocated memory	    */	    ~memory();	    /* store a new data item <data> and its corresponding dropping position <p> in the memory */	    void remember(int data, position<int>& p, double alpha);	    /* find the best matching data item (for <data>) in the memory and	       set <p> to the corresponding dropping position */	    double bestmatch(int data, position<int>&p, ant & a, int clusterphase, int lookahead);	};	friend class antcolony;	friend class memory;    public:	/* parameters that can be set individually for each ant */	double kd;	double kp;	double alpha;	double scalefactor;	int radius;	double nsize;	int size;	int memsize;	int speed;	int failure_ctr;	int activation_ctr;	int adapt;	/* each ant has a memory, a pointer to the grid and a pointer to	   the current configuration object */	memory * mem;	grid * env;	conf * par;	/* current ant position on the grid */	position<int>pos;	/* grid position where currently carried data item was picked up */	position<int> lastpos;	/* currently carried data item */	int dat;    public:        	/* Constructor:	   requires a pointer to the current configuratio object	   and to the environment 	*/	ant(conf * , grid * ec);	/* Destructor:	*/	~ant();	/* randomly pick up a first data item */	void init();	/* drop down the carried data item at the position	   where it was picked up 	*/	void finish();	/* do one random (possibly biased) move on the grid	*/	void move();	/* try to drop data item; if successful pick up a new one */	void dropandpick();	/* threshold function for pickup operation */	double th_pick(double f);	/* theshold function for dropping operation */	double th_drop(double f);	double square(double x);	/* memory access for data index and the corresponding position (x and y coordinate respectively) */	int ithmemory(int i);	int ithmemoryx(int i);	int ithmemoryy(int i);    }; public:    /* Construcor:       requires pointer to the current configuration object,       the current data collection <bin> and an evaluation       object */    accl(conf * par, databin<USED_DATA_TYPE> * bin, evaluation * e);        /* Destructor:       free all resources       */    ~accl();        /* Initialisation:       construct grid and ant colony    */    void init();        /* Run ant algrithm; must be preceeded by initialisation */    void run();        /* Transform ant solution to explicit clustering using agglomerative clustering */    void constructclustering();    /* Single link linkage criterion for agglomerative clustering algorithm */    double minlink(int * cluster1, int * cluster2, position<double> ** docindex);};#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区在线观看| 国产精品综合一区二区三区| 久久婷婷国产综合精品青草| 一本大道久久精品懂色aⅴ| 天天操天天色综合| 欧美激情一区二区三区不卡| 欧美日韩成人综合在线一区二区| 国产精品亚洲专一区二区三区| 亚洲乱码国产乱码精品精的特点| 日韩精品一区二区三区在线| 色成人在线视频| 国产91丝袜在线播放| 日韩av高清在线观看| 一区二区三区鲁丝不卡| 中文乱码免费一区二区| 日韩一卡二卡三卡| 欧美日韩一区久久| 色婷婷久久99综合精品jk白丝| 国模套图日韩精品一区二区| 偷拍日韩校园综合在线| 一区二区三区免费观看| ...xxx性欧美| 中文字幕在线一区免费| 久久精品亚洲麻豆av一区二区| 在线综合+亚洲+欧美中文字幕| 日本韩国精品一区二区在线观看| 国产91丝袜在线观看| 国产精品中文字幕日韩精品| 九九视频精品免费| 麻豆成人免费电影| 日韩电影在线一区二区三区| 亚洲成人综合网站| 亚洲午夜精品在线| 亚洲午夜久久久久久久久久久| 亚洲精品视频一区| 亚洲欧美激情视频在线观看一区二区三区| 久久久午夜精品理论片中文字幕| 欧美一级在线免费| 一区二区欧美在线观看| 亚洲精品视频在线观看免费| 樱花影视一区二区| 亚洲免费av高清| 亚洲免费在线观看视频| 亚洲一区二区三区美女| 亚洲成人动漫av| 石原莉奈在线亚洲二区| 日本色综合中文字幕| 免费国产亚洲视频| 久久精品久久99精品久久| 蜜臀av性久久久久蜜臀aⅴ | 亚洲同性gay激情无套| 国产欧美一区二区在线| 国产精品视频麻豆| 亚洲欧美日韩人成在线播放| 亚洲精品高清视频在线观看| 亚洲一区二区三区四区的| 日韩精品一级中文字幕精品视频免费观看 | 另类人妖一区二区av| 麻豆精品视频在线| 国产在线播放一区| 风间由美性色一区二区三区| 成人av网站大全| 一本在线高清不卡dvd| 欧美视频中文字幕| 日韩精品中文字幕在线不卡尤物| 亚洲精品在线电影| 中文字幕一区二区三区四区不卡| 亚洲精品视频在线观看网站| 日本亚洲三级在线| 国产麻豆日韩欧美久久| 99精品国产视频| 欧美丰满少妇xxxbbb| 国产偷国产偷精品高清尤物| 亚洲婷婷综合久久一本伊一区| 亚洲一区二区欧美| 韩国av一区二区三区| 99久久综合狠狠综合久久| 欧美日韩小视频| 精品国产a毛片| 亚洲手机成人高清视频| 欧美a一区二区| 成人app在线观看| 91精品国产综合久久蜜臀| 国产亚洲精品bt天堂精选| 亚洲女同女同女同女同女同69| 蜜臀久久久久久久| k8久久久一区二区三区| 91精品国产综合久久小美女| 中文字幕av在线一区二区三区| 亚瑟在线精品视频| 成人一区二区三区视频在线观看 | 国产亚洲精品超碰| 色婷婷亚洲综合| 欧美成va人片在线观看| 亚洲免费观看高清| 国产一区二区三区免费播放| 欧美视频三区在线播放| 亚洲国产精品成人综合| 日本一不卡视频| 91久久奴性调教| 国产色婷婷亚洲99精品小说| 视频精品一区二区| 日本道精品一区二区三区 | 综合久久久久综合| 国精产品一区一区三区mba视频| 在线免费亚洲电影| 日本一区二区三区久久久久久久久不| 午夜影院在线观看欧美| av在线不卡网| 久久精品欧美一区二区三区不卡| 婷婷激情综合网| 91精品福利在线| 亚洲欧美综合在线精品| 国产风韵犹存在线视精品| 欧美一区二区成人| 日韩精品午夜视频| 91成人免费在线视频| 国产精品久久久久久久裸模| 国产一区二区在线免费观看| 欧美一区午夜视频在线观看| 香蕉av福利精品导航| 91久久一区二区| 亚洲嫩草精品久久| hitomi一区二区三区精品| 欧美经典三级视频一区二区三区| 久久99久久久久| 日韩欧美久久久| 美女任你摸久久| 91精品在线免费| 日韩精品亚洲专区| 91精品国产一区二区三区| 亚洲国产日韩在线一区模特| 欧亚洲嫩模精品一区三区| 一区二区三区日韩在线观看| 色中色一区二区| 亚洲精品国产无天堂网2021| 色诱亚洲精品久久久久久| 亚洲视频一二三| 色综合天天综合网国产成人综合天| 国产精品午夜在线观看| av一区二区三区四区| 国产精品国产三级国产aⅴ入口| 懂色av一区二区三区免费观看| 日本一区二区三区电影| 成人开心网精品视频| 综合久久久久综合| 欧洲一区在线电影| 午夜精品久久久久久久99樱桃| 欧美福利视频一区| 国产在线精品一区二区不卡了| 久久综合九色综合久久久精品综合 | 欧美一区二区视频在线观看| 美女脱光内衣内裤视频久久影院| 日韩一级片网址| 韩国成人在线视频| 国产精品国产三级国产a| 欧洲一区在线电影| 美女视频免费一区| 国产三级欧美三级日产三级99 | 亚洲手机成人高清视频| 欧美影视一区二区三区| 人人爽香蕉精品| 精品国产电影一区二区| 成人aa视频在线观看| 亚洲国产精品自拍| 欧美v日韩v国产v| 岛国精品在线播放| 一区二区三区在线观看欧美| 欧美日韩精品欧美日韩精品一综合| 日本vs亚洲vs韩国一区三区二区| 国产日产欧产精品推荐色| 91浏览器在线视频| 免费人成精品欧美精品| 中文字幕免费不卡在线| 欧美视频一区在线| 国产麻豆精品久久一二三| 亚洲精品欧美专区| 日韩一区二区三区在线| 成人中文字幕电影| 亚洲成a人片综合在线| 精品久久人人做人人爱| 色综合久久综合网97色综合| 麻豆国产精品视频| 有坂深雪av一区二区精品| 久久久久久一级片| 欧美特级限制片免费在线观看| 国产精品综合视频| 午夜精品福利一区二区三区蜜桃| 久久久久国产免费免费| 欧美日韩亚洲不卡| 国产91精品一区二区麻豆亚洲| 亚洲国产精品久久人人爱蜜臀| 日本一区二区三区高清不卡| 在线综合+亚洲+欧美中文字幕| av中文字幕一区| 韩日av一区二区| 丝袜国产日韩另类美女| 日韩一区在线免费观看| 精品欧美久久久| 欧美图区在线视频|