📄 instancefilter.html
字号:
</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/filters/InstanceFilter.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/filters/InstanceFilter.html#main(java.lang.String[])">main</A></B>(java.lang.String[] argv)</CODE><BR> Main method for testing this class.</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/filters/InstanceFilter.html#setAttributeIndex(int)">setAttributeIndex</A></B>(int attribute)</CODE><BR> Sets attribute to be used for selection</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/filters/InstanceFilter.html#setInputFormat(weka.core.Instances)">setInputFormat</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A> instanceInfo)</CODE><BR> Sets the format of the input instances.</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/filters/InstanceFilter.html#setInvertSelection(boolean)">setInvertSelection</A></B>(boolean invert)</CODE><BR> Set whether selected values should be removed or kept.</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/filters/InstanceFilter.html#setMatchMissingValues(boolean)">setMatchMissingValues</A></B>(boolean newMatchMissingValues)</CODE><BR> Sets whether missing values are counted as a match.</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/filters/InstanceFilter.html#setModifyHeader(boolean)">setModifyHeader</A></B>(boolean newModifyHeader)</CODE><BR> Sets whether the header will be modified when selecting on 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/filters/InstanceFilter.html#setNominalIndices(java.lang.String)">setNominalIndices</A></B>(java.lang.String rangeList)</CODE><BR> Set which nominal labels are to be included in the selection.</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/filters/InstanceFilter.html#setNominalIndicesArr(int[])">setNominalIndicesArr</A></B>(int[] values)</CODE><BR> Set which values of a nominal attribute are to be used for selection.</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/filters/InstanceFilter.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/filters/InstanceFilter.html#setSplitPoint(double)">setSplitPoint</A></B>(double value)</CODE><BR> Split point to be used for selection on numeric attribute.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.filters.Filter"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.filters.<A HREF="../../weka/filters/Filter.html">Filter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/filters/Filter.html#batchFilterFile(weka.filters.Filter, java.lang.String[])">batchFilterFile</A>, <A HREF="../../weka/filters/Filter.html#batchFinished()">batchFinished</A>, <A HREF="../../weka/filters/Filter.html#bufferInput(weka.core.Instance)">bufferInput</A>, <A HREF="../../weka/filters/Filter.html#copyStringValues(weka.core.Instance, boolean, weka.core.Instances, weka.core.Instances)">copyStringValues</A>, <A HREF="../../weka/filters/Filter.html#copyStringValues(weka.core.Instance, boolean, weka.core.Instances, int[], weka.core.Instances, int[])">copyStringValues</A>, <A HREF="../../weka/filters/Filter.html#filterFile(weka.filters.Filter, java.lang.String[])">filterFile</A>, <A HREF="../../weka/filters/Filter.html#flushInput()">flushInput</A>, <A HREF="../../weka/filters/Filter.html#getInputFormat()">getInputFormat</A>, <A HREF="../../weka/filters/Filter.html#getInputStringIndex()">getInputStringIndex</A>, <A HREF="../../weka/filters/Filter.html#getOutputFormat()">getOutputFormat</A>, <A HREF="../../weka/filters/Filter.html#getOutputStringIndex()">getOutputStringIndex</A>, <A HREF="../../weka/filters/Filter.html#getStringIndices(weka.core.Instances)">getStringIndices</A>, <A HREF="../../weka/filters/Filter.html#inputFormat(weka.core.Instances)">inputFormat</A>, <A HREF="../../weka/filters/Filter.html#isOutputFormatDefined()">isOutputFormatDefined</A>, <A HREF="../../weka/filters/Filter.html#numPendingOutput()">numPendingOutput</A>, <A HREF="../../weka/filters/Filter.html#output()">output</A>, <A HREF="../../weka/filters/Filter.html#outputFormat()">outputFormat</A>, <A HREF="../../weka/filters/Filter.html#outputFormatPeek()">outputFormatPeek</A>, <A HREF="../../weka/filters/Filter.html#outputPeek()">outputPeek</A>, <A HREF="../../weka/filters/Filter.html#push(weka.core.Instance)">push</A>, <A HREF="../../weka/filters/Filter.html#resetQueue()">resetQueue</A>, <A HREF="../../weka/filters/Filter.html#setOutputFormat(weka.core.Instances)">setOutputFormat</A>, <A HREF="../../weka/filters/Filter.html#useFilter(weka.core.Instances, weka.filters.Filter)">useFilter</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, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m_AttributeSet"><!-- --></A><H3>m_AttributeSet</H3><PRE>protected int <B>m_AttributeSet</B></PRE><DL><DD>Stores the attribute setting</DL><HR><A NAME="m_Attribute"><!-- --></A><H3>m_Attribute</H3><PRE>protected int <B>m_Attribute</B></PRE><DL><DD>Stores which attribute to be used for filtering</DL><HR><A NAME="m_Values"><!-- --></A><H3>m_Values</H3><PRE>protected <A HREF="../../weka/core/Range.html">Range</A> <B>m_Values</B></PRE><DL><DD>Stores which values of nominal attribute are to be used for filtering.</DL><HR><A NAME="m_Value"><!-- --></A><H3>m_Value</H3><PRE>protected double <B>m_Value</B></PRE><DL><DD>Stores which value of a numeric attribute is to be used for filtering.</DL><HR><A NAME="m_Inverse"><!-- --></A><H3>m_Inverse</H3><PRE>protected boolean <B>m_Inverse</B></PRE><DL><DD>Inverse of test to be used?</DL><HR><A NAME="m_MatchMissingValues"><!-- --></A><H3>m_MatchMissingValues</H3><PRE>protected boolean <B>m_MatchMissingValues</B></PRE><DL><DD>True if missing values should count as a match</DL><HR><A NAME="m_ModifyHeader"><!-- --></A><H3>m_ModifyHeader</H3><PRE>protected boolean <B>m_ModifyHeader</B></PRE><DL><DD>Modify header for nominal attributes?</DL><HR><A NAME="m_NominalMapping"><!-- --></A><H3>m_NominalMapping</H3><PRE>protected int[] <B>m_NominalMapping</B></PRE><DL><DD>If m_ModifyHeader, stores a mapping from old to new indexes</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="InstanceFilter()"><!-- --></A><H3>InstanceFilter</H3><PRE>public <B>InstanceFilter</B>()</PRE><DL><DD>Default constructor</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="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#listOptions()">listOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the available options</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -C num<br> Choose attribute to be used for selection (default last).<p> -S num<br> Numeric value to be used for selection on numeric attribute. Instances with values smaller than given value will be selected. (default 0) <p> -L index1,index2-index4,...<br> Range of label indices to be used for selection on nominal attribute. First and last are valid indexes. (default all values)<p> -M <br> Missing values count as a match. This setting is independent of the -V option. (default missing values don't match)<p> -V<br> Invert matching sense.<p> -H<br> When selecting on nominal attributes, removes header references to excluded values. <p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings of the filter.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#getOptions()">getOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions</DL></DD></DL><HR><A NAME="setInputFormat(weka.core.Instances)"><!-- --></A><H3>setInputFormat</H3><PRE>public boolean <B>setInputFormat</B>(<A HREF="../../weka/core/Instances.html">Instances</A> instanceInfo) throws java.lang.Exception</PRE><DL><DD>Sets the format of the input instances.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/filters/Filter.html#setInputFormat(weka.core.Instances)">setInputFormat</A></CODE> in class <CODE><A HREF="../../weka/filters/Filter.html">Filter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instanceInfo</CODE> - an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).<DT><B>Throws:</B><DD><CODE><A HREF="../../weka/core/UnsupportedAttributeTypeException.html">UnsupportedAttributeTypeException</A></CODE> - if the specified attribute is neither numeric or nominal.</DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -