📄 distribution.html
字号:
<A NAME="del(int, weka.core.Instance)"><!-- --></A><H3>del</H3><PRE>public final void <B>del</B>(int bagIndex, <A HREF="../../../weka/core/Instance.html">Instance</A> instance) throws java.lang.Exception</PRE><DL><DD>Deletes given instance from given bag.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="delRange(int, weka.core.Instances, int, int)"><!-- --></A><H3>delRange</H3><PRE>public final void <B>delRange</B>(int bagIndex, <A HREF="../../../weka/core/Instances.html">Instances</A> source, int startIndex, int lastPlusOne) throws java.lang.Exception</PRE><DL><DD>Deletes all instances in given range from given bag.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="dumpDistribution()"><!-- --></A><H3>dumpDistribution</H3><PRE>public final java.lang.String <B>dumpDistribution</B>()</PRE><DL><DD>Prints distribution.<DD><DL></DL></DD></DL><HR><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public final void <B>initialize</B>()</PRE><DL><DD>Sets all counts to zero.<DD><DL></DL></DD></DL><HR><A NAME="matrix()"><!-- --></A><H3>matrix</H3><PRE>public final double[][] <B>matrix</B>()</PRE><DL><DD>Returns matrix with distribution of class values.<DD><DL></DL></DD></DL><HR><A NAME="maxBag()"><!-- --></A><H3>maxBag</H3><PRE>public final int <B>maxBag</B>()</PRE><DL><DD>Returns index of bag containing maximum number of instances.<DD><DL></DL></DD></DL><HR><A NAME="maxClass()"><!-- --></A><H3>maxClass</H3><PRE>public final int <B>maxClass</B>()</PRE><DL><DD>Returns class with highest frequency over all bags.<DD><DL></DL></DD></DL><HR><A NAME="maxClass(int)"><!-- --></A><H3>maxClass</H3><PRE>public final int <B>maxClass</B>(int index)</PRE><DL><DD>Returns class with highest frequency for given bag.<DD><DL></DL></DD></DL><HR><A NAME="numBags()"><!-- --></A><H3>numBags</H3><PRE>public final int <B>numBags</B>()</PRE><DL><DD>Returns number of bags.<DD><DL></DL></DD></DL><HR><A NAME="numClasses()"><!-- --></A><H3>numClasses</H3><PRE>public final int <B>numClasses</B>()</PRE><DL><DD>Returns number of classes.<DD><DL></DL></DD></DL><HR><A NAME="numCorrect()"><!-- --></A><H3>numCorrect</H3><PRE>public final double <B>numCorrect</B>()</PRE><DL><DD>Returns perClass(maxClass()).<DD><DL></DL></DD></DL><HR><A NAME="numCorrect(int)"><!-- --></A><H3>numCorrect</H3><PRE>public final double <B>numCorrect</B>(int index)</PRE><DL><DD>Returns perClassPerBag(index,maxClass(index)).<DD><DL></DL></DD></DL><HR><A NAME="numIncorrect()"><!-- --></A><H3>numIncorrect</H3><PRE>public final double <B>numIncorrect</B>()</PRE><DL><DD>Returns total-numCorrect().<DD><DL></DL></DD></DL><HR><A NAME="numIncorrect(int)"><!-- --></A><H3>numIncorrect</H3><PRE>public final double <B>numIncorrect</B>(int index)</PRE><DL><DD>Returns perBag(index)-numCorrect(index).<DD><DL></DL></DD></DL><HR><A NAME="perClassPerBag(int, int)"><!-- --></A><H3>perClassPerBag</H3><PRE>public final double <B>perClassPerBag</B>(int bagIndex, int classIndex)</PRE><DL><DD>Returns number of (possibly fractional) instances of given class in given bag.<DD><DL></DL></DD></DL><HR><A NAME="perBag(int)"><!-- --></A><H3>perBag</H3><PRE>public final double <B>perBag</B>(int bagIndex)</PRE><DL><DD>Returns number of (possibly fractional) instances in given bag.<DD><DL></DL></DD></DL><HR><A NAME="perClass(int)"><!-- --></A><H3>perClass</H3><PRE>public final double <B>perClass</B>(int classIndex)</PRE><DL><DD>Returns number of (possibly fractional) instances of given class.<DD><DL></DL></DD></DL><HR><A NAME="laplaceProb(int)"><!-- --></A><H3>laplaceProb</H3><PRE>public final double <B>laplaceProb</B>(int classIndex)</PRE><DL><DD>Returns relative frequency of class over all bags with Laplace correction.<DD><DL></DL></DD></DL><HR><A NAME="laplaceProb(int, int)"><!-- --></A><H3>laplaceProb</H3><PRE>public final double <B>laplaceProb</B>(int classIndex, int intIndex)</PRE><DL><DD>Returns relative frequency of class for given bag.<DD><DL></DL></DD></DL><HR><A NAME="prob(int)"><!-- --></A><H3>prob</H3><PRE>public final double <B>prob</B>(int classIndex)</PRE><DL><DD>Returns relative frequency of class over all bags.<DD><DL></DL></DD></DL><HR><A NAME="prob(int, int)"><!-- --></A><H3>prob</H3><PRE>public final double <B>prob</B>(int classIndex, int intIndex)</PRE><DL><DD>Returns relative frequency of class for given bag.<DD><DL></DL></DD></DL><HR><A NAME="subtract(weka.classifiers.j48.Distribution)"><!-- --></A><H3>subtract</H3><PRE>public final <A HREF="../../../weka/classifiers/j48/Distribution.html">Distribution</A> <B>subtract</B>(<A HREF="../../../weka/classifiers/j48/Distribution.html">Distribution</A> toSubstract)</PRE><DL><DD>Subtracts the given distribution from this one. The results has only one bag.<DD><DL></DL></DD></DL><HR><A NAME="total()"><!-- --></A><H3>total</H3><PRE>public final double <B>total</B>()</PRE><DL><DD>Returns total number of (possibly fractional) instances.<DD><DL></DL></DD></DL><HR><A NAME="shift(int, int, weka.core.Instance)"><!-- --></A><H3>shift</H3><PRE>public final void <B>shift</B>(int from, int to, <A HREF="../../../weka/core/Instance.html">Instance</A> instance) throws java.lang.Exception</PRE><DL><DD>Shifts given instance from one bag to another one.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="shiftRange(int, int, weka.core.Instances, int, int)"><!-- --></A><H3>shiftRange</H3><PRE>public final void <B>shiftRange</B>(int from, int to, <A HREF="../../../weka/core/Instances.html">Instances</A> source, int startIndex, int lastPlusOne) throws java.lang.Exception</PRE><DL><DD>Shifts all instances in given range from one bag to another one.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</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/j48/ClassifierTree.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/classifiers/j48/EntropyBasedSplitCrit.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="Distribution.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 + -