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

📄 datapoints.html

📁 包含了模式识别中常用的一些分类器设计算法
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<PRE>public boolean <B>isDataValid</B>()</PRE><DL><DD>method returns true if valid data is present else it returns false<P><DD><DL><DT><B>Returns:</B><DD>true if data is valid</DL></DD></DL><HR><A NAME="clearAllSets()"><!-- --></A><H3>clearAllSets</H3><PRE>public void <B>clearAllSets</B>()</PRE><DL><DD>clear out all point form the data sets<P><DD><DL></DL></DD></DL><HR><A NAME="addPoint(MyPoint)"><!-- --></A><H3>addPoint</H3><PRE>public void <B>addPoint</B>(<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&nbsp;p)</PRE><DL><DD>add a point to the data set that is determined by the index (setNum)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - point to be added to the input data class</DL></DD></DL><HR><A NAME="drawGaussian(double, double, DisplayScale)"><!-- --></A><H3>drawGaussian</H3><PRE>public void <B>drawGaussian</B>(double&nbsp;meanx,                         double&nbsp;meany,                         <A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>Draws Gaussian distribution by calling setGaussian()<P><DD><DL><DT><B>Parameters:</B><DD><CODE>meanx</CODE> - double x value of mean point<DD><CODE>meany</CODE> - double y value of mean point<DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setGaussian(int, double, double, double, double, double, double, DisplayScale)"><!-- --></A><H3>setGaussian</H3><PRE>public void <B>setGaussian</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)</PRE><DL><DD>creates a set of point that correspond to a gaussians distribution<P><DD><DL><DT><B>Parameters:</B><DD><CODE>points</CODE> - max points in the distribution<DD><CODE>meanx</CODE> - mean (x) of the distribution<DD><CODE>meany</CODE> - mean (y) of the distribution<DD><CODE>c11</CODE> - covariance matrix element c11<DD><CODE>c12</CODE> - covariance matrix element c12<DD><CODE>c21</CODE> - covariance matrix element c21<DD><CODE>c22</CODE> - covariance matrix element c22<DD><CODE>scale</CODE> - DisplayScale variable</DL></DD></DL><HR><A NAME="setTwoGaussian(DisplayScale)"><!-- --></A><H3>setTwoGaussian</H3><PRE>public void <B>setTwoGaussian</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond to two gaussians to be displayed on the input canvas<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setFourGaussian(DisplayScale)"><!-- --></A><H3>setFourGaussian</H3><PRE>public void <B>setFourGaussian</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond to four gaussians to be displayed on the input canvas method: setFourGaussian<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setOverGaussian(DisplayScale)"><!-- --></A><H3>setOverGaussian</H3><PRE>public void <B>setOverGaussian</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond to two overlapped gaussians to be displayed on the input canvas<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setTwoEllipses(DisplayScale)"><!-- --></A><H3>setTwoEllipses</H3><PRE>public void <B>setTwoEllipses</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond to two ellipses to be displayed on the input canvas<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setRotatedEllipses(DisplayScale)"><!-- --></A><H3>setRotatedEllipses</H3><PRE>public void <B>setRotatedEllipses</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond to two rotated ellipses to be displayed on the input canvas<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setFourEllipses(DisplayScale)"><!-- --></A><H3>setFourEllipses</H3><PRE>public void <B>setFourEllipses</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond to four ellipses to be displayed on the input canvas<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setToroidal(DisplayScale)"><!-- --></A><H3>setToroidal</H3><PRE>public void <B>setToroidal</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond a toroidal to be displayed on the input canvas<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for displaying</DL></DD></DL><HR><A NAME="setYinYang(DisplayScale)"><!-- --></A><H3>setYinYang</H3><PRE>public void <B>setYinYang</B>(<A HREF="DisplayScale.html" title="class in &lt;Unnamed&gt;">DisplayScale</A>&nbsp;scale)</PRE><DL><DD>create a set of point that correspond a yin and yang symbol to be displayed on the input canvas<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - DisplayScale variable used for viewing</DL></DD></DL><HR><A NAME="convertPoint(java.awt.Point, int, int, DisplayScale)"><!-- --></A><H3>convertPoint</H3><PRE>public static <A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A> <B>convertPoint</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)</PRE><DL><DD>Converts an instance of Point to an instance of MyPoint containing the cartesian x-y values<P><DD><DL><DT><B>Parameters:</B><DD><CODE>jpoint</CODE> - Point variable used to set MyPoint<DD><CODE>panelWidth</CODE> - Width of viewing panel<DD><CODE>panelHeight</CODE> - Height of viewing panel<DD><CODE>scale</CODE> - DisplayScale variable used for viewing<DT><B>Returns:</B><DD>MyPoint convertion</DL></DD></DL><HR><A NAME="convertPoints(java.util.Vector, int, int, DisplayScale)"><!-- --></A><H3>convertPoints</H3><PRE>public static java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt; <B>convertPoints</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)</PRE><DL><DD>Converts a vector of Points to a vector of MyPoints containing the cartesian x-y values<P><DD><DL><DT><B>Parameters:</B><DD><CODE>jset</CODE> - Vector of points to be converted<DD><CODE>panelWidth</CODE> - Width of viewing panel<DD><CODE>panelHeight</CODE> - Height of viewing panel<DT><B>Returns:</B><DD>Vector of MyPoints converted</DL></DD></DL><HR><A NAME="convertMyPoint(MyPoint, int, int, DisplayScale)"><!-- --></A><H3>convertMyPoint</H3><PRE>public static java.awt.Point <B>convertMyPoint</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)</PRE><DL><DD>Converts an instance of MyPoint to an instance of Point<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dpoint</CODE> - MyPoint to be converted<DD><CODE>panelWidth</CODE> - Width of panel for viewing<DD><CODE>panelHeight</CODE> - Width of panel for viewing<DT><B>Returns:</B><DD>Point type converted from MyPoint type</DL></DD></DL><HR><A NAME="convertMyPoints(java.util.Vector, int, int, DisplayScale)"><!-- --></A><H3>convertMyPoints</H3><PRE>public static java.util.Vector&lt;java.awt.Point&gt; <B>convertMyPoints</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)</PRE><DL><DD>Converts a Vector of MyPoints to a Vector of points that correspond to Java coordinates.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dset</CODE> - Vector of MyPoints to be converted to Vector of Points<DD><CODE>panelWidth</CODE> - Width of panel for viewing<DD><CODE>panelHeight</CODE> - Height of panel for viewing<DT><B>Returns:</B><DD>Vector of Points converted from MyPoints</DL></DD></DL><HR><A NAME="setDrawGaussValues(int, double, double, double, double)"><!-- --></A><H3>setDrawGaussValues</H3><PRE>public void <B>setDrawGaussValues</B>(int&nbsp;points,                               double&nbsp;cov11,                               double&nbsp;cov12,                               double&nbsp;cov21,                               double&nbsp;cov22)</PRE><DL><DD>sets the gaussian values<P><DD><DL><DT><B>Parameters:</B><DD><CODE>points</CODE> - number of points<DD><CODE>cov11</CODE> - double value of covariance11<DD><CODE>cov12</CODE> - double value of covariance12<DD><CODE>cov21</CODE> - double value of covariance21<DD><CODE>cov22</CODE> - double value of covariance22</DL></DD></DL><HR><A NAME="setColors(java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color)"><!-- --></A><H3>setColors</H3><PRE>public void <B>setColors</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)</PRE><DL><DD>sets the gaussian values<P><DD><DL><DT><B>Parameters:</B><DD><CODE>color_dset1</CODE> - color for data set 1<DD><CODE>color_dset2</CODE> - color for data set 2<DD><CODE>color_dset3</CODE> - color for data set 3<DD><CODE>color_dset4</CODE> - color for data set 4</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_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_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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