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

📄 datapoints.html

📁 包含了模式识别中常用的一些分类器设计算法
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="Covariance.html" title="class in &lt;Unnamed&gt;"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="DecisionRegion.html" title="class in &lt;Unnamed&gt;"><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>  &nbsp;&nbsp;<A HREF="DataPoints.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#addPoint(MyPoint)">addPoint</A></B>(<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&nbsp;p)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#clearAllSets()">clearAllSets</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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 &lt;Unnamed&gt;">MyPoint</A>&nbsp;dpoint,               int&nbsp;panelWidth,               int&nbsp;panelHeight,               <A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;java.util.Vector&lt;java.awt.Point&gt;</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#convertMyPoints(java.util.Vector, int, int, DisplayScale)">convertMyPoints</A></B>(java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;&nbsp;dset,                int&nbsp;panelWidth,                int&nbsp;panelHeight,                <A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">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&nbsp;jpoint,             int&nbsp;panelWidth,             int&nbsp;panelHeight,             <A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#convertPoints(java.util.Vector, int, int, DisplayScale)">convertPoints</A></B>(java.util.Vector&lt;java.awt.Point&gt;&nbsp;jset,              int&nbsp;panelWidth,              int&nbsp;panelHeight,              <A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#drawGaussian(double, double, DisplayScale)">drawGaussian</A></B>(double&nbsp;meanx,             double&nbsp;meany,             <A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draws Gaussian distribution by calling setGaussian()</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#initialize()">initialize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initializes dset1-dset4</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#isDataValid()">isDataValid</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;color_dset1,          java.awt.Color&nbsp;color_dset2,          java.awt.Color&nbsp;color_dset3,          java.awt.Color&nbsp;color_dset4)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the gaussian values</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setDrawGaussValues(int, double, double, double, double)">setDrawGaussValues</A></B>(int&nbsp;points,                   double&nbsp;cov11,                   double&nbsp;cov12,                   double&nbsp;cov21,                   double&nbsp;cov22)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the gaussian values</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setFourEllipses(DisplayScale)">setFourEllipses</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setFourGaussian(DisplayScale)">setFourGaussian</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setGaussian(int, double, double, double, double, double, double, DisplayScale)">setGaussian</A></B>(int&nbsp;points,            double&nbsp;meanx,            double&nbsp;meany,            double&nbsp;c11,            double&nbsp;c12,            double&nbsp;c21,            double&nbsp;c22,            <A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setOverGaussian(DisplayScale)">setOverGaussian</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setRotatedEllipses(DisplayScale)">setRotatedEllipses</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setToroidal(DisplayScale)">setToroidal</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setTwoEllipses(DisplayScale)">setTwoEllipses</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setTwoGaussian(DisplayScale)">setTwoGaussian</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="DataPoints.html#setYinYang(DisplayScale)">setYinYang</A></B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;create a set of point that correspond a yin and yang symbol to be displayed on the input canvas</TD></TR></TABLE>&nbsp;<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>&nbsp;<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 + -