📄 referenceinstances.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/classifiers/adtree/ReferenceInstances.html#addReference(weka.core.Instance)">addReference</A></B>(<A HREF="../../../weka/core/Instance.html">Instance</A> instance)</CODE><BR> Adds one instance reference to the end of the set.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.core.Instances"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.core.<A HREF="../../../weka/core/Instances.html">Instances</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../weka/core/Instances.html#add(weka.core.Instance)">add</A>, <A HREF="../../../weka/core/Instances.html#attribute(int)">attribute</A>, <A HREF="../../../weka/core/Instances.html#attribute(java.lang.String)">attribute</A>, <A HREF="../../../weka/core/Instances.html#attributeStats(int)">attributeStats</A>, <A HREF="../../../weka/core/Instances.html#attributeToDoubleArray(int)">attributeToDoubleArray</A>, <A HREF="../../../weka/core/Instances.html#checkForStringAttributes()">checkForStringAttributes</A>, <A HREF="../../../weka/core/Instances.html#checkInstance(weka.core.Instance)">checkInstance</A>, <A HREF="../../../weka/core/Instances.html#classAttribute()">classAttribute</A>, <A HREF="../../../weka/core/Instances.html#classIndex()">classIndex</A>, <A HREF="../../../weka/core/Instances.html#compactify()">compactify</A>, <A HREF="../../../weka/core/Instances.html#delete()">delete</A>, <A HREF="../../../weka/core/Instances.html#delete(int)">delete</A>, <A HREF="../../../weka/core/Instances.html#deleteAttributeAt(int)">deleteAttributeAt</A>, <A HREF="../../../weka/core/Instances.html#deleteStringAttributes()">deleteStringAttributes</A>, <A HREF="../../../weka/core/Instances.html#deleteWithMissing(weka.core.Attribute)">deleteWithMissing</A>, <A HREF="../../../weka/core/Instances.html#deleteWithMissing(int)">deleteWithMissing</A>, <A HREF="../../../weka/core/Instances.html#deleteWithMissingClass()">deleteWithMissingClass</A>, <A HREF="../../../weka/core/Instances.html#enumerateAttributes()">enumerateAttributes</A>, <A HREF="../../../weka/core/Instances.html#enumerateInstances()">enumerateInstances</A>, <A HREF="../../../weka/core/Instances.html#equalHeaders(weka.core.Instances)">equalHeaders</A>, <A HREF="../../../weka/core/Instances.html#firstInstance()">firstInstance</A>, <A HREF="../../../weka/core/Instances.html#getInstance(java.io.StreamTokenizer, boolean)">getInstance</A>, <A HREF="../../../weka/core/Instances.html#getInstanceFull(java.io.StreamTokenizer, boolean)">getInstanceFull</A>, <A HREF="../../../weka/core/Instances.html#getInstanceSparse(java.io.StreamTokenizer, boolean)">getInstanceSparse</A>, <A HREF="../../../weka/core/Instances.html#insertAttributeAt(weka.core.Attribute, int)">insertAttributeAt</A>, <A HREF="../../../weka/core/Instances.html#instance(int)">instance</A>, <A HREF="../../../weka/core/Instances.html#lastInstance()">lastInstance</A>, <A HREF="../../../weka/core/Instances.html#main(java.lang.String[])">main</A>, <A HREF="../../../weka/core/Instances.html#meanOrMode(weka.core.Attribute)">meanOrMode</A>, <A HREF="../../../weka/core/Instances.html#meanOrMode(int)">meanOrMode</A>, <A HREF="../../../weka/core/Instances.html#mergeInstances(weka.core.Instances, weka.core.Instances)">mergeInstances</A>, <A HREF="../../../weka/core/Instances.html#numAttributes()">numAttributes</A>, <A HREF="../../../weka/core/Instances.html#numClasses()">numClasses</A>, <A HREF="../../../weka/core/Instances.html#numDistinctValues(weka.core.Attribute)">numDistinctValues</A>, <A HREF="../../../weka/core/Instances.html#numDistinctValues(int)">numDistinctValues</A>, <A HREF="../../../weka/core/Instances.html#numInstances()">numInstances</A>, <A HREF="../../../weka/core/Instances.html#randomize(java.util.Random)">randomize</A>, <A HREF="../../../weka/core/Instances.html#readHeader(java.io.StreamTokenizer)">readHeader</A>, <A HREF="../../../weka/core/Instances.html#readInstance(java.io.Reader)">readInstance</A>, <A HREF="../../../weka/core/Instances.html#relationName()">relationName</A>, <A HREF="../../../weka/core/Instances.html#renameAttribute(weka.core.Attribute, java.lang.String)">renameAttribute</A>, <A HREF="../../../weka/core/Instances.html#renameAttribute(int, java.lang.String)">renameAttribute</A>, <A HREF="../../../weka/core/Instances.html#renameAttributeValue(weka.core.Attribute, java.lang.String, java.lang.String)">renameAttributeValue</A>, <A HREF="../../../weka/core/Instances.html#renameAttributeValue(int, int, java.lang.String)">renameAttributeValue</A>, <A HREF="../../../weka/core/Instances.html#resample(java.util.Random)">resample</A>, <A HREF="../../../weka/core/Instances.html#resampleWithWeights(java.util.Random)">resampleWithWeights</A>, <A HREF="../../../weka/core/Instances.html#resampleWithWeights(java.util.Random, double[])">resampleWithWeights</A>, <A HREF="../../../weka/core/Instances.html#setClass(weka.core.Attribute)">setClass</A>, <A HREF="../../../weka/core/Instances.html#setClassIndex(int)">setClassIndex</A>, <A HREF="../../../weka/core/Instances.html#setRelationName(java.lang.String)">setRelationName</A>, <A HREF="../../../weka/core/Instances.html#sort(weka.core.Attribute)">sort</A>, <A HREF="../../../weka/core/Instances.html#sort(int)">sort</A>, <A HREF="../../../weka/core/Instances.html#stratify(int)">stratify</A>, <A HREF="../../../weka/core/Instances.html#stringFreeStructure()">stringFreeStructure</A>, <A HREF="../../../weka/core/Instances.html#sumOfWeights()">sumOfWeights</A>, <A HREF="../../../weka/core/Instances.html#test(java.lang.String[])">test</A>, <A HREF="../../../weka/core/Instances.html#testCV(int, int)">testCV</A>, <A HREF="../../../weka/core/Instances.html#toString()">toString</A>, <A HREF="../../../weka/core/Instances.html#toSummaryString()">toSummaryString</A>, <A HREF="../../../weka/core/Instances.html#trainCV(int, int)">trainCV</A>, <A HREF="../../../weka/core/Instances.html#variance(weka.core.Attribute)">variance</A>, <A HREF="../../../weka/core/Instances.html#variance(int)">variance</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="ReferenceInstances(weka.core.Instances, int)"><!-- --></A><H3>ReferenceInstances</H3><PRE>public <B>ReferenceInstances</B>(<A HREF="../../../weka/core/Instances.html">Instances</A> dataset, int capacity)</PRE><DL><DD>Creates an empty set of instances.<DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the instances to get the header information from<DD><CODE>capacity</CODE> - the initial storage capacity of the set</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="addReference(weka.core.Instance)"><!-- --></A><H3>addReference</H3><PRE>public final void <B>addReference</B>(<A HREF="../../../weka/core/Instance.html">Instance</A> instance)</PRE><DL><DD>Adds one instance reference to the end of the set. Does not copy instance before it is added. Increases the size of the dataset if it is not large enough. Does not check if the instance is compatible with the dataset.<DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to be added</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> </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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../weka/classifiers/adtree/PredictionNode.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/classifiers/adtree/Splitter.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> <A HREF="ReferenceInstances.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_weka.core.Instances">FIELD</A> | <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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -