📄 displayscale.java,v
字号:
head 1.3;access;symbols;locks; strict;comment @# @;1.3date 2005.05.23.22.22.20; author rirwin; state Exp;branches;next 1.2;1.2date 2005.03.11.04.12.41; 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@javadoc errors fixed.,@text@/** * file: DisplayScale.java * * last edited: Ryan Irwin * *//** * * class holds the input DataPoints classes that are to be classified as well * as the classification algorithms needed to compute the decision regions * */class DisplayScale { // ********************************************************************* // // declare global variables and components // // ********************************************************************* // declare class members // public double xmax = 0.0; public double xmin = 0.0; public double ymax = 0.0; public double ymin = 0.0; // ********************************************************************* // // declare class constructors // // ********************************************************************* /** * constructor initializes the x and y co-odinates * */ DisplayScale () {} /** * DisplayScale constructor with parameters * * @@param xmax value of maximum on x-axis * @@param xmin value of minimum on x-axis * @@param ymax value of maximum on y-axis * @@param ymin value of minimum on y-axis * */ DisplayScale (double xmax, double xmin, double ymax, double ymin) { this.xmax = MathUtil.SetDecimal(xmax, 2); this.xmin = MathUtil.SetDecimal(xmin, 2); this.ymax = MathUtil.SetDecimal(ymax, 2); this.ymin = MathUtil.SetDecimal(ymin, 2); } /** * Converts object to a String * * @@return string of the display scale axis * */ public String toString() { return "[" + xmin + "<= x <=" + xmax + " " + ymin + "<= y <= " + ymax + "]"; }}@1.2log@comments changed to Java Documentation Style.@text@d2 10a11 1 * class: DisplayScalea39 5 * method: DisplayScale * * @@param none * @@return none *d47 1a47 1 * method: DisplayScalea53 1 * @@return all the above values adjusted to two decimal placesd64 1a64 1 * method: toStringa65 2 * @@param none * @1.1log@Initial revision@text@d1 9a9 7// class: DataPoints//// class holds the input DataPoints classes that are to be classified as well// as the classification algorithms needed to compute the decision regions//class DisplayScale {d16 1a16 1d23 1a23 1d29 10a38 8 // method: MyPoint // // arguments: none // returns : none // // constructor initializes the x and y co-odinates //d41 12a52 2 DisplayScale (double xmax, double xmin, double ymax, double ymin)d59 9a67 1d72 1a72 1 + ymin + "<= y <= " + ymax + "]";a75 2// // end of file@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -