📄 function.html
字号:
<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="Function()"><!-- --></A><H3>Function</H3><PRE>public <B>Function</B>()</PRE><DL><DD>Constructs a function of constant value</DL><HR><A NAME="Function(weka.core.Instances)"><!-- --></A><H3>Function</H3><PRE>public <B>Function</B>(<A HREF="../../../weka/core/Instances.html">Instances</A> inst)</PRE><DL><DD>Constucts a function with all attributes except the class in the inst<DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - instances</DL></DD></DL><HR><A NAME="Function(int)"><!-- --></A><H3>Function</H3><PRE>public <B>Function</B>(int attr)</PRE><DL><DD>Constructs a function with one attribute<DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - an attribute</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="copy()"><!-- --></A><H3>copy</H3><PRE>public final <A HREF="../../../weka/classifiers/m5/Function.html">Function</A> <B>copy</B>()</PRE><DL><DD>Makes a copy of a function<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the copy of the function</DL></DD></DL><HR><A NAME="toString(weka.core.Instances, int)"><!-- --></A><H3>toString</H3><PRE>public final java.lang.String <B>toString</B>(<A HREF="../../../weka/core/Instances.html">Instances</A> inst, int startPoint) throws java.lang.Exception</PRE><DL><DD>Converts a function to a string<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - instances<DD><CODE>startPoint</CODE> - the starting point on the screen; used to feed line before reaching beyond 80 characters<DT><B>Returns:</B><DD>the converted string<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="combine(weka.classifiers.m5.Function, weka.classifiers.m5.Function)"><!-- --></A><H3>combine</H3><PRE>public static final <A HREF="../../../weka/classifiers/m5/Function.html">Function</A> <B>combine</B>(<A HREF="../../../weka/classifiers/m5/Function.html">Function</A> f1, <A HREF="../../../weka/classifiers/m5/Function.html">Function</A> f2)</PRE><DL><DD>Constructs a new function of which the variable list is a combination of those of two functions<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>f1</CODE> - function 1<DD><CODE>f2</CODE> - function 2<DT><B>Returns:</B><DD>the newly constructed function</DL></DD></DL><HR><A NAME="errors(weka.core.Instances)"><!-- --></A><H3>errors</H3><PRE>public final <A HREF="../../../weka/classifiers/m5/Errors.html">Errors</A> <B>errors</B>(<A HREF="../../../weka/core/Instances.html">Instances</A> inst) throws java.lang.Exception</PRE><DL><DD>Evaluates a function<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - instances<DT><B>Returns:</B><DD>the evaluation results<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="predict(weka.core.Instance)"><!-- --></A><H3>predict</H3><PRE>public final double <B>predict</B>(<A HREF="../../../weka/core/Instance.html">Instance</A> instance)</PRE><DL><DD>Returns the predicted value of instance i by a function<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - instance i<DD><CODE>inst</CODE> - instances<DT><B>Returns:</B><DD>the predicted value</DL></DD></DL><HR><A NAME="insignificant(double, weka.core.Instances)"><!-- --></A><H3>insignificant</H3><PRE>public final int <B>insignificant</B>(double sdy, <A HREF="../../../weka/core/Instances.html">Instances</A> inst)</PRE><DL><DD>Detects the most insignificant variable in the funcion<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sdy</CODE> - the standard deviation of the class variable<DD><CODE>inst</CODE> - instances<DT><B>Returns:</B><DD>the index of the most insignificant variable in the function</DL></DD></DL><HR><A NAME="remove(int)"><!-- --></A><H3>remove</H3><PRE>public final <A HREF="../../../weka/classifiers/m5/Function.html">Function</A> <B>remove</B>(int j)</PRE><DL><DD>Removes a term from the function<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>j</CODE> - the j-th index in the variable list in the function<DT><B>Returns:</B><DD>the new function with the term removed</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/m5/Errors.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/classifiers/m5/Impurity.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="Function.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -