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

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

?? datapoints.java,v

?? 完整的模式識別庫
?? JAVA,V
?? 第 1 頁 / 共 4 頁
字號:
head	1.4;access;symbols;locks; strict;comment	@# @;1.4date	2005.06.10.18.34.17;	author rirwin;	state Exp;branches;next	1.3;1.3date	2005.05.23.21.41.18;	author rirwin;	state Exp;branches;next	1.2;1.2date	2005.03.09.23.01.48;	author patil;	state Exp;branches;next	1.1;1.1date	2004.12.28.00.04.32;	author patil;	state Exp;branches;next	;desc@@1.4log@Establishing RCS version.@text@/* file: DataPoints.java * *  last edited: Ryan Irwin * */// import necessary java libraries//import java.awt.*;import java.util.*;import javax.swing.*;//These imports are not needed - Phil T. 6-23-03//import javax.swing.*;//import java.awt.event.*;//import java.applet.Applet;/** * class holds the input DataPoints classes that are to be classified as well * as the classification algorithms needed to compute the decision regions * */public class DataPoints{        // *********************************************************************    //    // declare global variables and components    //    // *********************************************************************        static final int DTYPE_USER_SELECTED = 0;           // declare vectors needed to store the set points    //    int set_index_d = 1;    int type_d = DTYPE_USER_SELECTED;    int selectFlag = 0;    int selStartX = 0;    int selStartY = 0;    int selEndX = 0;    int selEndY = 0;    // the set with double value    //    Vector<MyPoint> dset1;    Vector<MyPoint> dset2;    Vector<MyPoint> dset3;    Vector<MyPoint> dset4;    // colors for each set    //    Color color_dset1 = Color.red;      Color color_dset2 = Color.green;    Color color_dset3 = Color.blue;    Color color_dset4 = Color.orange;    // gaussian setup    //      int points = 25;    double cov11 = 0.05;    double cov12 = 0;    double cov21 = 0;    double cov22 = 0.05;    // Scale values    //    // double xmin = -10.0;    // double xmax = 10.0;    // double ymin = -10.0;    // double ymax = 10.0;       /**     * initializes the samples to be plotted in the signal panel by calling     * initialize()     *     */    DataPoints()    {		// initialize the data set 	//	initialize();	    }        // *********************************************************************    //    // declare class methods    //    // *********************************************************************        /**     * initializes dset1-dset4     *     * @@return   true     */    public boolean initialize()    {		// initialize the data set 	//	dset1 = new Vector<MyPoint>(40, 20);	dset2 = new Vector<MyPoint>(40, 20);	dset3 = new Vector<MyPoint>(40, 20);	dset4 = new Vector<MyPoint>(40, 20);		return true;    }        /**     * method returns true if valid data is present else it returns false     *     * @@return     true if data is valid     */    public boolean isDataValid()    {	// check if valid data is present in the first data set	//	if (dset1.size() > 0)	{	    return true;	}		// check if valid data is present in the second data set	//	if (dset2.size() > 0)	{	    return true;	}	// check if valid data is present in the third data set	//	if (dset3.size() > 0)	{	    return true;	}		// check if valid data is present in the fourth data set	//	if (dset4.size() > 0)	{	    return true;	}		// indicate that no valid data is present	//	return false;    }        /**     * clear out all point form the data sets     *     */    public void clearAllSets()    {		if (dset1.size() > 0)	{	    dset1.removeAllElements();	}	if (dset2.size() > 0)	{	    dset2.removeAllElements();	}	if (dset3.size() > 0)	{	    dset3.removeAllElements();	}	if (dset4.size() > 0)	{	    dset4.removeAllElements();	}    }        /**     * add a point to the data set that is determined by the index (setNum)     *     * @@param  p  point to be added to the input data class     *     */    public void addPoint(MyPoint p)    {			selectFlag = 0;	switch (set_index_d)	{	    	    case 1 :    		dset1.addElement(p);		break;			    case 2 :		dset2.addElement(p);		break;	    case 3 :		dset3.addElement(p);		break;	    	    case 4 :		dset4.addElement(p);		break;	}    }        /**      * Draws Gaussian distribution by calling setGaussian()     *     * @@param  meanx double x value of mean point     * @@param  meany double y value of mean point     * @@param  scale DisplayScale variable used for displaying     */    public void drawGaussian(double meanx, double meany, DisplayScale scale )    {	setGaussian(points, meanx, meany, cov11, cov12, cov21, cov22, scale);    }        /**     * creates a set of point that correspond to a gaussians distribution     *     * @@param    points max points in the distribution     * @@param    meanx mean (x) of the distribution     * @@param    meany mean (y) of the distribution     * @@param    c11 covariance matrix element c11     * @@param    c12 covariance matrix element c12     * @@param    c21 covariance matrix element c21     * @@param    c22 covariance matrix element c22     * @@param    scale DisplayScale variable     *     *     */    public void setGaussian(			    int points,			    double meanx,			    double meany,			    double c11,			    double c12,			    double c21,			    double c22,			    DisplayScale scale)    {	// declare local variables	//	double xmax, xmin, ymax, ymin;  	double[] xval = null;	double[] yval = null;	BiNormal bn = new BiNormal();	// initialize variables	//	xmax = scale.xmax;	xmin = scale.xmin;	ymax = scale.ymax;	ymin = scale.ymin;	xval = new double[points];	yval = new double[points];	// determine the ratio of pixels per seconds	//	//double xpixsec = input_width_a / (xmax - xmin);	//double ypixsec = input_height_a / (ymax - ymin);	// generate the binormal gaussian random deviates	//	bn.gaussian(points, meanx, meany, xval, yval, c11, c12, c21, c22);	// format the point to be plotted on the screen	//	//Vector dist = new Vector(points);	Vector<MyPoint> samp = new Vector<MyPoint>(points);		for (int i = 0; i < points; i++)	{    	    if (set_index_d == 1)	    {		dset1.addElement(new MyPoint(xval[i], yval[i]));	    } 	    else if (set_index_d == 2)	    {		dset2.addElement(new MyPoint(xval[i], yval[i]));	    } 	    else if (set_index_d == 3)	    {		dset3.addElement(new MyPoint(xval[i], yval[i]));	    } 	    else	    {		dset4.addElement(new MyPoint(xval[i], yval[i]));	    }	    	}		// for (int i = 0; i < points; i++)	//{	// int xpixel = (int) ((input_width_a / 2) + (xpixsec * xval[i]));	// int ypixel = (int) ((input_width_a / 2) - (ypixsec * yval[i]));	// dist.addElement(new Point(xpixel, ypixel));	// samp.addElement(new MyPoint(xval[i], yval[i]));	//}		// clone the distribution to the appropriate data set	    }    /**     * create a set of point that correspond to two gaussians to     * be displayed on the input canvas     *     * @@param scale DisplayScale variable used for displaying     */    public void setTwoGaussian(DisplayScale scale)    {	// declare local variables	//	double xmax, xmin, ymax, ymin;  	int maxsize = 0;	double[] xval = null;	double[] yval = null;	BiNormal bn = new BiNormal();	// initialize variables	//	xmax = scale.xmax;	xmin = scale.xmin;	ymax = scale.ymax;	ymin = scale.ymin;	maxsize = 200    ;	xval = new double[maxsize];	yval = new double[maxsize];	// generate the binormal gaussian random deviates	//	bn.gaussian(		    maxsize,		    xmin + (xmax - xmin) / 4.0,		    ymax - (ymax - ymin) / 4.0,		    xval,		    yval,		    ((0.1 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		    0.0,		    0.0,		    ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));	// format the point to be plotted on the screen	//	Vector<MyPoint> first = new Vector<MyPoint>(maxsize);	for (int i = 0; i < maxsize; i++)	{	    first.addElement(new MyPoint(xval[i], yval[i]));	}	// generate the binormal gaussian random deviates	//	bn.gaussian(		    maxsize,		    xmax - (xmax - xmin) / 4,		    ymin + (ymax - ymin) / 4,		    xval,		    yval,		    ((0.1 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		    0.0,		    0.0,		    ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));		// format the point to be plotted on the screen	//	Vector<MyPoint> second = new Vector<MyPoint>(maxsize);	for (int i = 0; i < maxsize; i++)	{	    second.addElement(new MyPoint(xval[i], yval[i]));	}	dset1 = first;	dset2 = second;    }    /**     * create a set of point that correspond to four gaussians to     * be displayed on the input canvas     * method: setFourGaussian     *     * @@param scale DisplayScale variable used for displaying     *     */  public void setFourGaussian(DisplayScale scale)  {      // local variables      //      double xmax, xmin, ymax, ymin;        int maxsize = 0;      double[] xval = null;      double[] yval = null;      BiNormal bn = new BiNormal();      // initialize variables      //      xmax = scale.xmax;      xmin = scale.xmin;      ymax = scale.ymax;      ymin = scale.ymin;      maxsize = 200;      xval = new double[maxsize];      yval = new double[maxsize];      // generate the binormal gaussian random deviates      //      bn.gaussian(		  maxsize,		  xmax - (xmax - xmin) / 4.0,		  ymax - (ymax - ymin) / 4.0,		  xval,		  yval,		  ((0.1 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		  0.0,		  0.0,		  ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));      // format the point to be plotted on the screen      //      Vector<MyPoint> first = new Vector<MyPoint>(maxsize);      for (int i = 0; i < maxsize; i++)      {	  first.addElement(new MyPoint(xval[i], yval[i]));      }      // generate the binormal gaussian random deviates      //      bn.gaussian(		  maxsize,		  xmin + (xmax - xmin) / 4.0,		  ymax - (ymax - ymin) / 4.0,		  xval,		  yval,		  ((0.1 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		  0.0,		  0.0,		  ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));            // format the point to be plotted on the screen      //      Vector<MyPoint> second = new Vector<MyPoint>(maxsize);      for (int i = 0; i < maxsize; i++)      {	  second.addElement(new MyPoint(xval[i], yval[i]));      }            // generate the binormal gaussian random deviates      //      bn.gaussian(		  maxsize,		  xmin + (xmax - xmin) / 4.0,		  ymin + (ymax - ymin) / 4.0,		  xval,		  yval,		  ((0.1 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		  0.0,		  0.0,		  ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));      // format the point to be plotted on the screen      //      Vector<MyPoint> third = new Vector<MyPoint>(maxsize);      for (int i = 0; i < maxsize; i++)      {	  third.addElement(new MyPoint(xval[i], yval[i]));      }      // generate the binormal gaussian random deviates      //      bn.gaussian(		  maxsize,		  xmax - (xmax - xmin) / 4.0,		  ymin + (ymax - ymin) / 4.0,		  xval,		  yval,		  ((0.1 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		  0.0,		  0.0,		  ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));      // format the point to be plotted on the screen      //      Vector<MyPoint> forth = new Vector<MyPoint>(maxsize);      for (int i = 0; i < maxsize; i++)      {	  forth.addElement(new MyPoint(xval[i], yval[i]));      }            dset1 = first;      dset2 = second;      dset3 = third;      dset4 = forth;  }        /**     * create a set of point that correspond to two overlapped gaussians to     * be displayed on the input canvas     *     * @@param scale DisplayScale variable used for displaying     *     */    public void setOverGaussian(DisplayScale scale)    {	// local variables	//	double xmax, xmin, ymax, ymin;  	int maxsize = 0;	double[] xval = null;	double[] yval = null;	BiNormal bn = new BiNormal();	// initialize variables	//	xmax = scale.xmax;	xmin = scale.xmin;	ymax = scale.ymax;	ymin = scale.ymin;	maxsize = 200;	xval = new double[maxsize];	yval = new double[maxsize];	// generate the binormal gaussian random deviates	//	bn.gaussian(		    maxsize,		    ((xmax - xmin) / 1.75 + xmin),		    ((ymax - ymin) / 2 + ymin),		    xval,		    yval,		    ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4),		    0.0,		    0.0,		    ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));	// format the point to be plotted on the screen	//	Vector<MyPoint> first = new Vector<MyPoint>(maxsize);	for (int i = 0; i < maxsize; i++)	{	    first.addElement(new MyPoint(xval[i], yval[i]));	}	// generate the binormal gaussian random deviates	//	bn.gaussian(		    maxsize,		    (xmax - (xmax - xmin) / 1.75),		    ((ymax - ymin) / 2 + ymin),		    xval,		    yval,		    ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4),		    0.0,		    0.0,		    ((0.1 * (ymax - ymin)) / 4) * (((ymax - ymin)) / 4));	// format the point to be plotted on the screen	//	Vector<MyPoint> second = new Vector<MyPoint>(maxsize);	for (int i = 0; i < maxsize; i++)	{	    second.addElement(new MyPoint(xval[i], yval[i]));	}		dset1 = first;	dset2 = second;    }        /**     * create a set of point that correspond to two ellipses to     * be displayed on the input canvas     *     * @@param   scale DisplayScale variable used for displaying     */    public void setTwoEllipses(DisplayScale scale)    {		// local variables	//	double xmax, xmin, ymax, ymin;  	int maxsize = 0;	double[] xval = null;	double[] yval = null;	BiNormal bn = new BiNormal();	// initialize variables	//	xmax = scale.xmax;	xmin = scale.xmin;	ymax = scale.ymax;	ymin = scale.ymin;	maxsize = 200;	xval = new double[maxsize];	yval = new double[maxsize];	// generate the binormal gaussian random deviates	//	bn.gaussian(		    maxsize,		    xmin + (xmax - xmin) / 4.0,		    ymax - (ymax - ymin) / 4.0,		    xval,		    yval,		    ((0.133 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		    0.0,		    0.0,		    ((0.017 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4));	// format the point to be plotted on the screen	//	Vector<MyPoint> first = new Vector<MyPoint>(maxsize);	for (int i = 0; i < maxsize; i++)	{	    first.addElement(new MyPoint(xval[i], yval[i]));	}	// generate the binormal gaussian random deviates	//	bn.gaussian(		    maxsize,		    xmax - (xmax - xmin) / 4.0,		    ymin + (ymax - ymin) / 4.0,		    xval,		    yval,		    ((0.133 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4),		    0.0,		    0.0,		    ((0.017 * (xmax - xmin)) / 4) * (((xmax - xmin)) / 4));	// format the point to be plotted on the screen	//	Vector<MyPoint> second = new Vector<MyPoint>(maxsize);	for (int i = 0; i < maxsize; i++)	{	    second.addElement(new MyPoint(xval[i], yval[i]));	}	dset1 = first;	dset2 = second;    }    /**     * create a set of point that correspond to two rotated ellipses to     * be displayed on the input canvas     *     * @@param   scale DisplayScale variable used for displaying     */    public void setRotatedEllipses(DisplayScale scale)  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩免费在线视频| 蓝色福利精品导航| 丝袜美腿亚洲色图| 麻豆91在线观看| 成人免费视频视频在线观看免费| 99v久久综合狠狠综合久久| 在线一区二区三区做爰视频网站| 欧美日韩国产区一| 国产亚洲欧美色| 亚洲国产综合色| 国产精品主播直播| 欧美三级韩国三级日本一级| 国产亚洲成av人在线观看导航| 亚洲精品日韩专区silk| 久草在线在线精品观看| 色素色在线综合| 精品奇米国产一区二区三区| 亚洲精品午夜久久久| 韩国中文字幕2020精品| 在线视频综合导航| 国产亚洲成年网址在线观看| 午夜私人影院久久久久| 成人精品国产免费网站| 91精品国产综合久久蜜臀| 亚洲欧洲日韩av| 狠狠色狠狠色综合系列| 欧美人牲a欧美精品| 中文字幕一区日韩精品欧美| 九色综合国产一区二区三区| 色琪琪一区二区三区亚洲区| 久久精品一区二区三区四区| 午夜久久久久久久久| jvid福利写真一区二区三区| 日韩精品一区二区三区在线| 亚洲一区二区三区爽爽爽爽爽 | 欧美中文字幕一区| 久久精品免视看| 久久99精品久久久久婷婷| 欧美三级日韩三级| 亚洲人成伊人成综合网小说| 国v精品久久久网| 精品电影一区二区三区| 天天色图综合网| 欧美系列日韩一区| 亚洲欧美色一区| av在线播放一区二区三区| 久久欧美中文字幕| 奇米色777欧美一区二区| 欧美日韩亚洲不卡| 亚洲永久免费视频| 一本久久精品一区二区| 国产精品国产成人国产三级 | 久久久99精品免费观看不卡| 麻豆一区二区在线| 欧美日韩国产天堂| 亚洲一区二区成人在线观看| 日本黄色一区二区| 亚洲视频综合在线| 91亚洲精品一区二区乱码| 日本一区二区不卡视频| 国产精品香蕉一区二区三区| 久久久www成人免费毛片麻豆| 久久99精品一区二区三区三区| 日韩欧美亚洲国产精品字幕久久久| 五月天精品一区二区三区| 欧美视频在线一区二区三区| 一区二区三区中文字幕| 色成年激情久久综合| 亚洲美女精品一区| 91久久精品午夜一区二区| 一区二区理论电影在线观看| 在线中文字幕不卡| 亚洲国产精品一区二区久久| 欧美美女bb生活片| 日本不卡不码高清免费观看| 日韩视频一区二区三区| 久久精品国产亚洲5555| 久久久久99精品国产片| 国产suv精品一区二区6| 中文字幕一区二区三区乱码在线 | 亚洲色图欧洲色图| 在线观看免费一区| 日韩在线一二三区| 精品国产乱码久久久久久夜甘婷婷| 免费成人美女在线观看| 久久久久久9999| av午夜一区麻豆| 亚洲成在线观看| 欧美大片国产精品| 国产成人在线色| 亚洲三级电影网站| 欧美日韩视频专区在线播放| 日韩成人精品在线观看| 欧美精品一区二区三区一线天视频 | 国产成人在线观看免费网站| 欧美激情在线观看视频免费| 成人网男人的天堂| 亚洲国产一二三| 日韩久久精品一区| 成人午夜av电影| 亚洲在线观看免费| 91精品免费观看| 国产成人自拍高清视频在线免费播放| 成人免费在线观看入口| 69久久99精品久久久久婷婷| 国产精品亚洲第一| 亚洲最色的网站| 日韩精品一区二区三区四区视频| 成人久久久精品乱码一区二区三区| 一区二区三区影院| 日韩精品一区二| av不卡免费电影| 日韩av电影免费观看高清完整版| 久久天堂av综合合色蜜桃网 | 亚洲一区二区三区四区在线| 日韩欧美资源站| 99天天综合性| 老司机精品视频线观看86| 国产精品久久综合| 欧美一级片免费看| av在线不卡电影| 另类专区欧美蜜桃臀第一页| 国产精品久久久久久户外露出| 欧美日韩精品高清| 国产成人精品免费| 丝袜亚洲精品中文字幕一区| 国产精品免费网站在线观看| 欧美精品一卡二卡| youjizz久久| 久久99国产精品免费| 亚洲一区二区三区在线播放| 久久久综合九色合综国产精品| 日本乱人伦一区| 风间由美一区二区三区在线观看 | 日韩一区二区三区在线观看| jlzzjlzz国产精品久久| 久久99久久精品| 亚洲成人免费观看| 中文成人综合网| 久久综合九色欧美综合狠狠| 精品视频一区三区九区| 本田岬高潮一区二区三区| 极品瑜伽女神91| 亚洲成a人v欧美综合天堂| 中文字幕在线观看不卡| 久久综合狠狠综合| 这里只有精品99re| 欧美在线综合视频| 99这里只有精品| 国产精品一区2区| 秋霞午夜鲁丝一区二区老狼| 一区二区三区影院| 中文字幕一区二| 国产欧美日产一区| www国产亚洲精品久久麻豆| 6080午夜不卡| 欧美精品电影在线播放| 91久久精品网| 色一情一乱一乱一91av| 成人一级片网址| 国产ts人妖一区二区| 国产精品一区久久久久| 看国产成人h片视频| 日韩国产欧美在线视频| 亚洲成a人片在线不卡一二三区| 亚洲乱码国产乱码精品精小说| 国产欧美日韩视频在线观看| 久久久亚洲精品一区二区三区| 欧美电视剧免费观看| 日韩美女主播在线视频一区二区三区| 欧美日韩国产影片| 在线播放中文字幕一区| 欧美老女人在线| 欧美日本韩国一区二区三区视频| 在线观看日产精品| 欧美日韩综合一区| 欧美午夜影院一区| 欧美日韩一区二区在线观看| 欧美吻胸吃奶大尺度电影| 在线观看av一区二区| 欧洲国产伦久久久久久久| 在线欧美日韩精品| 欧美色网一区二区| 欧美精品777| 欧美一级高清片在线观看| 日韩女优毛片在线| 亚洲精品一区二区精华| 国产三级精品三级在线专区| 久久久久久久久一| 中文子幕无线码一区tr | 欧美午夜精品久久久| 欧美伊人久久大香线蕉综合69| 欧洲av在线精品| 欧美一区二区日韩| 欧美精品一区二区高清在线观看 | av不卡一区二区三区| 色婷婷久久99综合精品jk白丝| 在线观看网站黄不卡| 欧美高清视频在线高清观看mv色露露十八| 欧美一区二区三区免费在线看|