Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 4371d3368644c35d973c1717a39b9bf2 > files > 23

ocaml-bisect-devel-1.3-7.mga4.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="CombineAST.html">
<link rel="next" href="ReportGeneric.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Runtime" rel="Chapter" href="Runtime.html">
<link title="Common" rel="Chapter" href="Common.html">
<link title="Version" rel="Chapter" href="Version.html">
<link title="ReportXML" rel="Chapter" href="ReportXML.html">
<link title="ReportUtils" rel="Chapter" href="ReportUtils.html">
<link title="ReportHTML" rel="Chapter" href="ReportHTML.html">
<link title="CombineAST" rel="Chapter" href="CombineAST.html">
<link title="ReportStat" rel="Chapter" href="ReportStat.html">
<link title="ReportGeneric" rel="Chapter" href="ReportGeneric.html">
<link title="Combine" rel="Chapter" href="Combine.html">
<link title="ReportXMLEmma" rel="Chapter" href="ReportXMLEmma.html">
<link title="ReportDump" rel="Chapter" href="ReportDump.html">
<link title="ReportArgs" rel="Chapter" href="ReportArgs.html">
<link title="ReportCSV" rel="Chapter" href="ReportCSV.html">
<link title="CombineParser" rel="Chapter" href="CombineParser.html">
<link title="CombineLexer" rel="Chapter" href="CombineLexer.html">
<link title="ReportText" rel="Chapter" href="ReportText.html"><title>ReportStat</title>
</head>
<body>
<div class="navbar"><a class="pre" href="CombineAST.html" title="CombineAST">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="ReportGeneric.html" title="ReportGeneric">Next</a>
</div>
<h1>Module <a href="type_ReportStat.html">ReportStat</a></h1>

<pre><span class="keyword">module</span> ReportStat: <code class="code">sig</code> <a href="ReportStat.html">..</a> <code class="code">end</code></pre><div class="info module top">
This module defines the types and functions related to statistics.
    All operations gracefully handle overflows by ensuring that:<ul>
<li>a value above <code class="code">max_int</code> is encoded by <code class="code">max_int</code>;</li>
<li>a value below <code class="code">min_int</code> is encoded by <code class="code">min_int</code>.</li>
</ul>
<br>
</div>
<hr width="100%">

<pre><code><span id="TYPEsingle"><span class="keyword">type</span> <code class="type"></code>single</span> = {</code></pre><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code><span class="keyword">mutable&nbsp;</span><span id="TYPEELTsingle.count">count</span>&nbsp;: <code class="type">int</code>;</code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >Number of points actually visited.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code><span class="keyword">mutable&nbsp;</span><span id="TYPEELTsingle.total">total</span>&nbsp;: <code class="type">int</code>;</code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >Total number of points.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr></table>
}

<div class="info ">
The type of statistics for a single point kind.<br>
</div>


<pre><span id="TYPEall"><span class="keyword">type</span> <code class="type"></code>all</span> = <code class="type">(<a href="Common.html#TYPEpoint_kind">Common.point_kind</a> * <a href="ReportStat.html#TYPEsingle">single</a>) list</code> </pre>
<div class="info ">
The type of statistics for all point kinds, encoded as an association
    list containing all points kinds in ascending order.<br>
</div>


<pre><span id="VALmake"><span class="keyword">val</span> make</span> : <code class="type">unit -> <a href="ReportStat.html#TYPEall">all</a></code></pre><div class="info ">
Returns <i>empty</i> statistics for all point kinds.
    All elements have both <code class="code">count</code> and <code class="code">total</code> set to zero.<br>
</div>

<pre><span id="VALupdate"><span class="keyword">val</span> update</span> : <code class="type"><a href="ReportStat.html#TYPEall">all</a> -> <a href="Common.html#TYPEpoint_kind">Common.point_kind</a> -> bool -> unit</code></pre><div class="info ">
<code class="code">update stats k b</code> updates <code class="code">stats</code> for point kind <code class="code">k</code>.
    <code class="code">total</code> is always incremented, while <code class="code">count</code> is incremented
    iff <code class="code">b</code> equals <code class="code">true</code>.<br>
</div>

<pre><span id="VALsummarize"><span class="keyword">val</span> summarize</span> : <code class="type"><a href="ReportStat.html#TYPEall">all</a> -> int * int</code></pre><div class="info ">
Returns a <code class="code">(count, total)</code> couple where <code class="code">count</code> and <code class="code">total</code> are
    the sums of respectively all <code class="code">count</code> and all <code class="code">total</code> fields from
    the passed statistics.<br>
</div>

<pre><span id="VALadd"><span class="keyword">val</span> add</span> : <code class="type"><a href="ReportStat.html#TYPEall">all</a> -> <a href="ReportStat.html#TYPEall">all</a> -> <a href="ReportStat.html#TYPEall">all</a></code></pre><div class="info ">
<code class="code">add x y</code> returns the sum of statistics <code class="code">x</code> and <code class="code">y</code>.<br>
</div>

<pre><span id="VALsum"><span class="keyword">val</span> sum</span> : <code class="type"><a href="ReportStat.html#TYPEall">all</a> list -> <a href="ReportStat.html#TYPEall">all</a></code></pre><div class="info ">
<code class="code">sum l</code> is a fold over <code class="code">l</code> elements with function <code class="code">add</code>,
    using the value returned by <code class="code">make</code> as the initial value.<br>
</div>
</body></html>