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

📄 pacematrix.html

📁 数据挖掘的最常用工具。由于开源
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the row number of the element<DD><CODE>j</CODE> - the column number of the element<DD><CODE>s</CODE> - the double value to be added with</DL></DD></DL><HR><A NAME="setTimes(int, int, double)"><!-- --></A><H3>setTimes</H3><PRE>public void <B>setTimes</B>(int&nbsp;i,                     int&nbsp;j,                     double&nbsp;s)</PRE><DL><DD>Multiply a value with an element and reset the element<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the row number of the element<DD><CODE>j</CODE> - the column number of the element<DD><CODE>s</CODE> - the double value to be multiplied with</DL></DD></DL><HR><A NAME="setMatrix(int, int, int, int, double)"><!-- --></A><H3>setMatrix</H3><PRE>public void <B>setMatrix</B>(int&nbsp;i0,                      int&nbsp;i1,                      int&nbsp;j0,                      int&nbsp;j1,                      double&nbsp;s)</PRE><DL><DD>Set the submatrix A[i0:i1][j0:j1] with a same value<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i0</CODE> - the index of the first element of the column<DD><CODE>i1</CODE> - the index of the last element of the column<DD><CODE>j0</CODE> - the index of the first column<DD><CODE>j1</CODE> - the index of the last column<DD><CODE>s</CODE> - the value to be set to</DL></DD></DL><HR><A NAME="setMatrix(int, int, int, weka.core.matrix.DoubleVector)"><!-- --></A><H3>setMatrix</H3><PRE>public void <B>setMatrix</B>(int&nbsp;i0,                      int&nbsp;i1,                      int&nbsp;j,                      <A HREF="../../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;v)</PRE><DL><DD>Set the submatrix A[i0:i1][j] with the values stored in a  DoubleVector<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i0</CODE> - the index of the first element of the column<DD><CODE>i1</CODE> - the index of the last element of the column<DD><CODE>j</CODE> - the index of the column<DD><CODE>v</CODE> - the vector that stores the values</DL></DD></DL><HR><A NAME="setMatrix(double[], boolean)"><!-- --></A><H3>setMatrix</H3><PRE>public void <B>setMatrix</B>(double[]&nbsp;v,                      boolean&nbsp;columnFirst)</PRE><DL><DD>Set the whole matrix from a 1-D array<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - 1-D array of doubles<DD><CODE>columnFirst</CODE> - Whether to fill the column first or the row.<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - Submatrix indices</DL></DD></DL><HR><A NAME="maxAbs()"><!-- --></A><H3>maxAbs</H3><PRE>public double <B>maxAbs</B>()</PRE><DL><DD>Returns the maximum absolute value of all elements<P><DD><DL><DT><B>Returns:</B><DD>the maximum value</DL></DD></DL><HR><A NAME="maxAbs(int, int, int)"><!-- --></A><H3>maxAbs</H3><PRE>public double <B>maxAbs</B>(int&nbsp;i0,                     int&nbsp;i1,                     int&nbsp;j)</PRE><DL><DD>Returns the maximum absolute value of some elements of a column,      that is, the elements of A[i0:i1][j].<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i0</CODE> - the index of the first element of the column<DD><CODE>i1</CODE> - the index of the last element of the column<DD><CODE>j</CODE> - the index of the column<DT><B>Returns:</B><DD>the maximum value</DL></DD></DL><HR><A NAME="minAbs(int, int, int)"><!-- --></A><H3>minAbs</H3><PRE>public double <B>minAbs</B>(int&nbsp;i0,                     int&nbsp;i1,                     int&nbsp;column)</PRE><DL><DD>Returns the minimum absolute value of some elements of a column,      that is, the elements of A[i0:i1][j].<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i0</CODE> - the index of the first element of the column<DD><CODE>i1</CODE> - the index of the last element of the column<DD><CODE>column</CODE> - the index of the column<DT><B>Returns:</B><DD>the minimum value</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Check if the matrix is empty<P><DD><DL><DT><B>Returns:</B><DD>true if the matrix is empty</DL></DD></DL><HR><A NAME="getColumn(int)"><!-- --></A><H3>getColumn</H3><PRE>public <A HREF="../../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>getColumn</B>(int&nbsp;j)</PRE><DL><DD>Return a DoubleVector that stores a column of the matrix<P><DD><DL><DT><B>Parameters:</B><DD><CODE>j</CODE> - the index of the column<DT><B>Returns:</B><DD>the column</DL></DD></DL><HR><A NAME="getColumn(int, int, int)"><!-- --></A><H3>getColumn</H3><PRE>public <A HREF="../../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>getColumn</B>(int&nbsp;i0,                              int&nbsp;i1,                              int&nbsp;j)</PRE><DL><DD>Return a DoubleVector that stores some elements of a column of the  matrix<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i0</CODE> - the index of the first element of the column<DD><CODE>i1</CODE> - the index of the last element of the column<DD><CODE>j</CODE> - the index of the column<DT><B>Returns:</B><DD>the DoubleVector</DL></DD></DL><HR><A NAME="times(int, int, int, weka.classifiers.functions.pace.PaceMatrix, int)"><!-- --></A><H3>times</H3><PRE>public double <B>times</B>(int&nbsp;i,                    int&nbsp;j0,                    int&nbsp;j1,                    <A HREF="../../../../weka/classifiers/functions/pace/PaceMatrix.html" title="class in weka.classifiers.functions.pace">PaceMatrix</A>&nbsp;B,                    int&nbsp;l)</PRE><DL><DD>Multiplication between a row (or part of a row) of the first matrix  and a column (or part or a column) of the second matrix.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the index of the row in the first matrix<DD><CODE>j0</CODE> - the index of the first column in the first matrix<DD><CODE>j1</CODE> - the index of the last column in the first matrix<DD><CODE>B</CODE> - the second matrix<DD><CODE>l</CODE> - the index of the column in the second matrix<DT><B>Returns:</B><DD>the result of the multiplication</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Converts matrix to string<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/matrix/Matrix.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../weka/core/matrix/Matrix.html" title="class in weka.core.matrix">Matrix</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the matrix as string</DL></DD></DL><HR><A NAME="toString(int, boolean)"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>(int&nbsp;digits,                                 boolean&nbsp;trailing)</PRE><DL><DD>Converts matrix to string<P><DD><DL><DT><B>Parameters:</B><DD><CODE>digits</CODE> - number of digits after decimal point<DD><CODE>trailing</CODE> - true if trailing zeros are padded<DT><B>Returns:</B><DD>the matrix as string</DL></DD></DL><HR><A NAME="sum2(int, int, int, boolean)"><!-- --></A><H3>sum2</H3><PRE>public double <B>sum2</B>(int&nbsp;j,                   int&nbsp;i0,                   int&nbsp;i1,                   boolean&nbsp;col)</PRE><DL><DD>Squared sum of a column or row in a matrix<P><DD><DL><DT><B>Parameters:</B><DD><CODE>j</CODE> - the index of the column or row<DD><CODE>i0</CODE> - the index of the first element<DD><CODE>i1</CODE> - the index of the last element<DD><CODE>col</CODE> - if true, sum over a column; otherwise, over a row<DT><B>Returns:</B><DD>the squared sum</DL></DD></DL><HR><A NAME="sum2(boolean)"><!-- --></A><H3>sum2</H3><PRE>public double[] <B>sum2</B>(boolean&nbsp;col)</PRE><DL><DD>Squared sum of columns or rows of a matrix<P><DD><DL><DT><B>Parameters:</B><DD><CODE>col</CODE> - if true, sum over columns; otherwise, over rows<DT><B>Returns:</B><DD>the squared sum</DL></DD></DL><HR><A NAME="h1(int, int)"><!-- --></A><H3>h1</H3><PRE>public double[] <B>h1</B>(int&nbsp;j,                   int&nbsp;k)</PRE><DL><DD>Constructs single Householder transformation for a column<P><DD><DL><DT><B>Parameters:</B><DD><CODE>j</CODE> - the index of the column<DD><CODE>k</CODE> - the index of the row<DT><B>Returns:</B><DD>d and q</DL></DD></DL><HR><A NAME="h2(int, int, double, weka.classifiers.functions.pace.PaceMatrix, int)"><!-- --></A><H3>h2</H3><PRE>

⌨️ 快捷键说明

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