📄 testinstances.html
字号:
<BR> returns the current number of numeric attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getNumRelational()">getNumRelational</A></B>()</CODE><BR> returns the current number of relational attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getNumRelationalDate()">getNumRelationalDate</A></B>()</CODE><BR> returns the current number of date attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getNumRelationalNominal()">getNumRelationalNominal</A></B>()</CODE><BR> returns the current number of nominal attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getNumRelationalNominalValues()">getNumRelationalNominalValues</A></B>()</CODE><BR> returns the current number of values for nominal attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getNumRelationalNumeric()">getNumRelationalNumeric</A></B>()</CODE><BR> returns the current number of numeric attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getNumRelationalString()">getNumRelationalString</A></B>()</CODE><BR> returns the current number of string attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getNumString()">getNumString</A></B>()</CODE><BR> returns the current number of string attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getOptions()">getOptions</A></B>()</CODE><BR> Gets the current settings of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getRelation()">getRelation</A></B>()</CODE><BR> returns the current name of the relation</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getRelationalClassFormat()">getRelationalClassFormat</A></B>()</CODE><BR> returns the current strcuture of the relational class attribute, can be null</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getRelationalFormat(int)">getRelationalFormat</A></B>(int index)</CODE><BR> returns the format for the specified relational attribute, can be null</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getRevision()">getRevision</A></B>()</CODE><BR> Returns the revision string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getSeed()">getSeed</A></B>()</CODE><BR> returns the current seed value</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getWords()">getWords</A></B>()</CODE><BR> returns the words used for assembling strings in a comma-separated list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#getWordSeparators()">getWordSeparators</A></B>()</CODE><BR> returns the word separators (chars) to use for assembling strings.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#listOptions()">listOptions</A></B>()</CODE><BR> Returns an enumeration describing the available options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE><BR> for running the class from commandline, prints the generated data to stdout</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setClassIndex(int)">setClassIndex</A></B>(int value)</CODE><BR> sets the class index (0-based)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setClassType(int)">setClassType</A></B>(int value)</CODE><BR> sets the class attribute type</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setHandler(weka.core.CapabilitiesHandler)">setHandler</A></B>(<A HREF="../../weka/core/CapabilitiesHandler.html" title="interface in weka.core">CapabilitiesHandler</A> value)</CODE><BR> sets the Capabilities handler to generate the data for</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setMultiInstance(boolean)">setMultiInstance</A></B>(boolean value)</CODE><BR> sets whether multi-instance data should be generated (with a fixed data structure)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNoClass(boolean)">setNoClass</A></B>(boolean value)</CODE><BR> whether to have no class, e.g., for clusterers; otherwise the class attribute index is set to last</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumClasses(int)">setNumClasses</A></B>(int value)</CODE><BR> sets the number of classes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumDate(int)">setNumDate</A></B>(int value)</CODE><BR> sets the number of date attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumInstances(int)">setNumInstances</A></B>(int value)</CODE><BR> sets the number of instances to produce</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumInstancesRelational(int)">setNumInstancesRelational</A></B>(int value)</CODE><BR> sets the number of instances in relational/bag attributes to produce</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumNominal(int)">setNumNominal</A></B>(int value)</CODE><BR> sets the number of nominal attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumNominalValues(int)">setNumNominalValues</A></B>(int value)</CODE><BR> sets the number of values for nominal attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumNumeric(int)">setNumNumeric</A></B>(int value)</CODE><BR> sets the number of numeric attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumRelational(int)">setNumRelational</A></B>(int value)</CODE><BR> sets the number of relational attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumRelationalDate(int)">setNumRelationalDate</A></B>(int value)</CODE><BR> sets the number of date attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumRelationalNominal(int)">setNumRelationalNominal</A></B>(int value)</CODE><BR> sets the number of nominal attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumRelationalNominalValues(int)">setNumRelationalNominalValues</A></B>(int value)</CODE><BR> sets the number of values for nominal attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumRelationalNumeric(int)">setNumRelationalNumeric</A></B>(int value)</CODE><BR> sets the number of numeric attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumRelationalString(int)">setNumRelationalString</A></B>(int value)</CODE><BR> sets the number of string attributes in a relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setNumString(int)">setNumString</A></B>(int value)</CODE><BR> sets the number of string attributes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setOptions(java.lang.String[])">setOptions</A></B>(java.lang.String[] options)</CODE><BR> Parses a given list of options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setRelation(java.lang.String)">setRelation</A></B>(java.lang.String value)</CODE><BR> sets the name of the relation</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setRelationalClassFormat(weka.core.Instances)">setRelationalClassFormat</A></B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> value)</CODE><BR> sets the structure for the relational class attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setRelationalFormat(int, weka.core.Instances)">setRelationalFormat</A></B>(int index, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> value)</CODE><BR> sets the structure for the bags for the relational attribute</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setSeed(int)">setSeed</A></B>(int value)</CODE><BR> sets the seed value for the random number generator</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setWords(java.lang.String)">setWords</A></B>(java.lang.String value)</CODE><BR> Sets the comma-separated list of words to use for generating strings.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#setWordSeparators(java.lang.String)">setWordSeparators</A></B>(java.lang.String value)</CODE><BR> sets the word separators (chars) to use for assembling strings.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/TestInstances.html#toString()">toString</A></B>()</CODE><BR> returns a string representation of the object</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="CLASS_IS_LAST"><!-- --></A><H3>CLASS_IS_LAST</H3><PRE>public static final int <B>CLASS_IS_LAST</B></PRE><DL><DD>can be used for settting the class attribute index to last<P><DL><DT><B>See Also:</B><DD><A HREF="../../weka/core/TestInstances.html#setClassIndex(int)"><CODE>setClassIndex(int)</CODE></A>, <A HREF="../../constant-values.html#weka.core.TestInstances.CLASS_IS_LAST">Constant Field Values</A></DL></DL><HR><A NAME="NO_CLASS"><!-- --></A><H3>NO_CLASS</H3><PRE>public static final int <B>NO_CLASS</B></PRE><DL><DD>can be used to avoid generating a class attribute<P><DL><DT><B>See Also:</B><DD><A HREF="../../weka/core/TestInstances.html#setClassIndex(int)"><CODE>setClassIndex(int)</CODE></A>,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -