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

📄 attribute.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DL><DD>Constant set for numeric attributes.</DL><HR><A NAME="NOMINAL"><!-- --></A><H3>NOMINAL</H3><PRE>public static final int <B>NOMINAL</B></PRE><DL><DD>Constant set for nominal attributes.</DL><HR><A NAME="STRING"><!-- --></A><H3>STRING</H3><PRE>public static final int <B>STRING</B></PRE><DL><DD>Constant set for attributes with string values.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Attribute(java.lang.String)"><!-- --></A><H3>Attribute</H3><PRE>public <B>Attribute</B>(java.lang.String&nbsp;attributeName)</PRE><DL><DD>Constructor for a numeric attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>attributeName</CODE> - the name for the attribute</DL></DD></DL><HR><A NAME="Attribute(java.lang.String, weka.core.FastVector)"><!-- --></A><H3>Attribute</H3><PRE>public <B>Attribute</B>(java.lang.String&nbsp;attributeName,                 <A HREF="../../weka/core/FastVector.html">FastVector</A>&nbsp;attributeValues)</PRE><DL><DD>Constructor for nominal attributes and string attributes. If a null vector of attribute values is passed to the method, the attribute is assumed to be a string.<DD><DL><DT><B>Parameters:</B><DD><CODE>attributeName</CODE> - the name for the attribute<DD><CODE>attributeValues</CODE> - a vector of strings denoting the  attribute values. Null if the attribute is a string attribute.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public java.lang.Object <B>copy</B>()</PRE><DL><DD>Produces a shallow copy of this attribute.<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">Copyable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a copy of this attribute with the same index</DL></DD></DL><HR><A NAME="enumerateValues()"><!-- --></A><H3>enumerateValues</H3><PRE>public final java.util.Enumeration <B>enumerateValues</B>()</PRE><DL><DD>Returns an enumeration of all the attribute's values if the attribute is nominal or a string, null otherwise.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>enumeration of all the attribute's values</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public final boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE><DL><DD>Tests if given attribute is equal to this attribute.<DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - the Object to be compared to this attribute<DT><B>Returns:</B><DD>true if the given attribute is equal to this attribute</DL></DD></DL><HR><A NAME="index()"><!-- --></A><H3>index</H3><PRE>public final int <B>index</B>()</PRE><DL><DD>Returns the index of this attribute.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the index of this attribute</DL></DD></DL><HR><A NAME="indexOfValue(java.lang.String)"><!-- --></A><H3>indexOfValue</H3><PRE>public final int <B>indexOfValue</B>(java.lang.String&nbsp;value)</PRE><DL><DD>Returns the index of a given attribute value. (The index of the first occurence of this value.)<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the value for which the index is to be returned<DT><B>Returns:</B><DD>the index of the given attribute value if attribute is nominal or a string, -1 if it is numeric or the value  can't be found</DL></DD></DL><HR><A NAME="isNominal()"><!-- --></A><H3>isNominal</H3><PRE>public final boolean <B>isNominal</B>()</PRE><DL><DD>Test if the attribute is nominal.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the attribute is nominal</DL></DD></DL><HR><A NAME="isNumeric()"><!-- --></A><H3>isNumeric</H3><PRE>public final boolean <B>isNumeric</B>()</PRE><DL><DD>Tests if the attribute is numeric.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the attribute is numeric</DL></DD></DL><HR><A NAME="isString()"><!-- --></A><H3>isString</H3><PRE>public final boolean <B>isString</B>()</PRE><DL><DD>Tests if the attribute is a string.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the attribute is a string</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.<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.<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.<DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></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.<DD><DL></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.<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.<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">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.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The Attribute containing the string value to add.<DD><CODE>int</CODE> - index the index of the string value in the source attribute.<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="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.<DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</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"><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></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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