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

📄 attribute.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD><DL><DT><B>Returns:</B><DD>true if the attribute is a date type</DL></DD></DL><HR><A NAME="name()"><!-- --></A><H3>name</H3><PRE>public final java.lang.String <B>name</B>()</PRE><DL><DD>Returns the attribute's name.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the attribute's name as a string</DL></DD></DL><HR><A NAME="numValues()"><!-- --></A><H3>numValues</H3><PRE>public final int <B>numValues</B>()</PRE><DL><DD>Returns the number of attribute values. Returns 0 for numeric attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of attribute values</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public final java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a description of this attribute in ARFF format. Quotes strings if they contain whitespace characters, or if they are a question mark.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of this attribute as a string</DL></DD></DL><HR><A NAME="type()"><!-- --></A><H3>type</H3><PRE>public final int <B>type</B>()</PRE><DL><DD>Returns the attribute's type as an integer.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the attribute's type.</DL></DD></DL><HR><A NAME="value(int)"><!-- --></A><H3>value</H3><PRE>public final java.lang.String <B>value</B>(int&nbsp;valIndex)</PRE><DL><DD>Returns a value of a nominal or string attribute.  Returns an empty string if the attribute is neither nominal nor a string attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>valIndex</CODE> - the value's index<DT><B>Returns:</B><DD>the attribute's value as a string</DL></DD></DL><HR><A NAME="addStringValue(java.lang.String)"><!-- --></A><H3>addStringValue</H3><PRE>public int <B>addStringValue</B>(java.lang.String&nbsp;value)</PRE><DL><DD>Adds a string value to the list of valid strings for attributes of type STRING and returns the index of the string.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to add<DT><B>Returns:</B><DD>the index assigned to the string, or -1 if the attribute is not of type Attribute.STRING</DL></DD></DL><HR><A NAME="addStringValue(weka.core.Attribute, int)"><!-- --></A><H3>addStringValue</H3><PRE>public int <B>addStringValue</B>(<A HREF="../../weka/core/Attribute.html" title="class in weka.core">Attribute</A>&nbsp;src,                          int&nbsp;index)</PRE><DL><DD>Adds a string value to the list of valid strings for attributes of type STRING and returns the index of the string. This method is more efficient than addStringValue(String) for long strings.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The Attribute containing the string value to add.<DT><B>Returns:</B><DD>the index assigned to the string, or -1 if the attribute is not of type Attribute.STRING</DL></DD></DL><HR><A NAME="formatDate(double)"><!-- --></A><H3>formatDate</H3><PRE>public java.lang.String <B>formatDate</B>(double&nbsp;date)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="parseDate(java.lang.String)"><!-- --></A><H3>parseDate</H3><PRE>public double <B>parseDate</B>(java.lang.String&nbsp;string)                 throws java.text.ParseException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.text.ParseException</CODE></DL></DD></DL><HR><A NAME="getMetadata()"><!-- --></A><H3>getMetadata</H3><PRE>public final <A HREF="../../weka/core/ProtectedProperties.html" title="class in weka.core">ProtectedProperties</A> <B>getMetadata</B>()</PRE><DL><DD>Returns the properties supplied for this attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>metadata for this attribute</DL></DD></DL><HR><A NAME="ordering()"><!-- --></A><H3>ordering</H3><PRE>public final int <B>ordering</B>()</PRE><DL><DD>Returns the ordering of the attribute. One of the following:  ORDERING_SYMBOLIC - attribute values should be treated as symbols. ORDERING_ORDERED  - attribute values have a global ordering. ORDERING_MODULO   - attribute values have an ordering which wraps.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ordering type of the attribute</DL></DD></DL><HR><A NAME="isRegular()"><!-- --></A><H3>isRegular</H3><PRE>public final boolean <B>isRegular</B>()</PRE><DL><DD>Returns whether the attribute values are equally spaced.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the attribute is regular or not</DL></DD></DL><HR><A NAME="isAveragable()"><!-- --></A><H3>isAveragable</H3><PRE>public final boolean <B>isAveragable</B>()</PRE><DL><DD>Returns whether the attribute can be averaged meaningfully.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the attribute can be averaged or not</DL></DD></DL><HR><A NAME="hasZeropoint()"><!-- --></A><H3>hasZeropoint</H3><PRE>public final boolean <B>hasZeropoint</B>()</PRE><DL><DD>Returns whether the attribute has a zeropoint and may be added meaningfully.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the attribute has a zeropoint or not</DL></DD></DL><HR><A NAME="weight()"><!-- --></A><H3>weight</H3><PRE>public final double <B>weight</B>()</PRE><DL><DD>Returns the attribute's weight.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the attribute's weight as a double</DL></DD></DL><HR><A NAME="getLowerNumericBound()"><!-- --></A><H3>getLowerNumericBound</H3><PRE>public final double <B>getLowerNumericBound</B>()</PRE><DL><DD>Returns the lower bound of a numeric attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the lower bound of the specified numeric range</DL></DD></DL><HR><A NAME="lowerNumericBoundIsOpen()"><!-- --></A><H3>lowerNumericBoundIsOpen</H3><PRE>public final boolean <B>lowerNumericBoundIsOpen</B>()</PRE><DL><DD>Returns whether the lower numeric bound of the attribute is open.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the lower numeric bound is open or not (closed)</DL></DD></DL><HR><A NAME="getUpperNumericBound()"><!-- --></A><H3>getUpperNumericBound</H3><PRE>public final double <B>getUpperNumericBound</B>()</PRE><DL><DD>Returns the upper bound of a numeric attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the upper bound of the specified numeric range</DL></DD></DL><HR><A NAME="upperNumericBoundIsOpen()"><!-- --></A><H3>upperNumericBoundIsOpen</H3><PRE>public final boolean <B>upperNumericBoundIsOpen</B>()</PRE><DL><DD>Returns whether the upper numeric bound of the attribute is open.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the upper numeric bound is open or not (closed)</DL></DD></DL><HR><A NAME="isInRange(double)"><!-- --></A><H3>isInRange</H3><PRE>public final boolean <B>isInRange</B>(double&nbsp;value)</PRE><DL><DD>Determines whether a value lies within the bounds of the attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the value is in range</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;ops)</PRE><DL><DD>Simple main method for testing this class.<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;PREV CLASS&nbsp;&nbsp;<A HREF="../../weka/core/AttributeStats.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="Attribute.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;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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 + -