Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 522

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_974d432048ef135a7d3fc83794dbf3e9.html">binners</a>
  </div>
</div>
<div class="contents">
<h1>Bins1DHist.h</h1><a href="Bins1DHist_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _Bins1DHist_H_</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _Bins1DHist_H_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;<a class="code" href="Bins1DBase_8h.html" title="hippodraw::Bins1DBase class interface">Bins1DBase.h</a>&quot;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="keyword">namespace </span>hippodraw {
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">class </span>NTuple;
<a name="l00026"></a>00026 
<a name="l00038"></a><a class="code" href="classhippodraw_1_1Bins1DHist.html">00038</a> <span class="keyword">class </span><a class="code" href="libhippo_8h.html#a480024fd54849c743866874550153711">MDL_HIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1Bins1DHist.html" title="The class for the one-dimensional histogram binning.">Bins1DHist</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1Bins1DBase.html" title="The base class for the one-dimensional binner hierarchy.">Bins1DBase</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 <span class="keyword">private</span>:
<a name="l00041"></a>00041 
<a name="l00045"></a><a class="code" href="classhippodraw_1_1Bins1DHist.html#a5ea7904a8c2e6ef8493e8c4f78df80c0">00045</a>   std::vector&lt; double &gt; m_data;
<a name="l00046"></a>00046 
<a name="l00048"></a><a class="code" href="classhippodraw_1_1Bins1DHist.html#aa62301a470071dcb2eb9da7fea8631ab">00048</a>   std::vector&lt; double &gt; m_variance;
<a name="l00049"></a>00049 
<a name="l00051"></a><a class="code" href="classhippodraw_1_1Bins1DHist.html#aa028a4dd803d5f00045f10f46c5ce1ab">00051</a>   <span class="keywordtype">double</span> m_moments[3];
<a name="l00052"></a>00052 
<a name="l00054"></a><a class="code" href="classhippodraw_1_1Bins1DHist.html#af39792f36e36af0f242eb34a6d7e7f77">00054</a>   <span class="keywordtype">int</span> m_min_entries;
<a name="l00055"></a>00055 
<a name="l00057"></a>00057   <span class="keyword">virtual</span> <span class="keywordtype">void</span> resize ( <span class="keywordtype">int</span> <a class="code" href="namespacenum__util.html#a137f48a49d12a7dae8ba7c86db2a0c01">size</a> );
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="keyword">public</span>:
<a name="l00060"></a>00060 
<a name="l00062"></a>00062   <a class="code" href="classhippodraw_1_1Bins1DHist.html" title="The class for the one-dimensional histogram binning.">Bins1DHist</a> ();
<a name="l00063"></a>00063 
<a name="l00065"></a>00065   <a class="code" href="classhippodraw_1_1Bins1DHist.html" title="The class for the one-dimensional histogram binning.">Bins1DHist</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Bins1DHist.html" title="The class for the one-dimensional histogram binning.">Bins1DHist</a> &amp; binner );
<a name="l00066"></a>00066 
<a name="l00068"></a>00068   <span class="keyword">virtual</span> ~<a class="code" href="classhippodraw_1_1Bins1DHist.html" title="The class for the one-dimensional histogram binning.">Bins1DHist</a> ();
<a name="l00069"></a>00069 
<a name="l00072"></a>00072   <a class="code" href="classhippodraw_1_1BinsBase.html" title="The base class for the binner hierarchy.">BinsBase</a> * <a class="code" href="namespacenum__util.html#a8d145d73a173083711a3829a2bc75f5c">clone</a> () <span class="keyword">const</span>;
<a name="l00073"></a>00073 
<a name="l00075"></a>00075   <span class="keywordtype">double</span> minBin();
<a name="l00076"></a>00076 
<a name="l00078"></a>00078   <span class="keywordtype">double</span> maxBin();
<a name="l00079"></a>00079 
<a name="l00081"></a>00081   <span class="keyword">virtual</span> <span class="keywordtype">void</span> reset();
<a name="l00082"></a>00082 
<a name="l00086"></a>00086   <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate ( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> w = 1.0, 
<a name="l00087"></a>00087                             <span class="keywordtype">double</span> i1 = 0.0, <span class="keywordtype">double</span> i2 = 0.0 );
<a name="l00088"></a>00088 
<a name="l00090"></a>00090   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNumberOfEntries () <span class="keyword">const</span>;
<a name="l00091"></a>00091 
<a name="l00093"></a>00093   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNumberOfEntries ( <span class="keywordtype">int</span> i ) <span class="keyword">const</span>;
<a name="l00094"></a>00094 
<a name="l00096"></a>00096   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getUnderflow () <span class="keyword">const</span>;
<a name="l00097"></a>00097 
<a name="l00099"></a>00099   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getOverflow () <span class="keyword">const</span>;
<a name="l00100"></a>00100 
<a name="l00101"></a>00101   
<a name="l00107"></a>00107   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * createNTuple () <span class="keyword">const</span>;
<a name="l00108"></a>00108 
<a name="l00109"></a>00109   <span class="keyword">virtual</span> <span class="keywordtype">void</span> fillDataSource ( <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ntuple ) <span class="keyword">const</span>;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setBinContents ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ntuple );
<a name="l00112"></a>00112 
<a name="l00115"></a>00115   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMinEntries( <span class="keywordtype">int</span> entries );
<a name="l00116"></a>00116 
<a name="l00119"></a>00119   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getMinEntries ( );
<a name="l00120"></a>00120 };
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 } <span class="comment">// namespace hippodraw</span>
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="preprocessor">#endif // _Bins1DHist_H_</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>