discretedistribution.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 557 行 · 第 1/2 页

HTML
557
字号
<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>&nbsp;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[]&nbsp;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></DL></DD><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&nbsp;index)</PRE><DL><DD>Get the probability of finding the element at a specified index.<P><DD><DL></DL></DD><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></DL></DD><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 &lt;= m) &gt;= &frac12; and P(x &gt;= m) &gt;= &frac12;  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></DL></DD><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></DL></DD><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></DL></DD><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>&nbsp;dd)                              throws java.lang.IllegalArgumentException</PRE><DL><DD>Checks if <code> this </code> is dominated by <code> dd. </code><P><DD><DL></DL></DD><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><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../weka/classifiers/misc/monotone/CumulativeDiscreteDistribution.html" title="class in weka.classifiers.misc.monotone"><B>PREV CLASS</B></A>&nbsp;&nbsp;<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>  &nbsp;&nbsp;<A HREF="DiscreteDistribution.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -
显示快捷键?