⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mypoint.java,v

📁 包含了模式识别中常用的一些分类器设计算法
💻 JAVA,V
字号:
head	1.3;access;symbols;locks	rirwin:1.3; strict;comment	@# @;1.3date	2005.05.24.15.42.23;	author rirwin;	state Exp;branches;next	1.2;1.2date	2005.03.11.22.12.14;	author patil;	state Exp;branches;next	1.1;1.1date	2004.12.28.00.04.32;	author patil;	state Exp;branches;next	;desc@@1.3log@fixed javadoc comments.@text@/** * file: MyPoint.java *  * last editted: Ryan Irwin */// import necessary java libraries////These imports are not needed - Phil T. 6-23-03//import java.awt.*;//import javax.swing.*;//import java.util.*;/** * implement the equivalent of the AWT class points except this can use * floation point numbers fromt he time domain * */class MyPoint {    // *********************************************************************    //    // declare global variables and components    //    // *********************************************************************    // declare class members    //    public double x = 0.0;    public double y = 0.0;        // *********************************************************************    //    // declare class constructors    //    // *********************************************************************       /**     * constructor initializes the x and y co-odinates to 0.0     *     */    MyPoint()     {	x = 0.0;	y = 0.0;    }    /**     * constructor initializes the x and y co-odinates     *     * @@param    xval double x co-odinate value     * @@param    yval double y co-odinate value     *     */    MyPoint(double xval, double yval)     {	x = xval;	y = yval;    }    /**     * constructor initializes the x and y co-odinates     *     * @@param point MyPoint value to be initialized to object     */    MyPoint(MyPoint point)     {	x = point.x;	y = point.y;    }    /**     * Converts point to string values     *     * @@return   string conversion of x and y co-ordinates     *     */    public String toString()     { 	return "[" + x + "," + y + "]";    }}@1.2log@comments changed to Java Documentation Style@text@d3 2a4 1 *a15 2 * class: MyPoint *d41 1a41 6     * method: MyPoint     *     * @@param   none     * @@return  none     *     * constructor initializes the x and y co-odinatesd51 1a51 4     * method: MyPoint     *     * @@param    double xval: x co-odinates     * @@param    double yval: y co-odinatesd53 2a54 3     * @@return   none     *     * constructor initializes the x and y co-odinatesa63 8     * method: MyPoint     *     * @@param      *    double xval: x co-odinates     *    double yval: y co-odinates     *     * @@return   none     *d66 1d75 1a75 3     * method: toString     *     * @@param    none@1.1log@Initial revision@text@d1 4a4 2// file: MyPoint.java//d14 9a22 6// class: MyPoint//// implement the equivalent of the AWT class points except this can use// floation point numbers fromt he time domain//class MyPoint {d41 11a51 8    // method: MyPoint    //    // arguments: none    // returns  : none    //    // constructor initializes the x and y co-odinates    //    MyPoint() {d56 13a68 11    // method: MyPoint    //    // arguments:    //    double xval: x co-odinates    //    double yval: y co-odinates    //    // returns  : none    //    // constructor initializes the x and y co-odinates    //    MyPoint(double xval, double yval) {d73 14a86 11    // method: MyPoint    //    // arguments:    //    double xval: x co-odinates    //    double yval: y co-odinates    //    // returns  : none    //    // constructor initializes the x and y co-odinates    //    MyPoint(MyPoint point) {d91 10a100 2    public String toString() { 	a103 3// // end of file@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -