| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>SynchronizedDescriptiveStatistics</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="SynchronizedDescriptiveStatistics"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <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="../../../../../../org/apache/openejb/math/stat/descriptive/StorelessUnivariateStatistic.html" title="interface in org.apache.openejb.math.stat.descriptive"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/openejb/math/stat/descriptive/UnivariateStatistic.html" title="interface in org.apache.openejb.math.stat.descriptive"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" target="_top">Frames</a></li> |
| <li><a href="SynchronizedDescriptiveStatistics.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: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.openejb.math.stat.descriptive.DescriptiveStatistics">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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">org.apache.openejb.math.stat.descriptive</div> |
| <h2 title="Class SynchronizedDescriptiveStatistics" class="title">Class SynchronizedDescriptiveStatistics</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">org.apache.openejb.math.stat.descriptive.DescriptiveStatistics</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd>java.io.Serializable, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.openejb.math.stat.descriptive">StatisticalSummary</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">SynchronizedDescriptiveStatistics</span> |
| extends <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></pre> |
| <div class="block">Implementation of |
| <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive"><code>DescriptiveStatistics</code></a> that |
| is safe to use in a multithreaded environment. Multiple threads can safely |
| operate on a single instance without causing runtime exceptions due to race |
| conditions. In effect, this implementation makes modification and access |
| methods atomic operations for a single instance. That is to say, as one |
| thread is computing a statistic from the instance, no other thread can modify |
| the instance nor compute another statistic.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.2</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../serialized-form.html#org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics">Serialized Form</a></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> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.openejb.math.stat.descriptive.DescriptiveStatistics"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.openejb.math.stat.descriptive.<a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></h3> |
| <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#eDA">eDA</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#INFINITE_WINDOW">INFINITE_WINDOW</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#windowSize">windowSize</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#SynchronizedDescriptiveStatistics--">SynchronizedDescriptiveStatistics</a></span>()</code> |
| <div class="block">Construct an instance with infinite window</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#SynchronizedDescriptiveStatistics-int-">SynchronizedDescriptiveStatistics</a></span>(int window)</code> |
| <div class="block">Construct an instance with finite window</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#SynchronizedDescriptiveStatistics-org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics-">SynchronizedDescriptiveStatistics</a></span>(<a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a> original)</code> |
| <div class="block">A copy constructor.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#addValue-double-">addValue</a></span>(double v)</code> |
| <div class="block">Adds the value to the dataset.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#apply-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">apply</a></span>(<a href="../../../../../../org/apache/openejb/math/stat/descriptive/UnivariateStatistic.html" title="interface in org.apache.openejb.math.stat.descriptive">UnivariateStatistic</a> stat)</code> |
| <div class="block">Apply the given statistic to the data associated with this set of statistics.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#clear--">clear</a></span>()</code> |
| <div class="block">Resets all statistics and storage</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#copy--">copy</a></span>()</code> |
| <div class="block">Returns a copy of this SynchronizedDescriptiveStatistics instance with the |
| same internal state.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#copy-org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics-org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics-">copy</a></span>(<a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a> source, |
| <a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a> dest)</code> |
| <div class="block">Copies source to dest.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#getElement-int-">getElement</a></span>(int index)</code> |
| <div class="block">Returns the element at the specified index</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#getN--">getN</a></span>()</code> |
| <div class="block">Returns the number of available values</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#getStandardDeviation--">getStandardDeviation</a></span>()</code> |
| <div class="block">Returns the standard deviation of the available values.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>double[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#getValues--">getValues</a></span>()</code> |
| <div class="block">Returns the current set of values in an array of double primitives.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#getWindowSize--">getWindowSize</a></span>()</code> |
| <div class="block">Returns the maximum number of values that can be stored in the |
| dataset, or INFINITE_WINDOW (-1) if there is no limit.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#setWindowSize-int-">setWindowSize</a></span>(int windowSize)</code> |
| <div class="block">WindowSize controls the number of values which contribute |
| to the reported statistics.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html#toString--">toString</a></span>()</code> |
| <div class="block">Generates a text report displaying univariate statistics from values |
| that have been added.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.openejb.math.stat.descriptive.DescriptiveStatistics"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.openejb.math.stat.descriptive.<a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></h3> |
| <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#copy-org.apache.openejb.math.stat.descriptive.DescriptiveStatistics-org.apache.openejb.math.stat.descriptive.DescriptiveStatistics-">copy</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getGeometricMean--">getGeometricMean</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getGeometricMeanImpl--">getGeometricMeanImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getKurtosis--">getKurtosis</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getKurtosisImpl--">getKurtosisImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getMax--">getMax</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getMaxImpl--">getMaxImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getMean--">getMean</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getMeanImpl--">getMeanImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getMin--">getMin</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getMinImpl--">getMinImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getPercentile-double-">getPercentile</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getPercentileImpl--">getPercentileImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getSkewness--">getSkewness</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getSkewnessImpl--">getSkewnessImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getSortedValues--">getSortedValues</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getSum--">getSum</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getSumImpl--">getSumImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getSumsq--">getSumsq</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getSumsqImpl--">getSumsqImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getVariance--">getVariance</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getVarianceImpl--">getVarianceImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#removeMostRecentValue--">removeMostRecentValue</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#replaceMostRecentValue-double-">replaceMostRecentValue</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setGeometricMeanImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setGeometricMeanImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setKurtosisImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setKurtosisImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setMaxImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setMaxImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setMeanImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setMeanImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setMinImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setMinImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setPercentileImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setPercentileImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setSkewnessImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setSkewnessImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setSumImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setSumImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setSumsqImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setSumsqImpl</a>, <a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setVarianceImpl-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">setVarianceImpl</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="SynchronizedDescriptiveStatistics--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SynchronizedDescriptiveStatistics</h4> |
| <pre>public SynchronizedDescriptiveStatistics()</pre> |
| <div class="block">Construct an instance with infinite window</div> |
| </li> |
| </ul> |
| <a name="SynchronizedDescriptiveStatistics-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SynchronizedDescriptiveStatistics</h4> |
| <pre>public SynchronizedDescriptiveStatistics(int window)</pre> |
| <div class="block">Construct an instance with finite window</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>window</code> - the finite window size.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="SynchronizedDescriptiveStatistics-org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>SynchronizedDescriptiveStatistics</h4> |
| <pre>public SynchronizedDescriptiveStatistics(<a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a> original)</pre> |
| <div class="block">A copy constructor. Creates a deep-copy of the <code>original</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>original</code> - the <code>SynchronizedDescriptiveStatistics</code> instance to copy</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="addValue-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addValue</h4> |
| <pre>public void addValue(double v)</pre> |
| <div class="block">Adds the value to the dataset. If the dataset is at the maximum size |
| (i.e., the number of stored elements equals the currently configured |
| windowSize), the first (oldest) element in the dataset is discarded |
| to make room for the new value.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#addValue-double-">addValue</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>v</code> - the value to be added</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="apply-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>apply</h4> |
| <pre>public double apply(<a href="../../../../../../org/apache/openejb/math/stat/descriptive/UnivariateStatistic.html" title="interface in org.apache.openejb.math.stat.descriptive">UnivariateStatistic</a> stat)</pre> |
| <div class="block">Apply the given statistic to the data associated with this set of statistics.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#apply-org.apache.openejb.math.stat.descriptive.UnivariateStatistic-">apply</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>stat</code> - the statistic to apply</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the computed value of the statistic.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="clear--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clear</h4> |
| <pre>public void clear()</pre> |
| <div class="block">Resets all statistics and storage</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#clear--">clear</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getElement-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getElement</h4> |
| <pre>public double getElement(int index)</pre> |
| <div class="block">Returns the element at the specified index</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getElement-int-">getElement</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - The Index of the element</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>return the element at the specified index</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getN--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getN</h4> |
| <pre>public long getN()</pre> |
| <div class="block">Returns the number of available values</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/StatisticalSummary.html#getN--">getN</a></code> in interface <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.openejb.math.stat.descriptive">StatisticalSummary</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getN--">getN</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The number of available values</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getStandardDeviation--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStandardDeviation</h4> |
| <pre>public double getStandardDeviation()</pre> |
| <div class="block">Returns the standard deviation of the available values.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/StatisticalSummary.html#getStandardDeviation--">getStandardDeviation</a></code> in interface <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.openejb.math.stat.descriptive">StatisticalSummary</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getStandardDeviation--">getStandardDeviation</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The standard deviation, Double.NaN if no values have been added |
| or 0.0 for a single value set.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getValues--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getValues</h4> |
| <pre>public double[] getValues()</pre> |
| <div class="block">Returns the current set of values in an array of double primitives. |
| The order of addition is preserved. The returned array is a fresh |
| copy of the underlying data -- i.e., it is not a reference to the |
| stored data.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getValues--">getValues</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>returns the current set of numbers in the order in which they |
| were added to this set</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getWindowSize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getWindowSize</h4> |
| <pre>public int getWindowSize()</pre> |
| <div class="block">Returns the maximum number of values that can be stored in the |
| dataset, or INFINITE_WINDOW (-1) if there is no limit.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#getWindowSize--">getWindowSize</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The current window size or -1 if its Infinite.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setWindowSize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setWindowSize</h4> |
| <pre>public void setWindowSize(int windowSize)</pre> |
| <div class="block">WindowSize controls the number of values which contribute |
| to the reported statistics. For example, if |
| windowSize is set to 3 and the values {1,2,3,4,5} |
| have been added <strong> in that order</strong> |
| then the <i>available values</i> are {3,4,5} and all |
| reported statistics will be based on these values</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#setWindowSize-int-">setWindowSize</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>windowSize</code> - sets the size of the window.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public java.lang.String toString()</pre> |
| <div class="block">Generates a text report displaying univariate statistics from values |
| that have been added. Each statistic is displayed on a separate |
| line.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#toString--">toString</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>String with line feeds displaying statistics</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copy--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public <a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a> copy()</pre> |
| <div class="block">Returns a copy of this SynchronizedDescriptiveStatistics instance with the |
| same internal state.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html#copy--">copy</a></code> in class <code><a href="../../../../../../org/apache/openejb/math/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">DescriptiveStatistics</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a copy of this</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copy-org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics-org.apache.openejb.math.stat.descriptive.SynchronizedDescriptiveStatistics-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public static void copy(<a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a> source, |
| <a href="../../../../../../org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.openejb.math.stat.descriptive">SynchronizedDescriptiveStatistics</a> dest)</pre> |
| <div class="block">Copies source to dest. |
| <p>Neither source nor dest can be null.</p> |
| <p>Acquires synchronization lock on source, then dest before copying.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - SynchronizedDescriptiveStatistics to copy</dd> |
| <dd><code>dest</code> - SynchronizedDescriptiveStatistics to copy to</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.NullPointerException</code> - if either source or dest is null</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> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <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="../../../../../../org/apache/openejb/math/stat/descriptive/StorelessUnivariateStatistic.html" title="interface in org.apache.openejb.math.stat.descriptive"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/openejb/math/stat/descriptive/UnivariateStatistic.html" title="interface in org.apache.openejb.math.stat.descriptive"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/openejb/math/stat/descriptive/SynchronizedDescriptiveStatistics.html" target="_top">Frames</a></li> |
| <li><a href="SynchronizedDescriptiveStatistics.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: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.openejb.math.stat.descriptive.DescriptiveStatistics">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |