📄 estimatorutils.html
字号:
<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="EstimatorUtils()"><!-- --></A><H3>EstimatorUtils</H3><PRE>public <B>EstimatorUtils</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="findMinDistance(weka.core.Instances, int)"><!-- --></A><H3>findMinDistance</H3><PRE>public static double <B>findMinDistance</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> inst, int attrIndex)</PRE><DL><DD>Find the minimum distance between values<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - sorted instances, sorted<DD><CODE>attrIndex</CODE> - index of the attribute, they are sorted after<DT><B>Returns:</B><DD>the minimal distance</DL></DD></DL><HR><A NAME="getMinMax(weka.core.Instances, int, double[])"><!-- --></A><H3>getMinMax</H3><PRE>public static int <B>getMinMax</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> inst, int attrIndex, double[] minMax) throws java.lang.Exception</PRE><DL><DD>Find the minimum and the maximum of the attribute and return it in the last parameter..<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - instances used to build the estimator<DD><CODE>attrIndex</CODE> - index of the attribute<DD><CODE>minMax</CODE> - the array to return minimum and maximum in<DT><B>Returns:</B><DD>number of not missing values<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if parameter minMax wasn't initialized properly</DL></DD></DL><HR><A NAME="getInstancesFromClass(weka.core.Instances, int, int, double, weka.core.Instances)"><!-- --></A><H3>getInstancesFromClass</H3><PRE>public static java.util.Vector <B>getInstancesFromClass</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, int attrIndex, int classIndex, double classValue, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> workData)</PRE><DL><DD>Returns a dataset that contains all instances of a certain class value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - dataset to select the instances from<DD><CODE>attrIndex</CODE> - index of the relevant attribute<DD><CODE>classIndex</CODE> - index of the class attribute<DD><CODE>classValue</CODE> - the relevant class value<DT><B>Returns:</B><DD>a dataset with only</DL></DD></DL><HR><A NAME="getInstancesFromClass(weka.core.Instances, int, double)"><!-- --></A><H3>getInstancesFromClass</H3><PRE>public static <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getInstancesFromClass</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, int classIndex, double classValue)</PRE><DL><DD>Returns a dataset that contains of all instances of a certain class value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - dataset to select the instances from<DD><CODE>classIndex</CODE> - index of the class attribute<DD><CODE>classValue</CODE> - the class value<DT><B>Returns:</B><DD>a dataset with only instances of one class value</DL></DD></DL><HR><A NAME="writeCurve(java.lang.String, weka.estimators.Estimator, double, double, int)"><!-- --></A><H3>writeCurve</H3><PRE>public static void <B>writeCurve</B>(java.lang.String f, <A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A> est, double min, double max, int numPoints) throws java.lang.Exception</PRE><DL><DD>Output of an n points of a density curve. Filename is parameter f + ".curv".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - string to build filename<DD><CODE>est</CODE> - <DD><CODE>min</CODE> - <DD><CODE>max</CODE> - <DD><CODE>numPoints</CODE> - <DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="writeCurve(java.lang.String, weka.estimators.Estimator, weka.estimators.Estimator, double, double, double, int)"><!-- --></A><H3>writeCurve</H3><PRE>public static void <B>writeCurve</B>(java.lang.String f, <A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A> est, <A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A> classEst, double classIndex, double min, double max, int numPoints) throws java.lang.Exception</PRE><DL><DD>Output of an n points of a density curve. Filename is parameter f + ".curv".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - string to build filename<DD><CODE>est</CODE> - <DD><CODE>classEst</CODE> - <DD><CODE>classIndex</CODE> - <DD><CODE>min</CODE> - <DD><CODE>max</CODE> - <DD><CODE>numPoints</CODE> - <DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="getInstancesFromValue(weka.core.Instances, int, double)"><!-- --></A><H3>getInstancesFromValue</H3><PRE>public static <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getInstancesFromValue</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, int index, double v)</PRE><DL><DD>Returns a dataset that contains of all instances of a certain value for the given attribute.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - dataset to select the instances from<DD><CODE>index</CODE> - the index of the attribute<DD><CODE>v</CODE> - the value<DT><B>Returns:</B><DD>a subdataset with only instances of one value for the attribute</DL></DD></DL><HR><A NAME="cutpointsToString(double[], boolean[])"><!-- --></A><H3>cutpointsToString</H3><PRE>public static java.lang.String <B>cutpointsToString</B>(double[] cutPoints, boolean[] cutAndLeft)</PRE><DL><DD>Returns a string representing the cutpoints<P><DD><DL></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/estimators/Estimator.html" title="class in weka.estimators"><B>PREV CLASS</B></A> <A HREF="../../weka/estimators/IncrementalEstimator.html" title="interface in weka.estimators"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/estimators/EstimatorUtils.html" target="_top"><B>FRAMES</B></A> <A HREF="EstimatorUtils.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 + -