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

📄 doublevector.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sortWithIndex(int, int, weka.core.matrix.IntVector)"><!-- --></A><H3>sortWithIndex</H3><PRE>public void <B>sortWithIndex</B>(int&nbsp;xi,                          int&nbsp;xj,                          <A HREF="../../../weka/core/matrix/IntVector.html" title="class in weka.core.matrix">IntVector</A>&nbsp;index)</PRE><DL><DD>Sorts the array in place with index changed<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>xi</CODE> - first index<DD><CODE>xj</CODE> - last index<DD><CODE>index</CODE> - array that stores all indices</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Gets the size of the vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size</DL></DD></DL><HR><A NAME="setSize(int)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(int&nbsp;m)</PRE><DL><DD>Sets the size of the vector<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - the size</DL></DD></DL><HR><A NAME="capacity()"><!-- --></A><H3>capacity</H3><PRE>public int <B>capacity</B>()</PRE><DL><DD>Gets the capacity of the vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the capacity.</DL></DD></DL><HR><A NAME="setCapacity(int)"><!-- --></A><H3>setCapacity</H3><PRE>public void <B>setCapacity</B>(int&nbsp;n)</PRE><DL><DD>Sets the capacity of the vector<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the capacity.</DL></DD></DL><HR><A NAME="get(int)"><!-- --></A><H3>get</H3><PRE>public double <B>get</B>(int&nbsp;i)</PRE><DL><DD>Gets a single element.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - Index.<DT><B>Returns:</B><DD>the value of the i-th element</DL></DD></DL><HR><A NAME="setPlus(int, double)"><!-- --></A><H3>setPlus</H3><PRE>public void <B>setPlus</B>(int&nbsp;i,                    double&nbsp;s)</PRE><DL><DD>Adds a value to an element<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the index of the element<DD><CODE>s</CODE> - the value</DL></DD></DL><HR><A NAME="setTimes(int, double)"><!-- --></A><H3>setTimes</H3><PRE>public void <B>setTimes</B>(int&nbsp;i,                     double&nbsp;s)</PRE><DL><DD>Multiplies a value to an element<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the index of the element<DD><CODE>s</CODE> - the value</DL></DD></DL><HR><A NAME="addElement(double)"><!-- --></A><H3>addElement</H3><PRE>public void <B>addElement</B>(double&nbsp;x)</PRE><DL><DD>Adds an element into the vector<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value of the new element</DL></DD></DL><HR><A NAME="square()"><!-- --></A><H3>square</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>square</B>()</PRE><DL><DD>Returns the squared vector<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sqrt()"><!-- --></A><H3>sqrt</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>sqrt</B>()</PRE><DL><DD>Returns the square-root of all the elements in the vector<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>copy</B>()</PRE><DL><DD>Makes a deep copy of the vector<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Clones the DoubleVector object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="innerProduct(weka.core.matrix.DoubleVector)"><!-- --></A><H3>innerProduct</H3><PRE>public double <B>innerProduct</B>(<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;v)</PRE><DL><DD>Returns the inner product of two DoubleVectors<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the second DoubleVector<DT><B>Returns:</B><DD>the product</DL></DD></DL><HR><A NAME="sign()"><!-- --></A><H3>sign</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>sign</B>()</PRE><DL><DD>Returns the signs of all elements in terms of -1, 0 and +1.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sum()"><!-- --></A><H3>sum</H3><PRE>public double <B>sum</B>()</PRE><DL><DD>Returns the sum of all elements in the vector.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sum2()"><!-- --></A><H3>sum2</H3><PRE>public double <B>sum2</B>()</PRE><DL><DD>Returns the squared sum of all elements in the vector.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="norm1()"><!-- --></A><H3>norm1</H3><PRE>public double <B>norm1</B>()</PRE><DL><DD>Returns the L1-norm of the vector<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="norm2()"><!-- --></A><H3>norm2</H3><PRE>public double <B>norm2</B>()</PRE><DL><DD>Returns the L2-norm of the vector<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sum2(weka.core.matrix.DoubleVector)"><!-- --></A><H3>sum2</H3><PRE>public double <B>sum2</B>(<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;v)</PRE><DL><DD>Returns ||u-v||^2<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the second vector</DL></DD></DL><HR><A NAME="subvector(int, int)"><!-- --></A><H3>subvector</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>subvector</B>(int&nbsp;i0,                              int&nbsp;i1)</PRE><DL><DD>Returns a subvector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i0</CODE> - the index of the first element<DD><CODE>i1</CODE> - the index of the last element<DT><B>Returns:</B><DD>v[i0:i1]</DL></DD></DL><HR><A NAME="subvector(weka.core.matrix.IntVector)"><!-- --></A><H3>subvector</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>subvector</B>(<A HREF="../../../weka/core/matrix/IntVector.html" title="class in weka.core.matrix">IntVector</A>&nbsp;index)</PRE><DL><DD>Returns a subvector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - stores the indices of the needed elements<DT><B>Returns:</B><DD>v[index]</DL></DD></DL><HR><A NAME="unpivoting(weka.core.matrix.IntVector, int)"><!-- --></A><H3>unpivoting</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>unpivoting</B>(<A HREF="../../../weka/core/matrix/IntVector.html" title="class in weka.core.matrix">IntVector</A>&nbsp;index,                               int&nbsp;length)</PRE><DL><DD>Returns a vector from the pivoting indices. Elements not indexed are  set to zero.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - stores the pivoting indices<DD><CODE>length</CODE> - the total number of the potential elements<DT><B>Returns:</B><DD>the subvector</DL></DD></DL><HR><A NAME="plus(double)"><!-- --></A><H3>plus</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>plus</B>(double&nbsp;x)</PRE><DL><DD>Adds a value to all the elements<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value</DL></DD></DL><HR><A NAME="plusEquals(double)"><!-- --></A><H3>plusEquals</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>plusEquals</B>(double&nbsp;x)</PRE><DL><DD>Adds a value to all the elements in place<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value</DL></DD></DL><HR><A NAME="plus(weka.core.matrix.DoubleVector)"><!-- --></A><H3>plus</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>plus</B>(<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;v)</PRE><DL><DD>Adds another vector element by element<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the second vector</DL></DD></DL><HR><A NAME="plusEquals(weka.core.matrix.DoubleVector)"><!-- --></A><H3>plusEquals</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>plusEquals</B>(<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;v)</PRE><DL><DD>Adds another vector in place element by element<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the second vector</DL></DD></DL><HR>

⌨️ 快捷键说明

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