discretedistribution.html
来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 508 行 · 第 1/2 页
HTML
508 行
</TABLE><A NAME="DiscreteDistribution(weka.estimators.DiscreteEstimator)"><!-- --></A><H3>DiscreteDistribution</H3><PRE>public <B>DiscreteDistribution</B>(<A HREF="../../../../weka/estimators/DiscreteEstimator.html" title="class in weka.estimators">DiscreteEstimator</A> e)</PRE><DL><DD>Create a <code> DiscreteDistribution </code> based on a <code> DiscreteEstimator. </code><P><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the <code> DiscreteEstimator </code></DL></DL><HR><A NAME="DiscreteDistribution(weka.classifiers.misc.monotone.CumulativeDiscreteDistribution)"><!-- --></A><H3>DiscreteDistribution</H3><PRE>public <B>DiscreteDistribution</B>(<A HREF="../../../../weka/classifiers/misc/monotone/CumulativeDiscreteDistribution.html" title="class in weka.classifiers.misc.monotone">CumulativeDiscreteDistribution</A> cdf)</PRE><DL><DD>Create a <code> DiscreteDistribution </code> based on a <code> CumulativeDiscreteDistribution. </code><P><DL><DT><B>Parameters:</B><DD><CODE>cdf</CODE> - the <code> CumulativeDiscreteDistribution </code></DL></DL><HR><A NAME="DiscreteDistribution(double[])"><!-- --></A><H3>DiscreteDistribution</H3><PRE>public <B>DiscreteDistribution</B>(double[] dd) throws java.lang.IllegalArgumentException</PRE><DL><DD>Create a <code> DiscreteDistribution </code> based on an array of doubles.<P><DL><DT><B>Parameters:</B><DD><CODE>dd</CODE> - the array of doubles representing a valid discrete distribution<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code> dd </code> does not represent a valid discrete distribution</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="getNumSymbols()"><!-- --></A><H3>getNumSymbols</H3><PRE>public int <B>getNumSymbols</B>()</PRE><DL><DD>Get the number of elements over which the <code> DiscreteDistribution </code> is defined.<P><DD><DL><DT><B>Returns:</B><DD>the number of elements over which the <code> DiscreteDistribution </code> is defined</DL></DD></DL><HR><A NAME="getProbability(int)"><!-- --></A><H3>getProbability</H3><PRE>public double <B>getProbability</B>(int index)</PRE><DL><DD>Get the probability of finding the element at a specified index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the required element<DT><B>Returns:</B><DD>the probability of finding the specified element</DL></DD></DL><HR><A NAME="mean()"><!-- --></A><H3>mean</H3><PRE>public double <B>mean</B>()</PRE><DL><DD>Calculate the mean of the distribution. The scores for calculating the mean start from 0 and have step size one, i.e. if there are n elements then the scores are 0,1,...,n-1.<P><DD><DL><DT><B>Returns:</B><DD>the mean of the distribution</DL></DD></DL><HR><A NAME="median()"><!-- --></A><H3>median</H3><PRE>public double <B>median</B>()</PRE><DL><DD>Calculate the median of the distribution. This means the following: if there is a label m such that P(x <= m) >= ½ and P(x >= m) >= ½ then this label is returned. If there is no such label, an interpolation between the smallest label satisfying the first condition and the largest label satisfying the second condition is performed. The returned value is thus either an element label, or exactly between two element labels.<P><DD><DL><DT><B>Returns:</B><DD>the median of the distribution.</DL></DD></DL><HR><A NAME="modes()"><!-- --></A><H3>modes</H3><PRE>public int[] <B>modes</B>()</PRE><DL><DD>Get a sorted array containing the indices of the elements with maximal probability.<P><DD><DL><DT><B>Returns:</B><DD>an array of class indices with maximal probability.</DL></DD></DL><HR><A NAME="toArray()"><!-- --></A><H3>toArray</H3><PRE>public double[] <B>toArray</B>()</PRE><DL><DD>Convert the <code> DiscreteDistribution </code> to an array of doubles.<P><DD><DL><DT><B>Returns:</B><DD>an array of doubles representing the <code> DiscreteDistribution </code></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Get a string representation of the given <code> DiscreteDistribution. </code><P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of this object</DL></DD></DL><HR><A NAME="stochasticDominatedBy(weka.classifiers.misc.monotone.DiscreteDistribution)"><!-- --></A><H3>stochasticDominatedBy</H3><PRE>public boolean <B>stochasticDominatedBy</B>(<A HREF="../../../../weka/classifiers/misc/monotone/DiscreteDistribution.html" title="class in weka.classifiers.misc.monotone">DiscreteDistribution</A> dd) throws java.lang.IllegalArgumentException</PRE><DL><DD>Checks if <code> this </code> is dominated by <code> dd. </code><P><DD><DL><DT><B>Parameters:</B><DD><CODE>dd</CODE> - the DiscreteDistribution to compare to<DT><B>Returns:</B><DD><code> true </code> if <code> this </code> is dominated by <code> dd </code>, <code> false </code> otherwise<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the two distributions don't have the same length</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/classifiers/misc/monotone/CumulativeDiscreteDistribution.html" title="class in weka.classifiers.misc.monotone"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/misc/monotone/DistributionUtils.html" title="class in weka.classifiers.misc.monotone"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?weka/classifiers/misc/monotone/DiscreteDistribution.html" target="_top"><B>FRAMES</B></A> <A HREF="DiscreteDistribution.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 + =
减小字号Ctrl + -
显示快捷键?