📄 mathutil.html
字号:
<BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#linearKernel(java.util.Vector, java.util.Vector)">linearKernel</A></B>(java.util.Vector point1, java.util.Vector point2)</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#polynomialKernel(java.util.Vector, java.util.Vector)">polynomialKernel</A></B>(java.util.Vector points1, java.util.Vector points2)</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#rbfKernel(java.util.Vector, java.util.Vector)">rbfKernel</A></B>(java.util.Vector point1, java.util.Vector point2)</CODE><BR> 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 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 point1, java.util.Vector point2, double gamma_a)</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#setDecimal(double, int)">setDecimal</A></B>(double doubleNumber, int decimalPlaces)</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#SetDecimal(double, int)">SetDecimal</A></B>(double doubleNumber, int decimalPlaces)</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="MathUtil.html#vectorProduct(java.util.Vector, java.util.Vector)">vectorProduct</A></B>(java.util.Vector vec1, java.util.Vector vec2)</CODE><BR> 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 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 <Unnamed>">DataPoints</A> data_a, double rx_a, double ry_a)</CODE><BR> Within Class</TD></TR></TABLE> <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> <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 mean, double 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 doubleNumber, int 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 x1, double y1, double x2, double 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 <Unnamed>">MyPoint</A> <B>computeClusterMean</B>(java.util.Vector 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 <Unnamed>">MyPoint</A> <B>computePointMean</B>(java.util.Vector 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 <Unnamed>">MyPoint</A> <B>computeMyPointMean</B>(java.util.Vector 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 doubleNumber, int 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 + -