Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ce1f17e7ec5e62f35dbe9f064c5f74d7 > files > 1176

libtpcimgio-devel-1.5.10-4.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>weight.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">weight.c File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="sif_8h_source.html">sif.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for weight.c:</div>
<div class="dyncontent">
<div class="center"><img src="weight_8c__incl.png" border="0" usemap="#weight_8c" alt=""/></div>
<map name="weight_8c" id="weight_8c">
<area shape="rect" id="node3" href="sif_8h.html" title="sif.h" alt="" coords="319,83,364,112"/></map>
</div>
</div>
<p><a href="weight_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="weight_8c.html#aa6dc06574a04b48ac07c37f06c02ec40">sifWeight</a> (<a class="el" href="structSIF.html">SIF</a> *data, double halflife)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="weight_8c.html#a01c3944a335aaf471139cf0efa6af9bb">sifModerate</a> (<a class="el" href="structSIF.html">SIF</a> *sif, double limit)</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a01c3944a335aaf471139cf0efa6af9bb"></a><!-- doxytag: member="weight.c::sifModerate" ref="a01c3944a335aaf471139cf0efa6af9bb" args="(SIF *sif, double limit)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sifModerate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSIF.html">SIF</a> *&#160;</td>
          <td class="paramname"><em>sif</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>limit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moderate the trues in <a class="el" href="structSIF.html">SIF</a>. True values in <a class="el" href="structSIF.html">SIF</a> are used to calculate weight factors for time frames. If trues are very low in certain frames, the weight factors in other frames may become very low. This function finds the maximum trues, and adds max/limit to each trues value, if min trues &lt; max trues / limit. Negative trues are always eliminated. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sif</td><td>Pointer to <a class="el" href="structSIF.html">SIF</a> in which the trues are moderated </td></tr>
    <tr><td class="paramname">limit</td><td>Max trues / limit is added to all trues values; 100.0 might be good </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="weight_8c_source.html#l00102">102</a> of file <a class="el" href="weight_8c_source.html">weight.c</a>.</p>

<p>References <a class="el" href="sif_8h_source.html#l00040">SIF::frameNr</a>, and <a class="el" href="sif_8h_source.html#l00058">SIF::trues</a>.</p>

</div>
</div>
<a class="anchor" id="aa6dc06574a04b48ac07c37f06c02ec40"></a><!-- doxytag: member="weight.c::sifWeight" ref="aa6dc06574a04b48ac07c37f06c02ec40" args="(SIF *data, double halflife)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sifWeight </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSIF.html">SIF</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>halflife</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate weights for frames in <a class="el" href="structSIF.html">SIF</a> data, normalized between 0-1. Weights are calculated from formula weight=(frame duration)^2 / (trues in a frame). Before calling this routine, trues must be calculated as total counts - randoms. Counts in <a class="el" href="structSIF.html">SIF</a> are not corrected for physical decay. Therefore, isotope halflife must be known, if weights are to be calculated for decay corrected TACs. Isotope halflife must be set to 0, if weights are used for TACs that are not corrected for decay.</p>
<dl class="see"><dt><b>See also:</b></dt><dd>Mazoyer BM, Huesman RH, Budinger TF, Knittel BL. Dynamic PET data analysis. J Comput Assist Tomogr 1986; 10:645-653. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>sif data </td></tr>
    <tr><td class="paramname">halflife</td><td>halflife (sec) of isotope label; If halflife is 0, the weights are calculated for non-decay corrected data. If halflife (sec) is &gt;0, the weights are calculated using decay corrected trues, but trues data is not changed. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="weight_8c_source.html#l00061">61</a> of file <a class="el" href="weight_8c_source.html">weight.c</a>.</p>

<p>References <a class="el" href="sif_8h_source.html#l00040">SIF::frameNr</a>, <a class="el" href="sif_8h_source.html#l00063">SIF_TEST</a>, <a class="el" href="sif_8h_source.html#l00058">SIF::trues</a>, <a class="el" href="sif_8h_source.html#l00060">SIF::weights</a>, <a class="el" href="sif_8h_source.html#l00050">SIF::x1</a>, and <a class="el" href="sif_8h_source.html#l00052">SIF::x2</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Aug 8 2011 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>