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

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

?? vonneumanntopology.java

?? PSO智能計算java庫
?? JAVA
字號:
/* * VonNeumannTopology.java * * Created on January 18, 2003, 10:42 AM * *  * Copyright (C) 2003 - Edwin S. Peer * * 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  *  * * This class implements the Von Neumann neighbourhood topology, referece: *      1.  J. Kennedy and R. Mendes, "Population structure and particle swarm performance," *          in Proceedings of the IEEE Congress on Evolutionary Computation, *          (Honolulu, Hawaii USA), May 2002. *     */package net.sourceforge.cilib.PSO;import java.lang.*;import java.util.*;import net.sourceforge.cilib.Algorithm.*;/** * * @author  espeer */public class VonNeumannTopology implements Topology {        public VonNeumannTopology() {        width = 5;        height = 4;    }        public void initialise(Class particleClass) {        particles = new Particle[width][height];        for (int i = 0; i < width; ++i) {            for (int j = 0; j < height; ++j) {                try {                    particles[i][j] = (Particle) particleClass.newInstance();                }                catch (Exception e) {                    throw new InitialisationException("Could not instantiate particle");                }            }        }    }        public void setSize(int size) {        height = (int) Math.sqrt(size);        while((size % height) != 0) {            --height;        }        width = size / height;    }        public void setWidth(int width) {        this.width = width;    }        public void setHeight(int height) {        this.height = height;    }        public Iterator neighbourhood(Iterator iterator) {        MatrixIterator i = (MatrixIterator) iterator;        return new VonNeumannNeighbourhoodIterator(this, i);    }        public Iterator particles() {        return new VonNeumannTopologyIterator(this);    }        private Particle[][] particles;    private int width;    private int height;        private interface MatrixIterator extends Iterator {        public int getX();        public int getY();    }        private class VonNeumannTopologyIterator implements MatrixIterator {                public VonNeumannTopologyIterator(VonNeumannTopology topology) {            this.topology = topology;            x = -1;            y = 0;            lastX = topology.width - 1;            lastY = topology.height - 1;        }                public boolean hasNext() {            return (x != lastX || y != lastY);        }                public Object next() {            if (x == lastX && y == lastY) {                throw new NoSuchElementException();            }            ++x;            if (x == topology.width) {                x = 0;                ++y;            }            return topology.particles[x][y];        }                public void remove() {            throw new UnsupportedOperationException();        }                public int getX() {            return x;        }                public int getY() {            return y;        }                private int x;        private int y;        private int lastX;        private int lastY;        private VonNeumannTopology topology;    }        private class VonNeumannNeighbourhoodIterator implements MatrixIterator {                public VonNeumannNeighbourhoodIterator(VonNeumannTopology topology, MatrixIterator iterator) {            if (iterator.getX() == -1) {                throw new IllegalStateException();            }            this.topology = topology;            x = iterator.getX();            y = iterator.getY();            index = 0;        }                public boolean hasNext() {            return (index != 5);        }                public Object next() {            if (index == 5) {                throw new NoSuchElementException();            }            x = (x + deltaX[index] + topology.width) % topology.width;            y = (y + deltaY[index] + topology.height) % topology.height;            ++index;            return topology.particles[x][y];        }                public void remove() {            throw new UnsupportedOperationException();        }                public int getX() {            return x;        }                public int getY() {            return y;        }                private int x;        private int y;        private int index;        private VonNeumannTopology topology;        private int[] deltaX = {0, -1, 1,  1, -1};        private int[] deltaY = {0,  0, 1, -1, -1};    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美在线1卡| 午夜精品福利一区二区蜜股av| 国产欧美日韩不卡免费| 亚洲精品国产无套在线观| 玖玖九九国产精品| 欧美中文字幕一区二区三区| 精品国产一区二区亚洲人成毛片 | 精油按摩中文字幕久久| 粉嫩一区二区三区性色av| 欧美美女激情18p| 国产精品护士白丝一区av| 日产欧产美韩系列久久99| 99久久99久久免费精品蜜臀| 日韩一级二级三级精品视频| 亚洲综合偷拍欧美一区色| 波多野结衣亚洲| 久久久久久免费毛片精品| 日韩激情一区二区| 欧美日本在线播放| 亚洲成人精品影院| 欧美性淫爽ww久久久久无| 欧美国产激情一区二区三区蜜月| 美女诱惑一区二区| 91精品国产综合久久香蕉的特点| 亚洲最新在线观看| 91丨porny丨蝌蚪视频| 中文字幕国产精品一区二区| 精品中文av资源站在线观看| 欧美日韩国产系列| 视频一区二区国产| 在线电影欧美成精品| 亚洲v日本v欧美v久久精品| 欧美综合在线视频| 亚洲精品成人a在线观看| 91久久国产综合久久| 夜夜亚洲天天久久| 欧美日韩一区二区不卡| 亚洲成人黄色小说| 欧美一级夜夜爽| 日韩电影在线免费观看| 在线播放视频一区| 老司机精品视频线观看86 | 精品国精品国产尤物美女| 日韩一区精品视频| 欧美一区二区三区色| 青青国产91久久久久久| 日韩女优毛片在线| 国产精品一区免费视频| 久久你懂得1024| 丰满少妇在线播放bd日韩电影| 国产精品美女久久久久aⅴ| 97久久久精品综合88久久| 亚洲综合激情网| 5566中文字幕一区二区电影| 麻豆精品视频在线观看视频| 久久网站最新地址| 99国产精品国产精品毛片| 亚洲一区二区三区四区的| 欧美一区二区三区视频免费播放| 国产一区二区三区黄视频| 最新国产の精品合集bt伙计| 欧美在线免费观看亚洲| 麻豆91精品视频| 国产精品久久久久久户外露出 | 国产麻豆精品久久一二三| 国产精品丝袜在线| 欧美日韩情趣电影| 国产专区综合网| 亚洲免费观看高清完整版在线观看熊| 欧美日韩一区二区不卡| 国产精品一级黄| 一区二区免费在线| 久久亚洲精品国产精品紫薇| 91官网在线免费观看| 精品一区二区三区欧美| 国产精品久久久一区麻豆最新章节| 国产激情偷乱视频一区二区三区| 成人av影视在线观看| 亚洲乱码国产乱码精品精可以看| 337p亚洲精品色噜噜噜| 欧美浪妇xxxx高跟鞋交| 日韩激情视频在线观看| 中文字幕av在线一区二区三区| 欧美日韩一区不卡| 国产精品一区二区在线播放| 欧美精品一区二区三区在线| 日韩午夜电影在线观看| 91麻豆福利精品推荐| 亚洲资源中文字幕| av在线这里只有精品| 日产国产欧美视频一区精品| 一区在线播放视频| 精品国产伦一区二区三区观看方式 | 国产欧美日韩中文久久| 欧美一区二区视频在线观看2020| 不卡免费追剧大全电视剧网站| 欧美96一区二区免费视频| 亚洲激情在线激情| 国产精品伦理在线| 久久综合色天天久久综合图片| 欧美日韩一区二区三区高清| av一区二区三区在线| 国产伦精品一区二区三区免费迷| 日韩精品午夜视频| 午夜精品久久久久久不卡8050 | 欧美精品一区二区久久久| 欧美日韩国产一级片| 91精品1区2区| 99re亚洲国产精品| 成人午夜免费视频| 国产91精品一区二区| 国产精品主播直播| 国产精品资源在线看| 国产一区二区在线观看视频| 久久电影网电视剧免费观看| 免费久久99精品国产| 免费三级欧美电影| 美女脱光内衣内裤视频久久网站| 午夜免费久久看| 日本vs亚洲vs韩国一区三区 | 欧美群妇大交群的观看方式| 在线亚洲高清视频| 在线国产电影不卡| 欧美午夜精品久久久久久超碰| 色噜噜狠狠成人中文综合 | 成人app软件下载大全免费| 国产成a人亚洲精品| 成人综合日日夜夜| 99久久99久久综合| 欧美亚州韩日在线看免费版国语版| 一本到不卡免费一区二区| 一本大道av伊人久久综合| 91久久久免费一区二区| 制服视频三区第一页精品| 欧美成人激情免费网| 国产亚洲综合性久久久影院| 国产精品久久久久影视| 夜夜嗨av一区二区三区| 午夜精品一区二区三区免费视频 | 日韩午夜激情av| 久久久午夜精品理论片中文字幕| 欧美韩国日本一区| 亚洲综合成人在线视频| 麻豆国产精品视频| 成人av电影在线播放| 精品视频一区 二区 三区| 亚洲精品在线观看网站| 国产精品成人免费| 日韩av网站免费在线| 国产91丝袜在线播放0| 91豆麻精品91久久久久久| 91精品国产综合久久精品| 久久午夜色播影院免费高清| 最新不卡av在线| 蜜桃视频一区二区三区在线观看| 国产91丝袜在线播放九色| 欧美日韩视频在线观看一区二区三区 | 国产亚洲制服色| 亚洲综合在线第一页| 久久国产综合精品| 99久久精品免费精品国产| 日韩三级视频中文字幕| 中文字幕中文字幕在线一区 | 欧美大片顶级少妇| 中文字幕亚洲综合久久菠萝蜜| 视频在线观看一区二区三区| 国产精品羞羞答答xxdd| 欧美三级电影在线看| 国产欧美视频在线观看| 日本欧美在线看| 色88888久久久久久影院按摩| 精品国产91九色蝌蚪| 亚洲成人av一区二区| 成人免费观看av| 欧美大肚乱孕交hd孕妇| 亚洲午夜精品在线| 成人激情图片网| 久久一区二区三区国产精品| 日韩极品在线观看| 91官网在线免费观看| 国产精品高清亚洲| 国产福利一区二区| wwwwxxxxx欧美| 精品影视av免费| 欧美日韩国产大片| 亚洲综合色噜噜狠狠| 99久久精品国产一区二区三区| 久久丝袜美腿综合| 麻豆一区二区99久久久久| 欧美精品在线一区二区| 亚洲一区二区三区四区在线观看 | 亚洲欧美日韩国产一区二区三区| 国产ts人妖一区二区| 精品久久久影院| 另类的小说在线视频另类成人小视频在线 | 在线一区二区视频| 亚洲欧美日韩国产综合| 色哟哟日韩精品| 亚洲色图制服丝袜| 91视频在线观看|