📄 matrix.html
字号:
</DD></DL><HR><A NAME="minusEquals(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>minusEquals</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>minusEquals</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>A = A - B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A - B</DL></DD></DL><HR><A NAME="arrayTimes(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>arrayTimes</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>arrayTimes</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>Element-by-element multiplication, C = A.*B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A.*B</DL></DD></DL><HR><A NAME="arrayTimesEquals(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>arrayTimesEquals</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>arrayTimesEquals</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>Element-by-element multiplication in place, A = A.*B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A.*B</DL></DD></DL><HR><A NAME="arrayRightDivide(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>arrayRightDivide</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>arrayRightDivide</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>Element-by-element right division, C = A./B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A./B</DL></DD></DL><HR><A NAME="arrayRightDivideEquals(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>arrayRightDivideEquals</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>arrayRightDivideEquals</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>Element-by-element right division in place, A = A./B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A./B</DL></DD></DL><HR><A NAME="arrayLeftDivide(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>arrayLeftDivide</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>arrayLeftDivide</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>Element-by-element left division, C = A.\B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A.\B</DL></DD></DL><HR><A NAME="arrayLeftDivideEquals(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>arrayLeftDivideEquals</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>arrayLeftDivideEquals</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>Element-by-element left division in place, A = A.\B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A.\B</DL></DD></DL><HR><A NAME="times(double)"><!-- --></A><H3>times</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>times</B>(double s)</PRE><DL><DD>Multiply a matrix by a scalar, C = s*A<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - scalar<DT><B>Returns:</B><DD>s*A</DL></DD></DL><HR><A NAME="timesEquals(double)"><!-- --></A><H3>timesEquals</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>timesEquals</B>(double s)</PRE><DL><DD>Multiply a matrix by a scalar in place, A = s*A<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - scalar<DT><B>Returns:</B><DD>replace A by s*A</DL></DD></DL><HR><A NAME="times(weka.classifiers.functions.pace.Matrix)"><!-- --></A><H3>times</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>times</B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> B)</PRE><DL><DD>Linear algebraic matrix multiplication, A * B<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>Matrix product, A * B<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - Matrix inner dimensions must agree.</DL></DD></DL><HR><A NAME="trace()"><!-- --></A><H3>trace</H3><PRE>public double <B>trace</B>()</PRE><DL><DD>Matrix trace.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>sum of the diagonal elements.</DL></DD></DL><HR><A NAME="random(int, int)"><!-- --></A><H3>random</H3><PRE>public static <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>random</B>(int m, int n)</PRE><DL><DD>Generate matrix with random elements<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.<DT><B>Returns:</B><DD>An m-by-n matrix with uniformly distributed random elements.</DL></DD></DL><HR><A NAME="identity(int, int)"><!-- --></A><H3>identity</H3><PRE>public static <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>identity</B>(int m, int n)</PRE><DL><DD>Generate identity matrix<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.<DT><B>Returns:</B><DD>An m-by-n matrix with ones on the diagonal and zeros elsewhere.</DL></DD></DL><HR><A NAME="print(int, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(int w, int d)</PRE><DL><DD>Print the matrix to stdout. Line the elements up in columns with a Fortran-like 'Fw.d' style format.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>w</CODE> - Column width.<DD><CODE>d</CODE> - Number of digits after the decimal.</DL></DD></DL><HR><A NAME="print(java.io.PrintWriter, int, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(java.io.PrintWriter output, int w, int d)</PRE><DL><DD>Print the matrix to the output stream. Line the elements up in columns with a Fortran-like 'Fw.d' style format.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>output</CODE> - Output stream.<DD><CODE>w</CODE> - Column width.<DD><CODE>d</CODE> - Number of digits after the decimal.</DL></DD></DL><HR><A NAME="print(java.text.NumberFormat, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(java.text.NumberFormat format, int width)</PRE><DL><DD>Print the matrix to stdout. Line the elements up in columns. Use the format object, and right justify within columns of width characters. Note that is the matrix is to be read back in, you probably will want to use a NumberFormat that is set to US Locale.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - A Formatting object for individual elements.<DD><CODE>width</CODE> - Field width for each column.<DT><B>See Also:</B><DD><CODE>DecimalFormat.setDecimalFormatSymbols(java.text.DecimalFormatSymbols)</CODE></DL></DD></DL><HR><A NAME="print(java.io.PrintWriter, java.text.NumberFormat, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(java.io.PrintWriter output, java.text.NumberFormat format, int width)</PRE><DL><DD>Print the matrix to the output stream. Line the elements up in columns. Use the format object, and right justify within columns of width characters. Note that is the matrix is to be read back in, you probably will want to use a NumberFormat that is set to US Locale.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>output</CODE> - the output stream.<DD><CODE>format</CODE> - A formatting object to format the matrix elements<DD><CODE>width</CODE> - Column width.<DT><B>See Also:</B><DD><CODE>DecimalFormat.setDecimalFormatSymbols(java.text.DecimalFormatSymbols)</CODE></DL></DD></DL><HR><A NAME="read(java.io.BufferedReader)"><!-- --></A><H3>read</H3><PRE>public static <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>read</B>(java.io.BufferedReader input) throws java.io.IOException</PRE><DL><DD>Read a matrix from a stream. The format is the same the print method, so printed matrices can be read back in (provided they were printed using US Locale). Elements are separated by whitespace, all the elements for each row appear on a single line, the last row is followed by a blank line.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - the input stream.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></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/classifiers/functions/pace/Maths.html" title="class in weka.classifiers.functions.pace"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/functions/pace/MixtureDistribution.html" title="class in weka.classifiers.functions.pace"><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 + -