📄 datapoints.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_03) on Fri Jun 03 16:24:21 CDT 2005 --><TITLE>DataPoints</TITLE><META NAME="keywords" CONTENT="DataPoints class"><LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="DataPoints";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="Covariance.html" title="class in <Unnamed>"><B>PREV CLASS</B></A> <A HREF="DecisionRegion.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html?DataPoints.html" target="_top"><B>FRAMES</B></A> <A HREF="DataPoints.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2>Class DataPoints</H2><PRE>java.lang.Object <IMG SRC="./resources/inherit.gif" ALT="extended by "><B>DataPoints</B></PRE><HR><DL><DT><PRE>public class <B>DataPoints</B><DT>extends java.lang.Object</DL></PRE><P>class holds the input DataPoints classes that are to be classified as well as the classification algorithms needed to compute the decision regions<P><P><HR><P><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#addPoint(MyPoint)">addPoint</A></B>(<A HREF="MyPoint.html" title="class in <Unnamed>">MyPoint</A> p)</CODE><BR> add a point to the data set that is determined by the index (setNum)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#clearAllSets()">clearAllSets</A></B>()</CODE><BR> clear out all point form the data sets</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.awt.Point</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#convertMyPoint(MyPoint, int, int, DisplayScale)">convertMyPoint</A></B>(<A HREF="MyPoint.html" title="class in <Unnamed>">MyPoint</A> dpoint, int panelWidth, int panelHeight, <A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> Converts an instance of MyPoint to an instance of Point</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Vector<java.awt.Point></CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#convertMyPoints(java.util.Vector, int, int, DisplayScale)">convertMyPoints</A></B>(java.util.Vector<<A HREF="MyPoint.html" title="class in <Unnamed>">MyPoint</A>> dset, int panelWidth, int panelHeight, <A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> Converts a Vector of MyPoints to a Vector of points that correspond to Java coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="MyPoint.html" title="class in <Unnamed>">MyPoint</A></CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#convertPoint(java.awt.Point, int, int, DisplayScale)">convertPoint</A></B>(java.awt.Point jpoint, int panelWidth, int panelHeight, <A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> Converts an instance of Point to an instance of MyPoint containing the cartesian x-y values</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Vector<<A HREF="MyPoint.html" title="class in <Unnamed>">MyPoint</A>></CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#convertPoints(java.util.Vector, int, int, DisplayScale)">convertPoints</A></B>(java.util.Vector<java.awt.Point> jset, int panelWidth, int panelHeight, <A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> Converts a vector of Points to a vector of MyPoints containing the cartesian x-y values</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#drawGaussian(double, double, DisplayScale)">drawGaussian</A></B>(double meanx, double meany, <A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> Draws Gaussian distribution by calling setGaussian()</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#initialize()">initialize</A></B>()</CODE><BR> initializes dset1-dset4</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#isDataValid()">isDataValid</A></B>()</CODE><BR> method returns true if valid data is present else it returns false</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setColors(java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color)">setColors</A></B>(java.awt.Color color_dset1, java.awt.Color color_dset2, java.awt.Color color_dset3, java.awt.Color color_dset4)</CODE><BR> sets the gaussian values</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setDrawGaussValues(int, double, double, double, double)">setDrawGaussValues</A></B>(int points, double cov11, double cov12, double cov21, double cov22)</CODE><BR> sets the gaussian values</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setFourEllipses(DisplayScale)">setFourEllipses</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond to four ellipses to be displayed on the input canvas</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setFourGaussian(DisplayScale)">setFourGaussian</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond to four gaussians to be displayed on the input canvas method: setFourGaussian</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setGaussian(int, double, double, double, double, double, double, DisplayScale)">setGaussian</A></B>(int points, double meanx, double meany, double c11, double c12, double c21, double c22, <A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> creates a set of point that correspond to a gaussians distribution</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setOverGaussian(DisplayScale)">setOverGaussian</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond to two overlapped gaussians to be displayed on the input canvas</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setRotatedEllipses(DisplayScale)">setRotatedEllipses</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond to two rotated ellipses to be displayed on the input canvas</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setToroidal(DisplayScale)">setToroidal</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond a toroidal to be displayed on the input canvas</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setTwoEllipses(DisplayScale)">setTwoEllipses</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond to two ellipses to be displayed on the input canvas</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setTwoGaussian(DisplayScale)">setTwoGaussian</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond to two gaussians to be displayed on the input canvas</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setYinYang(DisplayScale)">setYinYang</A></B>(<A HREF="DisplayScale.html" title="class in <Unnamed>">DisplayScale</A> scale)</CODE><BR> create a set of point that correspond a yin and yang symbol to be displayed on the input canvas</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public boolean <B>initialize</B>()</PRE><DL><DD>initializes dset1-dset4<P><DD><DL><DT><B>Returns:</B><DD>true</DL></DD></DL><HR><A NAME="isDataValid()"><!-- --></A><H3>isDataValid</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -