📄 attributespecs.html
字号:
public <B>AttributeSpecs</B>(java.lang.String name, <A HREF="../../jbnc/dataset/AttributeType.html" title="class in jbnc.dataset">AttributeType</A> type) throws <A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></PRE><DL><DD>Can create attribute with type CONTINUOUS or IGNORE.<P><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.<DD><CODE>type</CODE> - Type of the attribute (CONTINUOUS or IGNORE).<DT><B>Throws:</B><DD><CODE><A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></CODE> - Attribute type is neither CONTINUOUS nor IGNORE.</DL></DL><HR><A NAME="AttributeSpecs(java.lang.String, java.lang.String[])"><!-- --></A><H3>AttributeSpecs</H3><PRE>public <B>AttributeSpecs</B>(java.lang.String name, java.lang.String[] states)</PRE><DL><DD>Creates a DISCRETE attribute.<P><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.<DD><CODE>states</CODE> - States of the discrete attribute.</DL></DL><HR><A NAME="AttributeSpecs(java.lang.String, int)"><!-- --></A><H3>AttributeSpecs</H3><PRE>public <B>AttributeSpecs</B>(java.lang.String name, int n) throws <A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></PRE><DL><DD>Creates a disctete attribute with <tt>n</tt> states (DISCRETE_N).<P><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.<DD><CODE>n</CODE> - Number of discrete values represented by the attribute (from 0 to n-1).<DT><B>Throws:</B><DD><CODE><A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></CODE> - <tt>type</tt> is not equal to DISCRETE_N.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(java.lang.String name)</PRE><DL><DD>Set attribute name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The new Name value</DL></DD></DL><HR><A NAME="setType(jbnc.dataset.AttributeType)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(<A HREF="../../jbnc/dataset/AttributeType.html" title="class in jbnc.dataset">AttributeType</A> type)</PRE><DL><DD>Set attribute type.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The new Type value</DL></DD></DL><HR><A NAME="setType(jbnc.dataset.AttributeType, int)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(<A HREF="../../jbnc/dataset/AttributeType.html" title="class in jbnc.dataset">AttributeType</A> type, int n) throws <A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></PRE><DL><DD>Set attribute type to DISCRETE_N and specify number of states <code>n</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - Attriute byte type. Has to be DESCRETE_N.<DD><CODE>n</CODE> - Number of discrete values represented by the attribute (from 0 to n-1).<DT><B>Throws:</B><DD><CODE><A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></CODE> - <tt>type</tt> is not equal to DISCRETE_N.<DD><CODE><A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></CODE> - <tt>n</tt> is less then one.</DL></DD></DL><HR><A NAME="setStates(java.lang.String[])"><!-- --></A><H3>setStates</H3><PRE>public void <B>setStates</B>(java.lang.String[] states) throws <A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></PRE><DL><DD>Set states of a discrete attribute. Throws exception of the attribute is not discrete.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>states</CODE> - The new States value<DT><B>Throws:</B><DD><CODE><A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></CODE> - Description of Exception</DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Get attribute name.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The Name value</DL></DD></DL><HR><A NAME="getType()"><!-- --></A><H3>getType</H3><PRE>public <A HREF="../../jbnc/dataset/AttributeType.html" title="class in jbnc.dataset">AttributeType</A> <B>getType</B>()</PRE><DL><DD>Get attribute type.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The Type value</DL></DD></DL><HR><A NAME="getState(int)"><!-- --></A><H3>getState</H3><PRE>public java.lang.String <B>getState</B>(int index) throws <A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></PRE><DL><DD>Returns state name for a state with the given state index. Used for discrete attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Description of Parameter<DT><B>Returns:</B><DD>The State value<DT><B>Throws:</B><DD><CODE><A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></CODE> - Description of Exception</DL></DD></DL><HR><A NAME="getState(java.lang.String)"><!-- --></A><H3>getState</H3><PRE>public int <B>getState</B>(java.lang.String name) throws <A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></PRE><DL><DD>Returns state index for a state with the given state name. Used for discrete attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Description of Parameter<DT><B>Returns:</B><DD>The State value<DT><B>Throws:</B><DD><CODE><A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset">AttributeSpecs.AttributeException</A></CODE> - Description of Exception</DL></DD></DL><HR><A NAME="getStates()"><!-- --></A><H3>getStates</H3><PRE>public java.lang.String[] <B>getStates</B>()</PRE><DL><DD>Return states of a discrete attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The States value</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Description of the attribute type or list of attribute states (in type is DISCRETE).<P><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>Description of the Returned Value</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=2 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <a href="http://jbnc.sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=49871&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo"> </a> </EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../jbnc/dataset/AttributeSpecs.AttributeException.html" title="class in jbnc.dataset"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?jbnc/dataset/AttributeSpecs.html" target="_top"><B>FRAMES</B></A> <A HREF="AttributeSpecs.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -