maths.html

来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 894 行 · 第 1/3 页

HTML
894
字号
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#hypot(double, double)">hypot</A></B>(double&nbsp;a,      double&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sqrt(a^2 + b^2) without under/overflow.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#pchisq(double)">pchisq</A></B>(double&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cumulative probability of the Chi-squared distribution</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#pchisq(double, double)">pchisq</A></B>(double&nbsp;x,       double&nbsp;ncp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cumulative probability of the noncentral Chi-squared  distribution.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#pchisq(double, weka.core.matrix.DoubleVector)">pchisq</A></B>(double&nbsp;x,       <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;ncp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cumulative probability of a set of noncentral Chi-squared  distributions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#pnorm(double)">pnorm</A></B>(double&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cumulative probability of the standard normal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#pnorm(double, double, double)">pnorm</A></B>(double&nbsp;x,      double&nbsp;mean,      double&nbsp;sd)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cumulative probability of a normal distribution.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#pnorm(double, weka.core.matrix.DoubleVector, double)">pnorm</A></B>(double&nbsp;x,      <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;mean,      double&nbsp;sd)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cumulative probability of a set of normal distributions  with different means.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#rchisq(int, double, java.util.Random)">rchisq</A></B>(int&nbsp;n,       double&nbsp;ncp,       java.util.Random&nbsp;random)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates a sample of a Chi-square distribution.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#rnorm(int, double, double, java.util.Random)">rnorm</A></B>(int&nbsp;n,      double&nbsp;mean,      double&nbsp;sd,      java.util.Random&nbsp;random)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates a sample of a normal distribution.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/matrix/Maths.html#square(double)">square</A></B>(double&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the square of a value</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="PSI"><!-- --></A><H3>PSI</H3><PRE>public static final double <B>PSI</B></PRE><DL><DD>The constant 1 / sqrt(2 pi)<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.matrix.Maths.PSI">Constant Field Values</A></DL></DL><HR><A NAME="logPSI"><!-- --></A><H3>logPSI</H3><PRE>public static final double <B>logPSI</B></PRE><DL><DD>The constant - log( sqrt(2 pi) )<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.matrix.Maths.logPSI">Constant Field Values</A></DL></DL><HR><A NAME="undefinedDistribution"><!-- --></A><H3>undefinedDistribution</H3><PRE>public static final int <B>undefinedDistribution</B></PRE><DL><DD>Distribution type: undefined<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.matrix.Maths.undefinedDistribution">Constant Field Values</A></DL></DL><HR><A NAME="normalDistribution"><!-- --></A><H3>normalDistribution</H3><PRE>public static final int <B>normalDistribution</B></PRE><DL><DD>Distribution type: noraml<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.matrix.Maths.normalDistribution">Constant Field Values</A></DL></DL><HR><A NAME="chisqDistribution"><!-- --></A><H3>chisqDistribution</H3><PRE>public static final int <B>chisqDistribution</B></PRE><DL><DD>Distribution type: chi-squared<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.matrix.Maths.chisqDistribution">Constant Field Values</A></DL></DL><!-- ========= 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="Maths()"><!-- --></A><H3>Maths</H3><PRE>public <B>Maths</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="hypot(double, double)"><!-- --></A><H3>hypot</H3><PRE>public static double <B>hypot</B>(double&nbsp;a,                           double&nbsp;b)</PRE><DL><DD>sqrt(a^2 + b^2) without under/overflow.<P><DD><DL></DL></DD></DL><HR><A NAME="square(double)"><!-- --></A><H3>square</H3><PRE>public static double <B>square</B>(double&nbsp;x)</PRE><DL><DD>Returns the square of a value<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - <DT><B>Returns:</B><DD>the square</DL></DD></DL><HR><A NAME="pnorm(double)"><!-- --></A><H3>pnorm</H3><PRE>public static double <B>pnorm</B>(double&nbsp;x)</PRE><DL><DD>Returns the cumulative probability of the standard normal.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the quantile</DL></DD></DL><HR><A NAME="pnorm(double, double, double)"><!-- --></A><H3>pnorm</H3><PRE>public static double <B>pnorm</B>(double&nbsp;x,                           double&nbsp;mean,                           double&nbsp;sd)</PRE><DL><DD>Returns the cumulative probability of a normal distribution.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the quantile<DD><CODE>mean</CODE> - the mean of the normal distribution<DD><CODE>sd</CODE> - the standard deviation of the normal distribution.</DL></DD></DL><HR><A NAME="pnorm(double, weka.core.matrix.DoubleVector, double)"><!-- --></A><H3>pnorm</H3><PRE>public static <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A> <B>pnorm</B>(double&nbsp;x,                                 <A HREF="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</A>&nbsp;mean,                                 double&nbsp;sd)</PRE><DL><DD>Returns the cumulative probability of a set of normal distributions  with different means.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the vector of quantiles<DD><CODE>mean</CODE> - the means of the normal distributions<DD><CODE>sd</CODE> - the standard deviation of the normal distribution.<DT><B>Returns:</B><DD>the cumulative probability</DL></DD></DL><HR><A NAME="dnorm(double)"><!-- --></A><H3>dnorm</H3><PRE>public static double <B>dnorm</B>(double&nbsp;x)</PRE><DL><DD>Returns the density of the standard normal.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the quantile<DT><B>Returns:</B><DD>the density</DL></DD></DL><HR><A NAME="dnorm(double, double, double)"><!-- --></A><H3>dnorm</H3><PRE>public static double <B>dnorm</B>(double&nbsp;x,                           double&nbsp;mean,                           double&nbsp;sd)</PRE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?