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

📄 fastvector.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to add</DL></DD></DL><HR><A NAME="capacity()"><!-- --></A><H3>capacity</H3><PRE>public final int <B>capacity</B>()</PRE><DL><DD>Returns the capacity of the vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the capacity of the vector</DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public final java.lang.Object <B>copy</B>()</PRE><DL><DD>Produces a shallow copy of this vector.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/Copyable.html#copy()">copy</A></CODE> in interface <CODE><A HREF="../../weka/core/Copyable.html" title="interface in weka.core">Copyable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the new vector</DL></DD></DL><HR><A NAME="copyElements()"><!-- --></A><H3>copyElements</H3><PRE>public final java.lang.Object <B>copyElements</B>()</PRE><DL><DD>Clones the vector and shallow copies all its elements. The elements have to implement the Copyable interface.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the new vector</DL></DD></DL><HR><A NAME="elementAt(int)"><!-- --></A><H3>elementAt</H3><PRE>public final java.lang.Object <B>elementAt</B>(int&nbsp;index)</PRE><DL><DD>Returns the element at the given position.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the element's index<DT><B>Returns:</B><DD>the element with the given index</DL></DD></DL><HR><A NAME="elements()"><!-- --></A><H3>elements</H3><PRE>public final java.util.Enumeration <B>elements</B>()</PRE><DL><DD>Returns an enumeration of this vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of this vector</DL></DD></DL><HR><A NAME="elements(int)"><!-- --></A><H3>elements</H3><PRE>public final java.util.Enumeration <B>elements</B>(int&nbsp;index)</PRE><DL><DD>Returns an enumeration of this vector, skipping the element with the given index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the element to skip<DT><B>Returns:</B><DD>an enumeration of this vector</DL></DD></DL><HR><A NAME="contains(java.lang.Object)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(java.lang.Object&nbsp;o)</PRE><DL><DD>added by akibriya<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="firstElement()"><!-- --></A><H3>firstElement</H3><PRE>public final java.lang.Object <B>firstElement</B>()</PRE><DL><DD>Returns the first element of the vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the first element of the vector</DL></DD></DL><HR><A NAME="indexOf(java.lang.Object)"><!-- --></A><H3>indexOf</H3><PRE>public final int <B>indexOf</B>(java.lang.Object&nbsp;element)</PRE><DL><DD>Searches for the first occurence of the given argument,  testing for equality using the equals method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to be found<DT><B>Returns:</B><DD>the index of the first occurrence of the argument  in this vector; returns -1 if the object is not found</DL></DD></DL><HR><A NAME="insertElementAt(java.lang.Object, int)"><!-- --></A><H3>insertElementAt</H3><PRE>public final void <B>insertElementAt</B>(java.lang.Object&nbsp;element,                                  int&nbsp;index)</PRE><DL><DD>Inserts an element at the given position.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to be inserted<DD><CODE>index</CODE> - the element's index</DL></DD></DL><HR><A NAME="lastElement()"><!-- --></A><H3>lastElement</H3><PRE>public final java.lang.Object <B>lastElement</B>()</PRE><DL><DD>Returns the last element of the vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the last element of the vector</DL></DD></DL><HR><A NAME="removeElementAt(int)"><!-- --></A><H3>removeElementAt</H3><PRE>public final void <B>removeElementAt</B>(int&nbsp;index)</PRE><DL><DD>Deletes an element from this vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the element to be deleted</DL></DD></DL><HR><A NAME="removeAllElements()"><!-- --></A><H3>removeAllElements</H3><PRE>public final void <B>removeAllElements</B>()</PRE><DL><DD>Removes all components from this vector and sets its  size to zero.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="appendElements(weka.core.FastVector)"><!-- --></A><H3>appendElements</H3><PRE>public final void <B>appendElements</B>(<A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;toAppend)</PRE><DL><DD>Appends all elements of the supplied vector to this vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>toAppend</CODE> - the FastVector containing elements to append.</DL></DD></DL><HR><A NAME="toArray()"><!-- --></A><H3>toArray</H3><PRE>public final java.lang.Object[] <B>toArray</B>()</PRE><DL><DD>Returns all the elements of this vector as an array<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setCapacity(int)"><!-- --></A><H3>setCapacity</H3><PRE>public final void <B>setCapacity</B>(int&nbsp;capacity)</PRE><DL><DD>Sets the vector's capacity to the given value.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>capacity</CODE> - the new capacity</DL></DD></DL><HR><A NAME="setElementAt(java.lang.Object, int)"><!-- --></A><H3>setElementAt</H3><PRE>public final void <B>setElementAt</B>(java.lang.Object&nbsp;element,                               int&nbsp;index)</PRE><DL><DD>Sets the element at the given index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to be put into the vector<DD><CODE>index</CODE> - the index at which the element is to be placed</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public final int <B>size</B>()</PRE><DL><DD>Returns the vector's current size.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the vector's current size</DL></DD></DL><HR><A NAME="swap(int, int)"><!-- --></A><H3>swap</H3><PRE>public final void <B>swap</B>(int&nbsp;first,                       int&nbsp;second)</PRE><DL><DD>Swaps two elements in the vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>first</CODE> - index of the first element<DD><CODE>second</CODE> - index of the second element</DL></DD></DL><HR><A NAME="trimToSize()"><!-- --></A><H3>trimToSize</H3><PRE>public final void <B>trimToSize</B>()</PRE><DL><DD>Sets the vector's capacity to its size.<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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../weka/core/ContingencyTables.html" title="class in weka.core"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/core/FastVector.FastVectorEnumeration.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>  &nbsp;&nbsp;<A HREF="FastVector.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -