📄 mathutil.html
字号:
<PRE>public static double <B>linearKernel</B>(java.util.Vector point1, java.util.Vector 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 point1, java.util.Vector 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 point1, java.util.Vector point2, double 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 points1, java.util.Vector 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 vec1, java.util.Vector 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 vec1, java.util.Vector 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 vec1, double 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 val1, double 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<java.lang.Double> vec_a, double 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<java.lang.Double> vec_a, int 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<java.lang.Double> vec1_a, java.util.Vector<java.lang.Double> vec2_a, int length_a, int index1_a, int 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 <Unnamed>">DataPoints</A> data_a, double rx_a, double 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 <Unnamed>">DataPoints</A> d, <A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> M, double rx_a, double 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> </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="MainMenu.html" title="class in <Unnamed>"><B>PREV CLASS</B></A> <A HREF="Matrix.html" title="class in <Unnamed>"><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> <A HREF="MathUtil.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -