<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>scipy.spatial.Rectangle.split — SciPy v1.1.0.dev0+4e64658 Reference Guide</title> <link rel="stylesheet" type="text/css" href="../_static/css/spc-bootstrap.css"> <link rel="stylesheet" type="text/css" href="../_static/css/spc-extend.css"> <link rel="stylesheet" href="../_static/scipy.css" type="text/css" > <link rel="stylesheet" href="../_static/pygments.css" type="text/css" > <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '1.1.0.dev0+4e64658', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: false }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/scipy-mathjax/MathJax.js?config=scipy-mathjax"></script> <script type="text/javascript" src="../_static/js/copybutton.js"></script> <link rel="index" title="Index" href="../genindex.html" > <link rel="search" title="Search" href="../search.html" > <link rel="top" title="SciPy v1.1.0.dev0+4e64658 Reference Guide" href="../index.html" > <link rel="up" title="scipy.spatial.Rectangle" href="scipy.spatial.Rectangle.html" > <link rel="next" title="scipy.spatial.Rectangle.volume" href="scipy.spatial.Rectangle.volume.html" > <link rel="prev" title="scipy.spatial.Rectangle.min_distance_rectangle" href="scipy.spatial.Rectangle.min_distance_rectangle.html" > </head> <body> <div class="container"> <div class="header"> </div> </div> <div class="container"> <div class="main"> <div class="row-fluid"> <div class="span12"> <div class="spc-navbar"> <ul class="nav nav-pills pull-left"> <li class="active"><a href="../index.html">SciPy v1.1.0.dev0+4e64658 Reference Guide</a></li> <li class="active"><a href="../spatial.html" >Spatial algorithms and data structures (<code class="docutils literal"><span class="pre">scipy.spatial</span></code>)</a></li> <li class="active"><a href="scipy.spatial.Rectangle.html" accesskey="U">scipy.spatial.Rectangle</a></li> </ul> <ul class="nav nav-pills pull-right"> <li class="active"> <a href="../genindex.html" title="General Index" accesskey="I">index</a> </li> <li class="active"> <a href="../py-modindex.html" title="Python Module Index" >modules</a> </li> <li class="active"> <a href="scipy.spatial.Rectangle.volume.html" title="scipy.spatial.Rectangle.volume" accesskey="N">next</a> </li> <li class="active"> <a href="scipy.spatial.Rectangle.min_distance_rectangle.html" title="scipy.spatial.Rectangle.min_distance_rectangle" accesskey="P">previous</a> </li> </ul> </div> </div> </div> <div class="row-fluid"> <div class="spc-rightsidebar span3"> <div class="sphinxsidebarwrapper"> <p class="logo"><a href="../index.html"> <img class="logo" src="../_static/scipyshiny_small.png" alt="Logo"> </a></p> <h4>Previous topic</h4> <p class="topless"><a href="scipy.spatial.Rectangle.min_distance_rectangle.html" title="previous chapter">scipy.spatial.Rectangle.min_distance_rectangle</a></p> <h4>Next topic</h4> <p class="topless"><a href="scipy.spatial.Rectangle.volume.html" title="next chapter">scipy.spatial.Rectangle.volume</a></p> </div> </div> <div class="span9"> <div class="bodywrapper"> <div class="body" id="spc-section-body"> <div class="section" id="scipy-spatial-rectangle-split"> <h1>scipy.spatial.Rectangle.split<a class="headerlink" href="#scipy-spatial-rectangle-split" title="Permalink to this headline">¶</a></h1> <dl class="method"> <dt id="scipy.spatial.Rectangle.split"> <code class="descclassname">Rectangle.</code><code class="descname">split</code><span class="sig-paren">(</span><em>d</em>, <em>split</em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/scipy/scipy/blob/4e64658/scipy/spatial/kdtree.py#L95-L117"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#scipy.spatial.Rectangle.split" title="Permalink to this definition">¶</a></dt> <dd><p>Produce two hyperrectangles by splitting.</p> <p>In general, if you need to compute maximum and minimum distances to the children, it can be done more efficiently by updating the maximum and minimum distances to the parent.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>d</strong> : int</p> <blockquote> <div><p>Axis to split hyperrectangle along.</p> </div></blockquote> <p><strong>split</strong> : float</p> <blockquote class="last"> <div><p>Position along axis <em class="xref py py-obj">d</em> to split at.</p> </div></blockquote> </td> </tr> </tbody> </table> </dd></dl> </div> </div> </div> </div> </div> </div> </div> <div class="container container-navbar-bottom"> <div class="spc-navbar"> </div> </div> <div class="container"> <div class="footer"> <div class="row-fluid"> <ul class="inline pull-left"> <li> © Copyright 2008-2016, The Scipy community. </li> <li> Last updated on Sep 21, 2017. </li> <li> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.6.3. </li> </ul> </div> </div> </div> </body> </html>