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

📄 mathutil.html

📁 包含了模式识别中常用的一些分类器设计算法
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initializes components of vector to double value passed</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#linearKernel(java.util.Vector, java.util.Vector)">linearKernel</A></B>(java.util.Vector&nbsp;point1,             java.util.Vector&nbsp;point2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this method evaluates the linear Kernel on the input vectors K(x,y) = (x .</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#polynomialKernel(java.util.Vector, java.util.Vector)">polynomialKernel</A></B>(java.util.Vector&nbsp;points1,                 java.util.Vector&nbsp;points2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this method evaluates the second degree polynomial Kernel on the input vectors K(x,y) = (x .</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#rbfKernel(java.util.Vector, java.util.Vector)">rbfKernel</A></B>(java.util.Vector&nbsp;point1,          java.util.Vector&nbsp;point2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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)))</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#rbfKernel(java.util.Vector, java.util.Vector, double)">rbfKernel</A></B>(java.util.Vector&nbsp;point1,          java.util.Vector&nbsp;point2,          double&nbsp;gamma_a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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)))</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#setDecimal(double, int)">setDecimal</A></B>(double&nbsp;doubleNumber,           int&nbsp;decimalPlaces)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;method takes in a decimal number and rounds to the given number of decimal places passed</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#SetDecimal(double, int)">SetDecimal</A></B>(double&nbsp;doubleNumber,           int&nbsp;decimalPlaces)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;method to round off floating point numbers to the specified number of decimal places given</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#vectorProduct(java.util.Vector, java.util.Vector)">vectorProduct</A></B>(java.util.Vector&nbsp;vec1,              java.util.Vector&nbsp;vec2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this method evaluates the vector dot product</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#withinClass(DataPoints, double, double)">withinClass</A></B>(<A HREF="DataPoints.html" title="class in &lt;Unnamed&gt;">DataPoints</A>&nbsp;data_a,            double&nbsp;rx_a,            double&nbsp;ry_a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Within Class</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><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="RAND_SEED"><!-- --></A><H3>RAND_SEED</H3><PRE>public static final long <B>RAND_SEED</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="constant-values.html#MathUtil.RAND_SEED">Constant Field Values</A></DL></DL><HR><A NAME="random"><!-- --></A><H3>random</H3><PRE>public static final java.util.Random <B>random</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="MathUtil()"><!-- --></A><H3>MathUtil</H3><PRE>public <B>MathUtil</B>()</PRE><DL><DD>Default constructor. Empty body<P></DL><!-- ============ 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="grand(double, double)"><!-- --></A><H3>grand</H3><PRE>public static double <B>grand</B>(double&nbsp;mean,                           double&nbsp;stddev)</PRE><DL><DD>method generates a random distribution centered about the mean with a variance that is specified by the standard deviation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mean</CODE> - mean of the distribution<DD><CODE>stddev</CODE> - standard deviation of the distribution<DT><B>Returns:</B><DD>random number centered about the mean</DL></DD></DL><HR><A NAME="SetDecimal(double, int)"><!-- --></A><H3>SetDecimal</H3><PRE>public static double <B>SetDecimal</B>(double&nbsp;doubleNumber,                                int&nbsp;decimalPlaces)</PRE><DL><DD>method to round off floating point numbers to the specified number of decimal places given<P><DD><DL><DT><B>Parameters:</B><DD><CODE>doubleNumber</CODE> - input number<DD><CODE>decimalPlaces</CODE> - number of decimal places to round</DL></DD></DL><HR><A NAME="distance(double, double, double, double)"><!-- --></A><H3>distance</H3><PRE>public static double <B>distance</B>(double&nbsp;x1,                              double&nbsp;y1,                              double&nbsp;x2,                              double&nbsp;y2)</PRE><DL><DD>calculate the euclidean distance between the two points<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x1</CODE> - x-coordinate of the first point<DD><CODE>y1</CODE> - y-coordinate of the first point<DD><CODE>x2</CODE> - x-coordinate of the second point<DD><CODE>y2</CODE> - y-coordinate of the second point<DT><B>Returns:</B><DD>distance between the points</DL></DD></DL><HR><A NAME="computeClusterMean(java.util.Vector)"><!-- --></A><H3>computeClusterMean</H3><PRE>public static <A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A> <B>computeClusterMean</B>(java.util.Vector&nbsp;vec)</PRE><DL><DD>methods computes and returns the mean of the given cluster<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec</CODE> - Vector of points from the cluster<DT><B>Returns:</B><DD>MyPoint value of the cluster mean</DL></DD></DL><HR><A NAME="computePointMean(java.util.Vector)"><!-- --></A><H3>computePointMean</H3><PRE>public static <A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A> <B>computePointMean</B>(java.util.Vector&nbsp;vec)</PRE><DL><DD>methods computes and returns the mean of the given cluster<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec</CODE> - Vector of points from the cluster<DT><B>Returns:</B><DD>MyPoint value of the mean</DL></DD></DL><HR><A NAME="computeMyPointMean(java.util.Vector)"><!-- --></A><H3>computeMyPointMean</H3><PRE>public static <A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A> <B>computeMyPointMean</B>(java.util.Vector&nbsp;vec)</PRE><DL><DD>methods computes and returns the mean of the given cluster<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec</CODE> - point from the cluster<DT><B>Returns:</B><DD>MyPoint value of the mean</DL></DD></DL><HR><A NAME="setDecimal(double, int)"><!-- --></A><H3>setDecimal</H3><PRE>public static double <B>setDecimal</B>(double&nbsp;doubleNumber,                                int&nbsp;decimalPlaces)</PRE><DL><DD>method takes in a decimal number and rounds to the given number of decimal places passed<P><DD><DL><DT><B>Parameters:</B><DD><CODE>doubleNumber</CODE> - input number<DD><CODE>decimalPlaces</CODE> - number of significant decimal places<DT><B>Returns:</B><DD>double value of decimal with correct signifcant figures</DL></DD></DL><HR><A NAME="linearKernel(java.util.Vector, java.util.Vector)"><!-- --></A><H3>linearKernel</H3>

⌨️ 快捷键说明

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