<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_71) on Tue Dec 16 10:59:48 NZDT 2014 -->
<title>Maths</title>
<meta name="date" content="2014-12-16">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Maths";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../weka/core/matrix/LUDecomposition.html" title="class in weka.core.matrix"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../weka/core/matrix/Matrix.html" title="class in weka.core.matrix"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?weka/core/matrix/Maths.html" target="_top">Frames</a></li>
<li><a href="Maths.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">weka.core.matrix</div>
<h2 title="Class Maths" class="title">Class Maths</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>weka.core.matrix.Maths</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Maths</span>
extends java.lang.Object
implements <a href="../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</a></pre>
<div class="block">Utility class.
 <p/>
 Adapted from the <a href="http://math.nist.gov/javanumerics/jama/" target="_blank">JAMA</a> package.</div>
<dl><dt><span class="strong">Version:</span></dt>
  <dd>$Revision: 1.3 $</dd>
<dt><span class="strong">Author:</span></dt>
  <dd>The Mathworks and NIST, Fracpete (fracpete at waikato dot ac dot nz)</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#chisqDistribution">chisqDistribution</a></strong></code>
<div class="block">Distribution type: chi-squared</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#logPSI">logPSI</a></strong></code>
<div class="block">The constant - log( sqrt(2 pi) )</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#normalDistribution">normalDistribution</a></strong></code>
<div class="block">Distribution type: noraml</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#PSI">PSI</a></strong></code>
<div class="block">The constant 1 / sqrt(2 pi)</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#undefinedDistribution">undefinedDistribution</a></strong></code>
<div class="block">Distribution type: undefined</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../weka/core/matrix/Maths.html#Maths()">Maths</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dchisq(double)">dchisq</a></strong>(double&nbsp;x)</code>
<div class="block">Returns the density of the Chi-squared distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dchisq(double,%20double)">dchisq</a></strong>(double&nbsp;x,
      double&nbsp;ncp)</code>
<div class="block">Returns the density of the noncentral Chi-squared distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dchisq(double,%20weka.core.matrix.DoubleVector)">dchisq</a></strong>(double&nbsp;x,
      <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;ncp)</code>
<div class="block">Returns the density of the noncentral Chi-squared distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dchisqLog(double)">dchisqLog</a></strong>(double&nbsp;x)</code>
<div class="block">Returns the log-density of the noncentral Chi-square distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dchisqLog(double,%20double)">dchisqLog</a></strong>(double&nbsp;x,
         double&nbsp;ncp)</code>
<div class="block">Returns the log-density value of a noncentral Chi-square distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dchisqLog(double,%20weka.core.matrix.DoubleVector)">dchisqLog</a></strong>(double&nbsp;x,
         <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;ncp)</code>
<div class="block">Returns the log-density of a set of noncentral Chi-squared
  distributions.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dnorm(double)">dnorm</a></strong>(double&nbsp;x)</code>
<div class="block">Returns the density of the standard normal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dnorm(double,%20double,%20double)">dnorm</a></strong>(double&nbsp;x,
     double&nbsp;mean,
     double&nbsp;sd)</code>
<div class="block">Returns the density value of a standard normal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dnorm(double,%20weka.core.matrix.DoubleVector,%20double)">dnorm</a></strong>(double&nbsp;x,
     <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;mean,
     double&nbsp;sd)</code>
<div class="block">Returns the density values of a set of normal distributions with
  different means.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dnormLog(double)">dnormLog</a></strong>(double&nbsp;x)</code>
<div class="block">Returns the log-density of the standard normal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dnormLog(double,%20double,%20double)">dnormLog</a></strong>(double&nbsp;x,
        double&nbsp;mean,
        double&nbsp;sd)</code>
<div class="block">Returns the log-density value of a standard normal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#dnormLog(double,%20weka.core.matrix.DoubleVector,%20double)">dnormLog</a></strong>(double&nbsp;x,
        <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;mean,
        double&nbsp;sd)</code>
<div class="block">Returns the log-density values of a set of normal distributions with
  different means.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#getRevision()">getRevision</a></strong>()</code>
<div class="block">Returns the revision string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#hypot(double,%20double)">hypot</a></strong>(double&nbsp;a,
     double&nbsp;b)</code>
<div class="block">sqrt(a^2 + b^2) without under/overflow.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#pchisq(double)">pchisq</a></strong>(double&nbsp;x)</code>
<div class="block">Returns the cumulative probability of the Chi-squared distribution</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#pchisq(double,%20double)">pchisq</a></strong>(double&nbsp;x,
      double&nbsp;ncp)</code>
<div class="block">Returns the cumulative probability of the noncentral Chi-squared
  distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#pchisq(double,%20weka.core.matrix.DoubleVector)">pchisq</a></strong>(double&nbsp;x,
      <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;ncp)</code>
<div class="block">Returns the cumulative probability of a set of noncentral Chi-squared
  distributions.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#pnorm(double)">pnorm</a></strong>(double&nbsp;x)</code>
<div class="block">Returns the cumulative probability of the standard normal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#pnorm(double,%20double,%20double)">pnorm</a></strong>(double&nbsp;x,
     double&nbsp;mean,
     double&nbsp;sd)</code>
<div class="block">Returns the cumulative probability of a normal distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#pnorm(double,%20weka.core.matrix.DoubleVector,%20double)">pnorm</a></strong>(double&nbsp;x,
     <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;mean,
     double&nbsp;sd)</code>
<div class="block">Returns the cumulative probability of a set of normal distributions
  with different means.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#rchisq(int,%20double,%20java.util.Random)">rchisq</a></strong>(int&nbsp;n,
      double&nbsp;ncp,
      java.util.Random&nbsp;random)</code>
<div class="block">Generates a sample of a Chi-square distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a></code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#rnorm(int,%20double,%20double,%20java.util.Random)">rnorm</a></strong>(int&nbsp;n,
     double&nbsp;mean,
     double&nbsp;sd,
     java.util.Random&nbsp;random)</code>
<div class="block">Generates a sample of a normal distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../weka/core/matrix/Maths.html#square(double)">square</a></strong>(double&nbsp;x)</code>
<div class="block">Returns the square of a value</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="PSI">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PSI</h4>
<pre>public static final&nbsp;double PSI</pre>
<div class="block">The constant 1 / sqrt(2 pi)</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#weka.core.matrix.Maths.PSI">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="logPSI">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logPSI</h4>
<pre>public static final&nbsp;double logPSI</pre>
<div class="block">The constant - log( sqrt(2 pi) )</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#weka.core.matrix.Maths.logPSI">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="undefinedDistribution">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>undefinedDistribution</h4>
<pre>public static final&nbsp;int undefinedDistribution</pre>
<div class="block">Distribution type: undefined</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#weka.core.matrix.Maths.undefinedDistribution">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="normalDistribution">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalDistribution</h4>
<pre>public static final&nbsp;int normalDistribution</pre>
<div class="block">Distribution type: noraml</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#weka.core.matrix.Maths.normalDistribution">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="chisqDistribution">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>chisqDistribution</h4>
<pre>public static final&nbsp;int chisqDistribution</pre>
<div class="block">Distribution type: chi-squared</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#weka.core.matrix.Maths.chisqDistribution">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="Maths()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Maths</h4>
<pre>public&nbsp;Maths()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="hypot(double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hypot</h4>
<pre>public static&nbsp;double&nbsp;hypot(double&nbsp;a,
           double&nbsp;b)</pre>
<div class="block">sqrt(a^2 + b^2) without under/overflow.</div>
</li>
</ul>
<a name="square(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>square</h4>
<pre>public static&nbsp;double&nbsp;square(double&nbsp;x)</pre>
<div class="block">Returns the square of a value</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>the square</dd></dl>
</li>
</ul>
<a name="pnorm(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pnorm</h4>
<pre>public static&nbsp;double&nbsp;pnorm(double&nbsp;x)</pre>
<div class="block">Returns the cumulative probability of the standard normal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd></dl>
</li>
</ul>
<a name="pnorm(double, double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pnorm</h4>
<pre>public static&nbsp;double&nbsp;pnorm(double&nbsp;x,
           double&nbsp;mean,
           double&nbsp;sd)</pre>
<div class="block">Returns the cumulative probability of a normal distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>mean</code> - the mean of the normal distribution</dd><dd><code>sd</code> - the standard deviation of the normal distribution.</dd></dl>
</li>
</ul>
<a name="pnorm(double, weka.core.matrix.DoubleVector, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pnorm</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;pnorm(double&nbsp;x,
                 <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;mean,
                 double&nbsp;sd)</pre>
<div class="block">Returns the cumulative probability of a set of normal distributions
  with different means.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the vector of quantiles</dd><dd><code>mean</code> - the means of the normal distributions</dd><dd><code>sd</code> - the standard deviation of the normal distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the cumulative probability</dd></dl>
</li>
</ul>
<a name="dnorm(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dnorm</h4>
<pre>public static&nbsp;double&nbsp;dnorm(double&nbsp;x)</pre>
<div class="block">Returns the density of the standard normal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dnorm(double, double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dnorm</h4>
<pre>public static&nbsp;double&nbsp;dnorm(double&nbsp;x,
           double&nbsp;mean,
           double&nbsp;sd)</pre>
<div class="block">Returns the density value of a standard normal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>mean</code> - the mean of the normal distribution</dd><dd><code>sd</code> - the standard deviation of the normal distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dnorm(double, weka.core.matrix.DoubleVector, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dnorm</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;dnorm(double&nbsp;x,
                 <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;mean,
                 double&nbsp;sd)</pre>
<div class="block">Returns the density values of a set of normal distributions with
  different means.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>mean</code> - the means of the normal distributions</dd><dd><code>sd</code> - the standard deviation of the normal distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dnormLog(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dnormLog</h4>
<pre>public static&nbsp;double&nbsp;dnormLog(double&nbsp;x)</pre>
<div class="block">Returns the log-density of the standard normal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dnormLog(double, double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dnormLog</h4>
<pre>public static&nbsp;double&nbsp;dnormLog(double&nbsp;x,
              double&nbsp;mean,
              double&nbsp;sd)</pre>
<div class="block">Returns the log-density value of a standard normal.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>mean</code> - the mean of the normal distribution</dd><dd><code>sd</code> - the standard deviation of the normal distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dnormLog(double, weka.core.matrix.DoubleVector, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dnormLog</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;dnormLog(double&nbsp;x,
                    <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;mean,
                    double&nbsp;sd)</pre>
<div class="block">Returns the log-density values of a set of normal distributions with
  different means.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>mean</code> - the means of the normal distributions</dd><dd><code>sd</code> - the standard deviation of the normal distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="rnorm(int, double, double, java.util.Random)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rnorm</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;rnorm(int&nbsp;n,
                 double&nbsp;mean,
                 double&nbsp;sd,
                 java.util.Random&nbsp;random)</pre>
<div class="block">Generates a sample of a normal distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>n</code> - the size of the sample</dd><dd><code>mean</code> - the mean of the normal distribution</dd><dd><code>sd</code> - the standard deviation of the normal distribution.</dd><dd><code>random</code> - the random stream</dd>
<dt><span class="strong">Returns:</span></dt><dd>the sample</dd></dl>
</li>
</ul>
<a name="pchisq(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pchisq</h4>
<pre>public static&nbsp;double&nbsp;pchisq(double&nbsp;x)</pre>
<div class="block">Returns the cumulative probability of the Chi-squared distribution</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd></dl>
</li>
</ul>
<a name="pchisq(double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pchisq</h4>
<pre>public static&nbsp;double&nbsp;pchisq(double&nbsp;x,
            double&nbsp;ncp)</pre>
<div class="block">Returns the cumulative probability of the noncentral Chi-squared
  distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>ncp</code> - the noncentral parameter</dd></dl>
</li>
</ul>
<a name="pchisq(double, weka.core.matrix.DoubleVector)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pchisq</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;pchisq(double&nbsp;x,
                  <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;ncp)</pre>
<div class="block">Returns the cumulative probability of a set of noncentral Chi-squared
  distributions.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>ncp</code> - the noncentral parameters</dd></dl>
</li>
</ul>
<a name="dchisq(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dchisq</h4>
<pre>public static&nbsp;double&nbsp;dchisq(double&nbsp;x)</pre>
<div class="block">Returns the density of the Chi-squared distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dchisq(double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dchisq</h4>
<pre>public static&nbsp;double&nbsp;dchisq(double&nbsp;x,
            double&nbsp;ncp)</pre>
<div class="block">Returns the density of the noncentral Chi-squared distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>ncp</code> - the noncentral parameter</dd></dl>
</li>
</ul>
<a name="dchisq(double, weka.core.matrix.DoubleVector)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dchisq</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;dchisq(double&nbsp;x,
                  <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;ncp)</pre>
<div class="block">Returns the density of the noncentral Chi-squared distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>ncp</code> - the noncentral parameters</dd></dl>
</li>
</ul>
<a name="dchisqLog(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dchisqLog</h4>
<pre>public static&nbsp;double&nbsp;dchisqLog(double&nbsp;x)</pre>
<div class="block">Returns the log-density of the noncentral Chi-square distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dchisqLog(double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dchisqLog</h4>
<pre>public static&nbsp;double&nbsp;dchisqLog(double&nbsp;x,
               double&nbsp;ncp)</pre>
<div class="block">Returns the log-density value of a noncentral Chi-square distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>ncp</code> - the noncentral parameter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the density</dd></dl>
</li>
</ul>
<a name="dchisqLog(double, weka.core.matrix.DoubleVector)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dchisqLog</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;dchisqLog(double&nbsp;x,
                     <a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;ncp)</pre>
<div class="block">Returns the log-density of a set of noncentral Chi-squared
  distributions.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the quantile</dd><dd><code>ncp</code> - the noncentral parameters</dd></dl>
</li>
</ul>
<a name="rchisq(int, double, java.util.Random)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rchisq</h4>
<pre>public static&nbsp;<a href="../../../weka/core/matrix/DoubleVector.html" title="class in weka.core.matrix">DoubleVector</a>&nbsp;rchisq(int&nbsp;n,
                  double&nbsp;ncp,
                  java.util.Random&nbsp;random)</pre>
<div class="block">Generates a sample of a Chi-square distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>n</code> - the size of the sample</dd><dd><code>ncp</code> - the noncentral parameter</dd><dd><code>random</code> - the random stream</dd>
<dt><span class="strong">Returns:</span></dt><dd>the sample</dd></dl>
</li>
</ul>
<a name="getRevision()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getRevision</h4>
<pre>public&nbsp;java.lang.String&nbsp;getRevision()</pre>
<div class="block">Returns the revision string.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../weka/core/RevisionHandler.html#getRevision()">getRevision</a></code>&nbsp;in interface&nbsp;<code><a href="../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the revision</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../weka/core/matrix/LUDecomposition.html" title="class in weka.core.matrix"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../weka/core/matrix/Matrix.html" title="class in weka.core.matrix"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?weka/core/matrix/Maths.html" target="_top">Frames</a></li>
<li><a href="Maths.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
