📄 matrix.html
字号:
<HR><A NAME="add(weka.core.Matrix)"><!-- --></A><H3>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>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>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>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>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>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>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>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></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>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></DL></DD></DL><HR><A NAME="LUDecomposition()"><!-- --></A><H3>LUDecomposition</H3><PRE>public int[] <B>LUDecomposition</B>() throws java.lang.Exception</PRE><DL><DD>Performs a LUDecomposition on the matrix. It changes the matrix into its LU decomposition using the Crout algorithm<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> - if the matrix is singular</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>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 vektor B in above equation then X in same equation.<DT><B>Throws:</B><DD><CODE>matrix</CODE> - is singulaer<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>Performs Eigenvalue Decomposition using Householder QR Factorization This function is adapted from the CERN Jet Java libraries, for it the following copyright applies (see also, text on top of file) Copyright (C) 1999 CERN - European Organization for Nuclear Research. Matrix must be symmetrical. Eigenvectors are return in parameter V, as columns of the 2D array. 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>if</CODE> - matrix is not symmetric<DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="testEigen(weka.core.Matrix, double[], boolean)"><!-- --></A><H3>testEigen</H3><PRE>public boolean <B>testEigen</B>(<A HREF="../../weka/core/Matrix.html" title="class in weka.core">Matrix</A> V, double[] d, boolean verbose) throws java.lang.Exception</PRE><DL><DD>Test eigenvectors and eigenvalues. function is used for debugging<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>V</CODE> - matrix with eigenvectors of A<DD><CODE>d</CODE> - array with eigenvalues of A<DT><B>Throws:</B><DD><CODE>if</CODE> - new matrix cannot be made<DD><CODE>java.lang.Exception</CODE></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>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=3 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="../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><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/Instances.html" title="class in weka.core"><B>PREV CLASS</B></A> <A HREF="../../weka/core/Optimization.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" 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 + -