doublevector.html
来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,838 行 · 第 1/5 页
HTML
1,838 行
</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> 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> 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 i0, int 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> 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> index, int 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 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 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> 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> 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><A NAME="minus(double)"><!-- --></A><H3>minus</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>minus</B>(double x)</PRE><DL><DD>Subtracts a value<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the value</DL></DD></DL><HR><A NAME="minusEquals(double)"><!-- --></A><H3>minusEquals</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>minusEquals</B>(double x)</PRE><DL><DD>Subtracts a value 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="minus(weka.core.matrix.DoubleVector)"><!-- --></A><H3>minus</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>minus</B>(<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> v)</PRE><DL><DD>Subtracts another DoubleVector element by element<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the second DoubleVector</DL></DD></DL><HR><A NAME="minusEquals(weka.core.matrix.DoubleVector)"><!-- --></A><H3>minusEquals</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>minusEquals</B>(<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> v)</PRE><DL><DD>Subtracts another DoubleVector element by element in place<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the second DoubleVector</DL></DD></DL><HR><A NAME="times(double)"><!-- --></A><H3>times</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>times</B>(double s)</PRE><DL><DD>Multiplies a scalar<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - scalar<DT><B>Returns:</B><DD>s * v</DL></DD></DL><HR><A NAME="timesEquals(double)"><!-- --></A><H3>timesEquals</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>timesEquals</B>(double s)</PRE><DL><DD>Multiply a vector by a scalar in place, u = s * u<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - scalar<DT><B>Returns:</B><DD>replace u by s * u</DL></DD></DL><HR><A NAME="times(weka.core.matrix.DoubleVector)"><!-- --></A><H3>times</H3><PRE>public <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>times</B>(<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> v)</PRE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?