cumulativediscretedistribution.html
来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 480 行 · 第 1/2 页
HTML
480 行
<A NAME="CumulativeDiscreteDistribution(weka.estimators.DiscreteEstimator)"><!-- --></A><H3>CumulativeDiscreteDistribution</H3><PRE>public <B>CumulativeDiscreteDistribution</B>(<A HREF="../../../../weka/estimators/DiscreteEstimator.html" title="class in weka.estimators">DiscreteEstimator</A> e)</PRE><DL><DD>Create a discrete cumulative probability distribution based on a <code> DiscreteEstimator. </code><P><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the <code> DiscreteEstimator </code> on which the cumulative probability distribution will be based</DL></DL><HR><A NAME="CumulativeDiscreteDistribution(weka.classifiers.misc.monotone.DiscreteDistribution)"><!-- --></A><H3>CumulativeDiscreteDistribution</H3><PRE>public <B>CumulativeDiscreteDistribution</B>(<A HREF="../../../../weka/classifiers/misc/monotone/DiscreteDistribution.html" title="class in weka.classifiers.misc.monotone">DiscreteDistribution</A> d)</PRE><DL><DD>Create a <code> CumulativeDiscreteDistribution </code> based on a <code> DiscreteDistribution. </code><P><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the <code> DiscreteDistribution </code> on which the cumulative probability distribution will be based</DL></DL><HR><A NAME="CumulativeDiscreteDistribution(double[])"><!-- --></A><H3>CumulativeDiscreteDistribution</H3><PRE>public <B>CumulativeDiscreteDistribution</B>(double[] cdf) throws java.lang.IllegalArgumentException</PRE><DL><DD>Create a <code> CumulativeDiscreteDistribution </code> based on an array of doubles. The array <code> cdf </code> is copied, so the caller can reuse the same array.<P><DL><DT><B>Parameters:</B><DD><CODE>cdf</CODE> - an array that represents a valid discrete cumulative probability distribution<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the array doesn't represent a valid cumulative discrete distribution function</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 cumulative probability distribution is defined.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of elements over which the cumulative probability distribution is defined.</DL></DD></DL><HR><A NAME="getCumulativeProbability(int)"><!-- --></A><H3>getCumulativeProbability</H3><PRE>public double <B>getCumulativeProbability</B>(int index)</PRE><DL><DD>Get the probability of finding an element smaller or equal than <code> index. </code><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the required index<DT><B>Returns:</B><DD>the probability of finding an element <= index</DL></DD></DL><HR><A NAME="toArray()"><!-- --></A><H3>toArray</H3><PRE>public double[] <B>toArray</B>()</PRE><DL><DD>Get an array representation of the cumulative probability distribution.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of doubles representing the cumulative probability distribution</DL></DD></DL><HR><A NAME="stochasticDominatedBy(weka.classifiers.misc.monotone.CumulativeDiscreteDistribution)"><!-- --></A><H3>stochasticDominatedBy</H3><PRE>public boolean <B>stochasticDominatedBy</B>(<A HREF="../../../../weka/classifiers/misc/monotone/CumulativeDiscreteDistribution.html" title="class in weka.classifiers.misc.monotone">CumulativeDiscreteDistribution</A> cdf) throws java.lang.IllegalArgumentException</PRE><DL><DD>Returns if <code> this </code> is dominated by <code> cdf. </code> This means that we check if, for all indices <code> i </code>, it holds that <code> this.getProbability(i) >= cdf.getProbability(i). </code><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cdf</CODE> - the <code> CumulativeDiscreteDistribution </code> <code> this </code> is compared to<DT><B>Returns:</B><DD><code> true </code> if <code> this </code> is dominated by <code> cdf </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><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object o)</PRE><DL><DD>Indicates if the object <code> o </code> equals <code> this. </code> Note: for practical reasons I was forced to use a small tolerance whilst comparing the distributions, meaning that the transitivity property of <code> equals </code> is not guaranteed.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the reference object with which to compare<DT><B>Returns:</B><DD><code> true </code> if <code> o </code> equals <code> this, </code> <code> false </code> otherwise</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 cumulative probability distribution.<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 the distribution.</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/Coordinates.html" title="class in weka.classifiers.misc.monotone"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/misc/monotone/DiscreteDistribution.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/CumulativeDiscreteDistribution.html" target="_top"><B>FRAMES</B></A> <A HREF="CumulativeDiscreteDistribution.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 + -
显示快捷键?