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

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

?? grid.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 a the two-dimensional gridused for ant-based clustering, SOMs and also forthe visualization of MDS solutions;***************************************************/#ifndef GRID_JH_2003#define GRID_JH_2003#include "conf.h"#include "databin.h"#define FREE -1/*  class position*/template <class T>class position { private:    T coord[2];     // only two-d coordinates   public:    position();    position(T i, T j);        ~position();      /* write-read access to coordinates */    T &operator[](const int p);    /* check limits to stay within torus */    const int checkborder(const int p, const int lim);    /* change coordinates to x = <di>, y = <dj> */    void set(T di, T dj);    /* add values in both dimensions to the coordinates        with/without boder check*/    void add(T di, T dj, T imax, T jmax);    void add(position<T> & P );    void add(T di, T dj);    /* divide both coordinates by <d> */    void div(int d);};   /* constructor: default initialisation */template <class T>position<T>::position(void) {    coord[0] = 0;    coord[1] = 0;}/* constructor: initialisation to x = <i>, y = <j> */template <class T>position<T>::position(T i, T j) {    coord[0] = i;    coord[1] = j;    }/* destructor */template <class T>position<T>::~position(void) {}/* write-read access to coordinates */template <class T> T &position<T>::operator[](const int p) {    return coord[p];}/* check violation of grid borders to stay "on the torus" */template <class T>const int position<T>::checkborder(const int p, const int lim) {    if (p >= lim) {	return p % lim;    }    if (p < 0) {	int temp = p%lim;	if (temp != 0) return lim + (p%lim);	else return 0;    }    return p;}/* set position to x = <di>, y = <dj> */	template <class T>void position<T>::set(T di, T dj) {    coord[0] = di;    coord[1] = dj;}/* add values in both dimensions to the coordinates and check borders */template <class T>void position<T>::add(T di, T dj, T imax, T jmax) {    coord[0] += di;     coord[1] += dj;    /* implement torus grid */    coord[0] = checkborder(int(coord[0]), (int)imax);    coord[1] = checkborder(int(coord[1]), (int)jmax);	}/* add values in both dimensions to the coordinates, without border check */template <class T>void position<T>::add(T di, T dj) {    coord[0] += di;     coord[1] += dj;	}/* add values in both dimensions to the coordinates, without boder check */template <class T>void position<T>::add(position<T> & p) {    coord[0] += p.coord[0];     coord[1] += p.coord[1];}/* divide both coordinates by <d> */template <class T>void position<T>::div(int d) {    coord[0] /= double(d);     coord[1] /= double(d);}/*  class grid functions: - read-write access - neighbourhood function (for ACCL picking-dropping criteria) - addition with automated border check (for ACCL movements) */class grid { public:    /* pointer to current parameter settings */    conf * par;    /* pointer to current data */    databin<USED_DATA_TYPE> * bin;    /* the actual grid: a two-d array of grid cells */    int ** cells;    /* variables used for additional index structure */    position<int> * index;  /* array of positions of free data items */    int items;              /* number of items in index */    int last;               /* current free position in index */     public:    /* Constructor */    grid(conf * c, databin<USED_DATA_TYPE> * b);    /* Destructor */    ~grid();    /* Intialisation: data elements are randomly scattered */    void init();    /* update x to lie within the interval [0, lim-1] */    const int checkborder(const int x, const int lim);        /* randomly generate positions on the grid that lie       within distance <radius> from current position <pos> */    void generate(position<int> & pos, const int radius, position<int> & temp);    void generate(position<double> & pos, const int radius, position<double> & temp);    /* write-read access to grid cells */    int &operator()(int i, int j);    /* randomly return another position stored within index */    const position<int> & next();     /* add data to grid and update index */    void add(position<int> & pos, const int data);    void add(position<double> & pos, const int data);    /* return grid position for data item with identifier <i> */    position<int> & getposition(int i);    /* remove data from grid and update index */    const void remove(position<int> & pos);    /* remove data from grid to initialize ant */    const int remove_init(position<int> * pos);    /* exchange two data items */    const void replace(position<int> & pos, int data, int replaced);    /* neighbourhood function */    const double f(const int data, position<int> & pos, const int radius, const int nsize, const double scalefactor, int clusterphase);    const double fold(const int data, position<int> & pos, const int radius, const int nsize, const double scalefactor);    /* local comparison (of two elements) */    const double dissimilarity(const int data1, const int data2);    /* search for nearby dropping site */    const position<int> searchdroppingsite(position<int> & pos, const int data);    const position<double> searchdroppingsite(position<double> & pos, const int data);    /* print grid data to file */    void print();    double square(double);    /* Euclidean distance */    double spatialdistance(position<double> *, position<double> *, int torus);    double spatialdistance(position<int> *, position<int> *, int torus);    };	double max(double i, double j);double min(double i, double j);int max(int i, int j);int min(int i, int j);double abs(double x);#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
同产精品九九九| 2017欧美狠狠色| 99re热视频这里只精品 | 国产精品毛片大码女人| 国产精品不卡一区二区三区| 亚洲成人黄色小说| 国产一区二区导航在线播放| 91小视频免费看| 26uuu另类欧美亚洲曰本| 国内成人精品2018免费看| 欧洲亚洲国产日韩| 26uuu精品一区二区三区四区在线| 久久精品国产精品亚洲精品 | 亚洲精品视频一区| 久久福利视频一区二区| 久久久久久一二三区| 午夜欧美电影在线观看| 在线不卡欧美精品一区二区三区| 国产亚洲一区二区三区四区| 午夜成人免费视频| 精品国产成人系列| 五月天一区二区| 久久久久久99久久久精品网站| 99精品视频一区二区三区| 亚洲午夜在线视频| 91视频观看免费| 日韩高清不卡一区| 色先锋aa成人| 综合在线观看色| 国产成人夜色高潮福利影视| 精品第一国产综合精品aⅴ| 成人黄页毛片网站| 欧美精品一区二区高清在线观看| 国产99久久久精品| 中文字幕不卡在线观看| 国产一区二区在线影院| 亚洲欧美日韩国产手机在线 | 国产精品久久久久久久久果冻传媒| 欧洲色大大久久| 国产69精品一区二区亚洲孕妇| 亚洲综合图片区| 欧美少妇xxx| 午夜精品123| 国产精品天干天干在观线| 91精品国产免费| 全国精品久久少妇| 欧美一区二区播放| bt欧美亚洲午夜电影天堂| 亚洲激情男女视频| 国产日韩av一区| 成人av网站在线| 国产乱人伦偷精品视频免下载| 久久久久久一级片| 日韩一区二区三区免费看| 麻豆精品新av中文字幕| 精品免费日韩av| jizz一区二区| 国产一区二区精品久久91| 日本亚洲视频在线| 亚洲午夜影视影院在线观看| 国产精品久久夜| 久久久久久电影| 久久久久久久性| 欧美sm极限捆绑bd| 91麻豆精品国产自产在线| 国产一区在线观看视频| 视频一区欧美日韩| 国产亚洲制服色| 久久综合色鬼综合色| 欧美第一区第二区| 成人app网站| 国产激情视频一区二区三区欧美 | 欧美挠脚心视频网站| 石原莉奈一区二区三区在线观看| 综合在线观看色| 18成人在线视频| 日韩三级视频在线看| 欧美女孩性生活视频| 欧美日韩亚洲国产综合| 国产一区久久久| 国产精品一级在线| 国模娜娜一区二区三区| 国产在线不卡一区| 国产福利一区二区| 懂色av噜噜一区二区三区av| 国产不卡视频一区二区三区| 国产**成人网毛片九色| 成人激情av网| 欧美日韩在线播放| 91精品国产一区二区三区香蕉 | 精品美女在线播放| 久久夜色精品一区| 国产日本一区二区| 成人免费小视频| 亚洲午夜激情网站| 免费一级片91| 国产成人欧美日韩在线电影| 成人动漫在线一区| 91福利国产成人精品照片| 国产美女娇喘av呻吟久久| 国产成人精品亚洲777人妖 | 91成人在线免费观看| 欧美日韩中文精品| 日韩一区国产二区欧美三区| 日韩精品一区二区三区四区视频 | 欧美理论电影在线| 精品久久一二三区| 一区二区中文字幕在线| 亚洲香蕉伊在人在线观| 久久99精品国产麻豆婷婷| 亚洲午夜精品网| 韩日欧美一区二区三区| 95精品视频在线| 欧美一二三区精品| 亚洲图片欧美激情| 男女视频一区二区| 成人av在线观| 日韩欧美在线观看一区二区三区| 亚洲国产岛国毛片在线| 亚洲成人在线免费| 高清视频一区二区| 欧美午夜精品理论片a级按摩| 日韩免费看的电影| 亚洲精选在线视频| 国产资源在线一区| 欧美午夜免费电影| 国产蜜臀97一区二区三区| 午夜视黄欧洲亚洲| 91论坛在线播放| 26uuu国产在线精品一区二区| 亚洲乱码日产精品bd| 国产自产v一区二区三区c| 欧美日韩中文另类| 亚洲免费观看高清完整版在线| 久久激情五月婷婷| 欧美视频在线观看一区| 国产精品免费视频一区| 久久国产精品露脸对白| 在线观看亚洲一区| 国产精品视频在线看| 麻豆精品国产传媒mv男同| 91色婷婷久久久久合中文| 久久久久久久久久看片| 奇米色一区二区三区四区| 91久久奴性调教| 国产精品高潮久久久久无| 激情六月婷婷久久| 欧美一区二区啪啪| 亚洲午夜一区二区| 色吧成人激情小说| 国产精品网站在线观看| 狠狠色丁香婷婷综合久久片| 欧美一区二区三区四区高清 | 中文字幕在线不卡一区| 国内精品久久久久影院薰衣草 | 国产精品亲子乱子伦xxxx裸| 久久疯狂做爰流白浆xx| 欧美一区二区三区婷婷月色 | 欧美成人精品二区三区99精品| 亚洲高清在线精品| 一本色道a无线码一区v| 日韩理论在线观看| a4yy欧美一区二区三区| 国产欧美日韩久久| 国产91精品一区二区麻豆亚洲| 欧美成人免费网站| 精品亚洲免费视频| 欧美变态tickle挠乳网站| 麻豆精品国产91久久久久久| 日韩小视频在线观看专区| 青青草国产成人99久久| 欧美一区二区三区在线观看视频| 美女视频网站黄色亚洲| 精品久久久久一区| 国产高清亚洲一区| 日韩精品专区在线影院观看| 久久精品理论片| 久久久精品影视| 成人18精品视频| 亚洲色图一区二区| 欧美日韩亚洲综合一区| 奇米888四色在线精品| 久久久99精品久久| 成人性生交大片免费| 欧美日韩久久一区二区| 天天做天天摸天天爽国产一区| 欧美精品乱码久久久久久| 蜜臀国产一区二区三区在线播放| 日韩视频一区二区在线观看| 久久精品国产精品亚洲红杏| 中文字幕不卡三区| 色av一区二区| 久久国产剧场电影| 国产精品嫩草99a| 欧美日韩一本到| 国产在线精品一区二区夜色 | 777久久久精品| 国产麻豆日韩欧美久久| 国产精品国产三级国产aⅴ无密码| 9i在线看片成人免费|