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

📄 mathutil.html

📁 包含了模式识别中常用的一些分类器设计算法
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<PRE>public static double <B>linearKernel</B>(java.util.Vector&nbsp;point1,                                  java.util.Vector&nbsp;point2)</PRE><DL><DD>this method evaluates the linear Kernel on the input vectors K(x,y) = (x . y)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>point1</CODE> - First vector of points<DD><CODE>point2</CODE> - Second vector of points<DT><B>Returns:</B><DD>double value of Kernel evaluation</DL></DD></DL><HR><A NAME="rbfKernel(java.util.Vector, java.util.Vector)"><!-- --></A><H3>rbfKernel</H3><PRE>public static double <B>rbfKernel</B>(java.util.Vector&nbsp;point1,                               java.util.Vector&nbsp;point2)</PRE><DL><DD>this method evaluates the redial basis function Kernel on the input vectors with standard deviation sigma K(x,y) = exp(-gamma * ((a.a)-2*(a.b)+(b.b)))<P><DD><DL><DT><B>Parameters:</B><DD><CODE>point1</CODE> - First vector of points<DD><CODE>point2</CODE> - Second vector of points<DT><B>Returns:</B><DD>double value of Kernel evaluation</DL></DD></DL><HR><A NAME="rbfKernel(java.util.Vector, java.util.Vector, double)"><!-- --></A><H3>rbfKernel</H3><PRE>public static double <B>rbfKernel</B>(java.util.Vector&nbsp;point1,                               java.util.Vector&nbsp;point2,                               double&nbsp;gamma_a)</PRE><DL><DD>this method evaluates the redial basis function Kernel on the input vectors with standard deviation sigma K(x,y) = exp(-gamma * ((a.a)-2*(a.b)+(b.b)))<P><DD><DL><DT><B>Parameters:</B><DD><CODE>point1</CODE> - First vector of points<DD><CODE>point2</CODE> - Second vector of points<DD><CODE>gamma_a</CODE> - Double value of gamma<DT><B>Returns:</B><DD>double value of Kernel evaluation</DL></DD></DL><HR><A NAME="polynomialKernel(java.util.Vector, java.util.Vector)"><!-- --></A><H3>polynomialKernel</H3><PRE>public static double <B>polynomialKernel</B>(java.util.Vector&nbsp;points1,                                      java.util.Vector&nbsp;points2)</PRE><DL><DD>this method evaluates the second degree polynomial Kernel on the input vectors K(x,y) = (x . y + 1)^p<P><DD><DL><DT><B>Parameters:</B><DD><CODE>points1</CODE> - First vector of points<DD><CODE>points2</CODE> - Second vector of points<DT><B>Returns:</B><DD>Double value of Kernel evaluation</DL></DD></DL><HR><A NAME="vectorProduct(java.util.Vector, java.util.Vector)"><!-- --></A><H3>vectorProduct</H3><PRE>public static double <B>vectorProduct</B>(java.util.Vector&nbsp;vec1,                                   java.util.Vector&nbsp;vec2)</PRE><DL><DD>this method evaluates the vector dot product<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec1</CODE> - First vector of points<DD><CODE>vec2</CODE> - Second vector of points<DT><B>Returns:</B><DD>dot product</DL></DD></DL><HR><A NAME="almostEqual(java.util.Vector, java.util.Vector)"><!-- --></A><H3>almostEqual</H3><PRE>public static boolean <B>almostEqual</B>(java.util.Vector&nbsp;vec1,                                  java.util.Vector&nbsp;vec2)</PRE><DL><DD>method sees if input vectors are "almost" equal<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec1</CODE> - First vector of points<DD><CODE>vec2</CODE> - Second vector of points<DT><B>Returns:</B><DD>True if all input vector components are "almost" equal</DL></DD></DL><HR><A NAME="almostEqual(java.util.Vector, double)"><!-- --></A><H3>almostEqual</H3><PRE>public static boolean <B>almostEqual</B>(java.util.Vector&nbsp;vec1,                                  double&nbsp;val2)</PRE><DL><DD>method sees if input vectors are "almost" equal<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec1</CODE> - First vector of points<DD><CODE>val2</CODE> - Value to compare to<DT><B>Returns:</B><DD>True if all input vector components are "almost" equal</DL></DD></DL><HR><A NAME="almostEqual(double, double)"><!-- --></A><H3>almostEqual</H3><PRE>public static boolean <B>almostEqual</B>(double&nbsp;val1,                                  double&nbsp;val2)</PRE><DL><DD>method sees if input doubles are "almost" equal<P><DD><DL><DT><B>Parameters:</B><DD><CODE>val1</CODE> - First double value<DD><CODE>val2</CODE> - Second double value<DT><B>Returns:</B><DD>True if doubles are "almost" equal</DL></DD></DL><HR><A NAME="initDoubleVector(java.util.Vector, double)"><!-- --></A><H3>initDoubleVector</H3><PRE>public static void <B>initDoubleVector</B>(java.util.Vector&lt;java.lang.Double&gt;&nbsp;vec_a,                                    double&nbsp;value_a)</PRE><DL><DD>initializes components of vector to double value passed<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec_a</CODE> - point from the cluster<DD><CODE>value_a</CODE> - value to set to vector</DL></DD></DL><HR><A NAME="doubleValue(java.util.Vector, int)"><!-- --></A><H3>doubleValue</H3><PRE>public static double <B>doubleValue</B>(java.util.Vector&lt;java.lang.Double&gt;&nbsp;vec_a,                                 int&nbsp;index_a)</PRE><DL><DD>gets the double value of the input vector at the index passed<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec_a</CODE> - point from the cluster<DD><CODE>index_a</CODE> - <DT><B>Returns:</B><DD>double value of vector at indexed value</DL></DD></DL><HR><A NAME="copyVector(java.util.Vector, java.util.Vector, int, int, int)"><!-- --></A><H3>copyVector</H3><PRE>public static void <B>copyVector</B>(java.util.Vector&lt;java.lang.Double&gt;&nbsp;vec1_a,                              java.util.Vector&lt;java.lang.Double&gt;&nbsp;vec2_a,                              int&nbsp;length_a,                              int&nbsp;index1_a,                              int&nbsp;index2_a)</PRE><DL><DD>Copies vector given specific parameters<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec1_a</CODE> - vector to be overwritten/copyied to<DD><CODE>vec2_a</CODE> - vector to be copied from<DD><CODE>length_a</CODE> - number of elements to be copyied<DD><CODE>index1_a</CODE> - index to start copying to first vector<DD><CODE>index2_a</CODE> - index to start copying from second vector</DL></DD></DL><HR><A NAME="withinClass(DataPoints, double, double)"><!-- --></A><H3>withinClass</H3><PRE>public static void <B>withinClass</B>(<A HREF="DataPoints.html" title="class in &lt;Unnamed&gt;">DataPoints</A>&nbsp;data_a,                               double&nbsp;rx_a,                               double&nbsp;ry_a)</PRE><DL><DD>Within Class<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data_a</CODE> - input data points<DD><CODE>rx_a</CODE> - double input of x<DD><CODE>ry_a</CODE> - double input of y</DL></DD></DL><HR><A NAME="betweenClass(DataPoints, Matrix, double, double)"><!-- --></A><H3>betweenClass</H3><PRE>public static void <B>betweenClass</B>(<A HREF="DataPoints.html" title="class in &lt;Unnamed&gt;">DataPoints</A>&nbsp;d,                                <A HREF="Matrix.html" title="class in &lt;Unnamed&gt;">Matrix</A>&nbsp;M,                                double&nbsp;rx_a,                                double&nbsp;ry_a)</PRE><DL><DD>this method determines the between class scatter matrix for the class independent linear discrimination algorithm<P><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - input data points<DD><CODE>M</CODE> - between class scatter matrix<DD><CODE>rx_a</CODE> - double input of x<DD><CODE>ry_a</CODE> - double input of y</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="MainMenu.html" title="class in &lt;Unnamed&gt;"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="Matrix.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?MathUtil.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="MathUtil.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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 + -