📄 filter.html
字号:
<DD><DL><DT><B>Returns:</B><DD>the instance that has most recently been filtered (or null if the queue is empty).<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if no output structure has been defined</DL></DD></DL><HR><A NAME="outputPeek()"><!-- --></A><H3>outputPeek</H3><PRE>public <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>outputPeek</B>()</PRE><DL><DD>Output an instance after filtering but do not remove from the output queue.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the instance that has most recently been filtered (or null if the queue is empty).<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if no input structure has been defined</DL></DD></DL><HR><A NAME="numPendingOutput()"><!-- --></A><H3>numPendingOutput</H3><PRE>public int <B>numPendingOutput</B>()</PRE><DL><DD>Returns the number of instances pending output<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of instances pending output<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if no input structure has been defined</DL></DD></DL><HR><A NAME="isOutputFormatDefined()"><!-- --></A><H3>isOutputFormatDefined</H3><PRE>public boolean <B>isOutputFormatDefined</B>()</PRE><DL><DD>Returns whether the output format is ready to be collected<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the output format is set</DL></DD></DL><HR><A NAME="makeCopy(weka.filters.Filter)"><!-- --></A><H3>makeCopy</H3><PRE>public static <A HREF="../../weka/filters/Filter.html" title="class in weka.filters">Filter</A> <B>makeCopy</B>(<A HREF="../../weka/filters/Filter.html" title="class in weka.filters">Filter</A> model) throws java.lang.Exception</PRE><DL><DD>Creates a deep copy of the given filter using serialization.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>model</CODE> - the filter to copy<DT><B>Returns:</B><DD>a deep copy of the filter<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="makeCopies(weka.filters.Filter, int)"><!-- --></A><H3>makeCopies</H3><PRE>public static <A HREF="../../weka/filters/Filter.html" title="class in weka.filters">Filter</A>[] <B>makeCopies</B>(<A HREF="../../weka/filters/Filter.html" title="class in weka.filters">Filter</A> model, int num) throws java.lang.Exception</PRE><DL><DD>Creates a given number of deep copies of the given filter using serialization.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>model</CODE> - the filter to copy<DD><CODE>num</CODE> - the number of filter copies to create.<DT><B>Returns:</B><DD>an array of filters.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="useFilter(weka.core.Instances, weka.filters.Filter)"><!-- --></A><H3>useFilter</H3><PRE>public static <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>useFilter</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, <A HREF="../../weka/filters/Filter.html" title="class in weka.filters">Filter</A> filter) throws java.lang.Exception</PRE><DL><DD>Filters an entire set of instances through a filter and returns the new set.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to be filtered<DD><CODE>filter</CODE> - the filter to be used<DT><B>Returns:</B><DD>the filtered set of data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the filter can't be used successfully</DL></DD></DL><HR><A NAME="filterFile(weka.filters.Filter, java.lang.String[])"><!-- --></A><H3>filterFile</H3><PRE>public static void <B>filterFile</B>(<A HREF="../../weka/filters/Filter.html" title="class in weka.filters">Filter</A> filter, java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Method for testing filters.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - the filter to use<DD><CODE>options</CODE> - should contain the following arguments: <br> -i input_file <br> -o output_file <br> -c class_index <br> or -h for help on options<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong or the user requests help on command options</DL></DD></DL><HR><A NAME="batchFilterFile(weka.filters.Filter, java.lang.String[])"><!-- --></A><H3>batchFilterFile</H3><PRE>public static void <B>batchFilterFile</B>(<A HREF="../../weka/filters/Filter.html" title="class in weka.filters">Filter</A> filter, java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Method for testing filters ability to process multiple batches.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - the filter to use<DD><CODE>options</CODE> - should contain the following arguments:<br> -i (first) input file <br> -o (first) output file <br> -r (second) input file <br> -s (second) output file <br> -c class_index <br> or -h for help on options<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong or the user requests help on command options</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Main method for testing this class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - should contain arguments to the filter: use -h for help</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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</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/filters/AllFilter.html" title="class in weka.filters"><B>PREV CLASS</B></A> <A HREF="../../weka/filters/MultiFilter.html" title="class in weka.filters"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/filters/Filter.html" target="_top"><B>FRAMES</B></A> <A HREF="Filter.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: NESTED | 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 + -