PageRenderTime 34ms CodeModel.GetById 6ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/1.0/generated/cf.Data.sum.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 188 lines | 164 code | 24 blank | 0 comment | 0 complexity | 15c93dad98b9138d7175a8a0bfe0216a MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>cf.Data.sum &mdash; Documentation</title>
  7. <link rel="stylesheet" href="../_static/default.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '1.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../_static/doctools.js"></script>
  21. <script type="text/javascript" src="../_static/copybutton.js"></script>
  22. <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  23. <link rel="top" title="Documentation" href="../index.html" />
  24. <link rel="up" title="cf.Data" href="../classes/cf.Data.html" />
  25. <link rel="next" title="cf.Data.sum_of_weights" href="cf.Data.sum_of_weights.html" />
  26. <link rel="prev" title="cf.Data.squeeze" href="cf.Data.squeeze.html" />
  27. </head>
  28. <body>
  29. <div class="related">
  30. <h3>Navigation</h3>
  31. <ul>
  32. <li class="right" style="margin-right: 10px">
  33. <a href="../genindex.html" title="General Index"
  34. accesskey="I">index</a></li>
  35. <li class="right" >
  36. <a href="cf.Data.sum_of_weights.html" title="cf.Data.sum_of_weights"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.Data.squeeze.html" title="cf.Data.squeeze"
  40. accesskey="P">previous</a> |</li>
  41. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  42. <li><select onchange="location = this.options[this.selectedIndex].value;">
  43. <option value="../../1.0/index.html"selected>1.0
  44. <option value="../../0.9.9/index.html">0.9.9
  45. <option value="../../0.9.8.3/index.html">0.9.8.3
  46. <option value="../../archive.html">Archive
  47. </select>
  48. </li>
  49. <li><a href="../index.html">Documentation</a> &raquo;</li>
  50. <li><a href="../reference.html" >Reference manual</a> &raquo;</li>
  51. <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> &raquo;</li>
  52. <li><a href="../classes/cf.Data.html" accesskey="U">cf.Data</a> &raquo;</li>
  53. </ul>
  54. </div>
  55. <div class="document">
  56. <div class="documentwrapper">
  57. <div class="bodywrapper">
  58. <div class="body">
  59. <div class="section" id="cf-data-sum">
  60. <h1>cf.Data.sum<a class="headerlink" href="#cf-data-sum" title="Permalink to this headline">Âś</a></h1>
  61. <dl class="method">
  62. <dt id="cf.Data.sum">
  63. <tt class="descclassname">Data.</tt><tt class="descname">sum</tt><big>(</big><em>axes=None</em>, <em>squeeze=False</em>, <em>mtol=1</em>, <em>i=False</em><big>)</big><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v1.0/cf/data/data.py#cl-9044"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.Data.sum" title="Permalink to this definition">Âś</a></dt>
  64. <dd><p>Collapse axes with their sum.</p>
  65. <p>Missing data array elements are omitted from the calculation.</p>
  66. <div class="admonition seealso">
  67. <p class="first admonition-title">See also</p>
  68. <p class="last"><a class="reference internal" href="cf.Data.max.html#cf.Data.max" title="cf.Data.max"><tt class="xref py py-obj docutils literal"><span class="pre">max</span></tt></a>, <a class="reference internal" href="cf.Data.min.html#cf.Data.min" title="cf.Data.min"><tt class="xref py py-obj docutils literal"><span class="pre">min</span></tt></a>, <a class="reference internal" href="cf.Data.mean.html#cf.Data.mean" title="cf.Data.mean"><tt class="xref py py-obj docutils literal"><span class="pre">mean</span></tt></a>, <a class="reference internal" href="cf.Data.mid_range.html#cf.Data.mid_range" title="cf.Data.mid_range"><tt class="xref py py-obj docutils literal"><span class="pre">mid_range</span></tt></a>, <a class="reference internal" href="cf.Data.range.html#cf.Data.range" title="cf.Data.range"><tt class="xref py py-obj docutils literal"><span class="pre">range</span></tt></a>,
  69. <a class="reference internal" href="cf.Data.sample_size.html#cf.Data.sample_size" title="cf.Data.sample_size"><tt class="xref py py-obj docutils literal"><span class="pre">sample_size</span></tt></a>, <a class="reference internal" href="cf.Data.sd.html#cf.Data.sd" title="cf.Data.sd"><tt class="xref py py-obj docutils literal"><span class="pre">sd</span></tt></a>, <a class="reference internal" href="cf.Data.sum_of_weights.html#cf.Data.sum_of_weights" title="cf.Data.sum_of_weights"><tt class="xref py py-obj docutils literal"><span class="pre">sum_of_weights</span></tt></a>, <a class="reference internal" href="cf.Data.sum_of_weights2.html#cf.Data.sum_of_weights2" title="cf.Data.sum_of_weights2"><tt class="xref py py-obj docutils literal"><span class="pre">sum_of_weights2</span></tt></a>,
  70. <a class="reference internal" href="cf.Data.var.html#cf.Data.var" title="cf.Data.var"><tt class="xref py py-obj docutils literal"><span class="pre">var</span></tt></a></p>
  71. </div>
  72. <table class="docutils field-list" frame="void" rules="none">
  73. <col class="field-name" />
  74. <col class="field-body" />
  75. <tbody valign="top">
  76. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first">axes : (sequence of) int, optional</p>
  77. <p>squeeze : bool, optional</p>
  78. <dl class="docutils">
  79. <dt>i <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
  80. <dd><p class="first last">If True then update the data array in place. By default a new
  81. data array is created.</p>
  82. </dd>
  83. </dl>
  84. </td>
  85. </tr>
  86. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  87. <dt>out <span class="classifier-delimiter">:</span> <span class="classifier">cf.Data</span></dt>
  88. <dd><p class="first last">The collapsed array.</p>
  89. </dd>
  90. </dl>
  91. </td>
  92. </tr>
  93. <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
  94. </tr>
  95. </tbody>
  96. </table>
  97. </dd></dl>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="sphinxsidebar">
  103. <div class="sphinxsidebarwrapper">
  104. <h4>Previous topic</h4>
  105. <p class="topless"><a href="cf.Data.squeeze.html"
  106. title="previous chapter">cf.Data.squeeze</a></p>
  107. <h4>Next topic</h4>
  108. <p class="topless"><a href="cf.Data.sum_of_weights.html"
  109. title="next chapter">cf.Data.sum_of_weights</a></p>
  110. <h3>This Page</h3>
  111. <ul class="this-page-menu">
  112. <li><a href="../_sources/generated/cf.Data.sum.txt"
  113. rel="nofollow">Show Source</a></li>
  114. </ul>
  115. <div id="searchbox" style="display: none">
  116. <h3>Quick search</h3>
  117. <form class="search" action="../search.html" method="get">
  118. <input type="text" name="q" />
  119. <input type="submit" value="Go" />
  120. <input type="hidden" name="check_keywords" value="yes" />
  121. <input type="hidden" name="area" value="default" />
  122. </form>
  123. <p class="searchtip" style="font-size: 90%">
  124. Enter search terms or a module, class or function name.
  125. </p>
  126. </div>
  127. <script type="text/javascript">$('#searchbox').show(0);</script>
  128. </div>
  129. </div>
  130. <div class="clearer"></div>
  131. </div>
  132. <div class="related">
  133. <h3>Navigation</h3>
  134. <ul>
  135. <li class="right" style="margin-right: 10px">
  136. <a href="../genindex.html" title="General Index"
  137. >index</a></li>
  138. <li class="right" >
  139. <a href="cf.Data.sum_of_weights.html" title="cf.Data.sum_of_weights"
  140. >next</a> |</li>
  141. <li class="right" >
  142. <a href="cf.Data.squeeze.html" title="cf.Data.squeeze"
  143. >previous</a> |</li>
  144. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  145. <li><select onchange="location = this.options[this.selectedIndex].value;">
  146. <option value="../../1.0/index.html"selected>1.0
  147. <option value="../../0.9.9/index.html">0.9.9
  148. <option value="../../0.9.8.3/index.html">0.9.8.3
  149. <option value="../../archive.html">Archive
  150. </select>
  151. </li>
  152. <li><a href="../index.html">Documentation</a> &raquo;</li>
  153. <li><a href="../reference.html" >Reference manual</a> &raquo;</li>
  154. <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> &raquo;</li>
  155. <li><a href="../classes/cf.Data.html" >cf.Data</a> &raquo;</li>
  156. </ul>
  157. </div>
  158. <div class="footer">
  159. &copy; Copyright 2015, David Hassell.
  160. Last updated on May 27, 2015.
  161. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
  162. </div>
  163. </body>
  164. </html>