📄 matrix.html
字号:
add</H3><PRE>public final <A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> <B>add</B>(<A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> other)</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the sum of this matrix with another.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a matrix containing the sum.</DL></DD></DL><HR><A NAME="transpose()"><!-- --></A><H3>transpose</H3><PRE>public final <A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> <B>transpose</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the transpose of a matrix.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the transposition of this instance.</DL></DD></DL><HR><A NAME="isSymmetric()"><!-- --></A><H3>isSymmetric</H3><PRE>public boolean <B>isSymmetric</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns true if the matrix is symmetric.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if matrix is symmetric.</DL></DD></DL><HR><A NAME="multiply(weka.core.Matrix)"><!-- --></A><H3>multiply</H3><PRE>public final <A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> <B>multiply</B>(<A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> b)</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the multiplication of two matrices<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the multiplication matrix<DT><B>Returns:</B><DD>the product matrix</DL></DD></DL><HR><A NAME="regression(weka.core.Matrix, double)"><!-- --></A><H3>regression</H3><PRE>public final double[] <B>regression</B>(<A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> y, double ridge)</PRE><DL><DD><B>Deprecated.</B> <DD>Performs a (ridged) linear regression.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - the dependent variable vector<DD><CODE>ridge</CODE> - the ridge parameter<DT><B>Returns:</B><DD>the coefficients<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if not successful</DL></DD></DL><HR><A NAME="regression(weka.core.Matrix, double[], double)"><!-- --></A><H3>regression</H3><PRE>public final double[] <B>regression</B>(<A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> y, double[] w, double ridge)</PRE><DL><DD><B>Deprecated.</B> <DD>Performs a weighted (ridged) linear regression.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - the dependent variable vector<DD><CODE>w</CODE> - the array of data point weights<DD><CODE>ridge</CODE> - the ridge parameter<DT><B>Returns:</B><DD>the coefficients<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the wrong number of weights were provided.</DL></DD></DL><HR><A NAME="getL()"><!-- --></A><H3>getL</H3><PRE>public <A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> <B>getL</B>() throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the L part of the matrix. This does only make sense after LU decomposition.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>matrix with the L part of the matrix;<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE><DT><B>See Also:</B><DD><A HREF="../../weka/core/Matrix.html#LUDecomposition()"><CODE>LUDecomposition()</CODE></A></DL></DD></DL><HR><A NAME="getU()"><!-- --></A><H3>getU</H3><PRE>public <A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> <B>getU</B>() throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the U part of the matrix. This does only make sense after LU decomposition.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>matrix with the U part of a matrix;<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE><DT><B>See Also:</B><DD><A HREF="../../weka/core/Matrix.html#LUDecomposition()"><CODE>LUDecomposition()</CODE></A></DL></DD></DL><HR><A NAME="LUDecomposition()"><!-- --></A><H3>LUDecomposition</H3><PRE>public int[] <B>LUDecomposition</B>() throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Performs a LUDecomposition on the matrix. It changes the matrix into its LU decomposition.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the indices of the row permutation<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="solve(double[])"><!-- --></A><H3>solve</H3><PRE>public void <B>solve</B>(double[] bb) throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Solve A*X = B using backward substitution. A is current object (this). Note that this matrix will be changed! B parameter bb. X returned in parameter bb.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bb</CODE> - first vector B in above equation then X in same equation.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="eigenvalueDecomposition(double[][], double[])"><!-- --></A><H3>eigenvalueDecomposition</H3><PRE>public void <B>eigenvalueDecomposition</B>(double[][] V, double[] d) throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Performs Eigenvalue Decomposition using Householder QR Factorization Matrix must be symmetrical. Eigenvectors are return in parameter V, as columns of the 2D array. (Real parts of) Eigenvalues are returned in parameter d.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>V</CODE> - double array in which the eigenvectors are returned<DD><CODE>d</CODE> - array in which the eigenvalues are returned<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if matrix is not symmetric</DL></DD></DL><HR><A NAME="toMatlab()"><!-- --></A><H3>toMatlab</H3><PRE>public java.lang.String <B>toMatlab</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>converts the Matrix into a single line Matlab string: matrix is enclosed by parentheses, rows are separated by semicolon and single cells by blanks, e.g., [1 2; 3 4].<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the matrix in Matlab single line format</DL></DD></DL><HR><A NAME="parseMatlab(java.lang.String)"><!-- --></A><H3>parseMatlab</H3><PRE>public static <A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> <B>parseMatlab</B>(java.lang.String matlab) throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>creates a matrix from the given Matlab string.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>matlab</CODE> - the matrix in matlab format<DT><B>Returns:</B><DD>the matrix represented by the given string<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE><DT><B>See Also:</B><DD><A HREF="../../weka/core/Matrix.html#toMatlab()"><CODE>toMatlab()</CODE></A></DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] ops)</PRE><DL><DD><B>Deprecated.</B> <DD>Main method for testing this class.<P><DD><DL></DL></DD><DD><DL></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="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</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="../../weka/core/MathematicalExpression.TreeNode.html" title="class in weka.core"><B>PREV CLASS</B></A> <A HREF="../../weka/core/Memory.html" title="class in weka.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/core/Matrix.html" target="_top"><B>FRAMES</B></A> <A HREF="Matrix.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -