CINXE.COM
RubyGems - enumerable-statistics - Versions diffs - 2.0.5 → 2.0.6 - Mend - Supply Chain Defender
<!DOCTYPE html> <html> <head> <title> RubyGems - enumerable-statistics - Versions diffs - 2.0.5 → 2.0.6 - Mend - Supply Chain Defender </title> <link rel="icon" type="image/png" href="/packs/media/images/production/favicons/favicon-32x32-fa0286238d4d512e71dba3881cbbcc42.png" /> <link rel="mask-icon" type="image/x-icon" href="/packs/media/images/production/favicons/favicon-786db6a85c0dea068c1a7047338024d2.svg" /> <link rel="apple-touch-icon" type="image/png" href="/packs/media/images/production/favicons/apple-touch-icon-11491aa2351c88b3b48534d1576a2ff9.png" /> <link rel="shortcut icon" type="image/x-icon" href="/packs/media/images/production/favicons/favicon-81c62e5500c39bd10e99844e94455995.ico" /> <meta name="csrf-param" content="authenticity_token" /> <meta name="csrf-token" content="cIt4ENkZEbKTSZ5UPLpOKgVutNWCk2ViQOZt-66BU2Y8fOIfZlGUR0_2czpQ02ZJqU2fTmp1YBeoqJuBTC8mMw" /> <meta content='no-cache' name='turbolinks-cache-control'> <meta content='width=device-width, initial-scale=1' name='viewport'> <link rel="stylesheet" href="/packs/css/application-b44eb75784afb1e9f8ce.css" media="all" /> <script src="/packs/js/application-9f130b109122a7b55e22.js" data-turbolinks-track="reload"></script> <link href='https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i' rel='stylesheet'> </head> <body class='registries ruby_gems diffs' id='page-top'> <div id='wrapper'> <div class='d-flex flex-column' id='content-wrapper'> <div id='content'> <nav class='navbar navbar-expand navbar-light bg-white topbar mb-4 shadow'> <a class='sidebar-brand d-flex align-items-center justify-content-center' href='/'> <div class='sidebar-brand-text mx-3 d-none d-xxl-block d-xl-block'> <img alt="Diffend" src="/packs/media/images/production/logos/vertical-dark-5363ad390f9fcfd11bfecf89a3fb60f1.svg" /> </div> </a> <div class='container'> <ul class='navbar-nav'> <li class='nav-item'> <a class='nav-link' href='/gems'> <span class='mr-2 d-none d-lg-inline text-gray-600'> RubyGems </span> </a> </li> <li class='nav-item'> <a class='nav-link' href='/npm'> <span class='mr-2 d-none d-lg-inline text-gray-600'> npm </span> </a> </li> <div class='topbar-divider d-sm-block'></div> <li class='nav-item'> <a class='nav-link' href='/organizations'> <span class='mr-2 d-none d-lg-inline text-gray-600'> Organizations </span> </a> </li> </ul> <ul class='navbar-nav'> <div class='topbar-divider d-none d-sm-block'></div> <li class='nav-item'> <a class='nav-link' href='/users/sign_in'> <span class='mr-2 d-none d-lg-inline text-gray-600'> <i class='fas fa-key fa-fw mr-2'></i> Log in </span> </a> </li> <li class='nav-item'> <a class='nav-link' href='/users/sign_up'> <span class='mr-2 d-none d-lg-inline text-gray-600'> <i class='fas fa-user-plus fa-fw mr-2'></i> Sign up </span> </a> </li> </ul> </div> </nav> <div class='container'> <div class='row'> <div class='col mb-1'> <nav> <ol class='breadcrumb'> <li class='breadcrumb-item'> <a href="/gems">RubyGems</a> </li> <li class='breadcrumb-item'> <a href="/gems/enumerable-statistics">enumerable-statistics</a> </li> <li class='breadcrumb-item'> <a href="/gems/enumerable-statistics">Versions diffs</a> </li> <li class='breadcrumb-item'> <a href="/gems/enumerable-statistics/2.0.5/2.0.6">2.0.5 → 2.0.6</a> </li> </ol> </nav> </div> </div> <div class='row'> <div class='col'> <div class='text-right mb-4'> </div> </div> </div> <div class='row'> <div class='col align-items-center mb-4'> <div class='text-center'> <h2 class='text-gray-800'> enumerable-statistics 2.0.5 → 2.0.6 </h2> </div> </div> </div> <div data-diff-id='4db57395-3a61-41a2-b2d4-ae370447c2db' data-diff-state='finished' id='diff-id'> <div class='row'> <div class='col pt-2 text-black'> <div class='row'> <div class='col-lg-12 mb-4 mt-2'> <div class='card bg-info text-white shadow'> <div class='card-body'> <span class='icon text-white-100 mr-2'> <i class='fas fa-info-circle'></i> </span> Sign up to get <strong>free</strong> protection for your applications and to get access to all the features. </div> </div> </div> </div> <div id='diff'> <div class='mb-3'> <div class="d2h-file-list-wrapper"> <div class="d2h-file-list-header"> <span class="d2h-file-list-title">Files changed (6)</span> <a class="d2h-file-switch d2h-hide">hide</a> <a class="d2h-file-switch d2h-show">show</a> </div> <ol class="d2h-file-list"> <li class="d2h-file-list-line"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1" viewBox="0 0 14 16" width="14"> <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path> </svg> <a href="/gems/enumerable-statistics/2.0.5/2.0.6/page/1#d2h-683205" class="d2h-file-name">checksums.yaml</a> <span class="d2h-file-stats"> <span class="d2h-lines-added">+4</span> <span class="d2h-lines-deleted">-4</span> </span> </span> </li> <li class="d2h-file-list-line"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1" viewBox="0 0 14 16" width="14"> <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path> </svg> <a href="/gems/enumerable-statistics/2.0.5/2.0.6/page/1#d2h-670634" class="d2h-file-name">data/CHANGELOG.md</a> <span class="d2h-file-stats"> <span class="d2h-lines-added">+5</span> <span class="d2h-lines-deleted">-0</span> </span> </span> </li> <li class="d2h-file-list-line"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1" viewBox="0 0 14 16" width="14"> <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path> </svg> <a href="/gems/enumerable-statistics/2.0.5/2.0.6/page/1#d2h-358784" class="d2h-file-name">data/ext/enumerable/statistics/extension/statistics.c</a> <span class="d2h-file-stats"> <span class="d2h-lines-added">+52</span> <span class="d2h-lines-deleted">-29</span> </span> </span> </li> <li class="d2h-file-list-line"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1" viewBox="0 0 14 16" width="14"> <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path> </svg> <a href="/gems/enumerable-statistics/2.0.5/2.0.6/page/1#d2h-165822" class="d2h-file-name">data/lib/enumerable_statistics/histogram.rb</a> <span class="d2h-file-stats"> <span class="d2h-lines-added">+2</span> <span class="d2h-lines-deleted">-1</span> </span> </span> </li> <li class="d2h-file-list-line"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1" viewBox="0 0 14 16" width="14"> <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path> </svg> <a href="/gems/enumerable-statistics/2.0.5/2.0.6/page/1#d2h-406538" class="d2h-file-name">data/lib/enumerable_statistics/version.rb</a> <span class="d2h-file-stats"> <span class="d2h-lines-added">+1</span> <span class="d2h-lines-deleted">-1</span> </span> </span> </li> <li class="d2h-file-list-line"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1" viewBox="0 0 14 16" width="14"> <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path> </svg> <a href="/gems/enumerable-statistics/2.0.5/2.0.6/page/1#d2h-004177" class="d2h-file-name">metadata</a> <span class="d2h-file-stats"> <span class="d2h-lines-added">+1</span> <span class="d2h-lines-deleted">-1</span> </span> </span> </li> </ol> </div> </div> <div id="d2h-683205" class="d2h-file-wrapper" data-lang="yaml"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-683205">checksums.yaml</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> <label class="d2h-file-collapse"> <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed"> Viewed </label> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,7 +1,7 @@</div> </td> </tr><tr> <td id="d2h-683205-23" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-683205-23"> <div class="line-num1">1</div> <div class="line-num2">1</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">---</span> </div> </td> </tr><tr> <td id="d2h-683205-34" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-683205-34"> <div class="line-num1">2</div> <div class="line-num2">2</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">SHA256:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">3</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> metadata.gz: <del>3fa86766eb3c5369422d08bac77705368b0bde5faa216eecd9f78115eb7548b6</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">4</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> data.tar.gz: <del>313dc69fe5d6b193278489b576af4bb90679eebf6814c36a2924a1241cd5c8be</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> metadata.gz: <ins>9ca7750e402868e65da3619203a19ad1b7bd86348aee8ca2168c35db6fe6f262</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">4</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> data.tar.gz: <ins>425bd2623655dd3f189ee50f12b0d44d3c25bed86194d2f31eb530431cab1090</ins></span> </div> </td> </tr><tr> <td id="d2h-683205-89" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-683205-89"> <div class="line-num1">5</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">SHA512:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">6</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> metadata.gz: <del>13fd8a73ae4e83aa85210cbbec1882a2129802aa377f7100ffa72e48ec7df685ba5eff1553cd2ef0b29eddd2b13715769de822adcc881c6d57122212d4c8c13a</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">7</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> data.tar.gz: <del>d4dc08f32d2d9a43d743e213b2725f0bc41ac7d6d14c68ccecd1b3563d022c8c1c8b60eea682bce554bc7b5425e3c4b552766bb8b3a7faa386164ee8f00303b7</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">6</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> metadata.gz: <ins>37a9f4e270fee3e34852bccd0adc18d288514c1d8363807b2db16877ada2174aea7c1f8c8ef7cea94cb3274bb5716c35ee689ecde95a5a71cb7724e1afd2a164</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">7</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> data.tar.gz: <ins>5426b9ff42ce8033cf403be706da8a3dea94c88056a7a621218c0bc9aabe676571f868c263bef55266175759c95cc7f54267108f86cb483b0adacd11ce844968</ins></span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-670634" class="d2h-file-wrapper" data-lang="md"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-670634">data/CHANGELOG.md</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> <label class="d2h-file-collapse"> <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed"> Viewed </label> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,3 +1,8 @@</div> </td> </tr><tr> <td id="d2h-670634-171" class="d2h-code-linenumber d2h-ins"><a href="#d2h-670634-171"> <div class="line-num1"></div> <div class="line-num2">1</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># 2.0.6</span> </div> </td> </tr><tr> <td id="d2h-670634-182" class="d2h-code-linenumber d2h-ins"><a href="#d2h-670634-182"> <div class="line-num1"></div> <div class="line-num2">2</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-670634-193" class="d2h-code-linenumber d2h-ins"><a href="#d2h-670634-193"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">- Add edges parameter in histogram</span> </div> </td> </tr><tr> <td id="d2h-670634-204" class="d2h-code-linenumber d2h-ins"><a href="#d2h-670634-204"> <div class="line-num1"></div> <div class="line-num2">4</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">- Rename parameter in histogram to fix typo: `weight` to `weights`</span> </div> </td> </tr><tr> <td id="d2h-670634-215" class="d2h-code-linenumber d2h-ins"><a href="#d2h-670634-215"> <div class="line-num1"></div> <div class="line-num2">5</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-670634-226" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-670634-226"> <div class="line-num1">1</div> <div class="line-num2">6</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"># 2.0.5</span> </div> </td> </tr><tr> <td id="d2h-670634-237" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-670634-237"> <div class="line-num1">2</div> <div class="line-num2">7</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-670634-248" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-670634-248"> <div class="line-num1">3</div> <div class="line-num2">8</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">- Add weighted histogram support</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-358784" class="d2h-file-wrapper" data-lang="c"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-358784">data/ext/enumerable/statistics/extension/statistics.c</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> <label class="d2h-file-collapse"> <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed"> Viewed </label> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -2280,13 +2280,47 @@ ary_histogram_calculate_edge(VALUE ary, const long nbins, const int left_p)</div> </td> </tr><tr> <td id="d2h-358784-286" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-286"> <div class="line-num1">2280</div> <div class="line-num2">2280</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> return edge;</span> </div> </td> </tr><tr> <td id="d2h-358784-297" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-297"> <div class="line-num1">2281</div> <div class="line-num2">2281</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">}</span> </div> </td> </tr><tr> <td id="d2h-358784-308" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-308"> <div class="line-num1">2282</div> <div class="line-num2">2282</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-319" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-319"> <div class="line-num1"></div> <div class="line-num2">2283</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">static VALUE</span> </div> </td> </tr><tr> <td id="d2h-358784-330" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-330"> <div class="line-num1"></div> <div class="line-num2">2284</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">check_histogram_weight_array(VALUE weight_array, const long ary_len)</span> </div> </td> </tr><tr> <td id="d2h-358784-341" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-341"> <div class="line-num1"></div> <div class="line-num2">2285</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">{</span> </div> </td> </tr><tr> <td id="d2h-358784-352" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-352"> <div class="line-num1"></div> <div class="line-num2">2286</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> if (weight_array == Qundef) return Qnil;</span> </div> </td> </tr><tr> <td id="d2h-358784-363" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-363"> <div class="line-num1"></div> <div class="line-num2">2287</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-374" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-374"> <div class="line-num1"></div> <div class="line-num2">2288</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> weight_array = rb_check_convert_type(weight_array, T_ARRAY, "Array", "to_ary");</span> </div> </td> </tr><tr> <td id="d2h-358784-385" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-385"> <div class="line-num1"></div> <div class="line-num2">2289</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> if (RARRAY_LEN(weight_array) != ary_len) {</span> </div> </td> </tr><tr> <td id="d2h-358784-396" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-396"> <div class="line-num1"></div> <div class="line-num2">2290</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> rb_raise(rb_eArgError, "weight array must have the same number of items as the receiver array");</span> </div> </td> </tr><tr> <td id="d2h-358784-407" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-407"> <div class="line-num1"></div> <div class="line-num2">2291</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-418" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-418"> <div class="line-num1"></div> <div class="line-num2">2292</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-429" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-429"> <div class="line-num1"></div> <div class="line-num2">2293</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> return weight_array;</span> </div> </td> </tr><tr> <td id="d2h-358784-440" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-440"> <div class="line-num1"></div> <div class="line-num2">2294</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">}</span> </div> </td> </tr><tr> <td id="d2h-358784-451" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-451"> <div class="line-num1"></div> <div class="line-num2">2295</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-462" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-462"> <div class="line-num1"></div> <div class="line-num2">2296</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">static VALUE</span> </div> </td> </tr><tr> <td id="d2h-358784-473" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-473"> <div class="line-num1"></div> <div class="line-num2">2297</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">check_histogram_edges(VALUE edges)</span> </div> </td> </tr><tr> <td id="d2h-358784-484" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-484"> <div class="line-num1"></div> <div class="line-num2">2298</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">{</span> </div> </td> </tr><tr> <td id="d2h-358784-495" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-495"> <div class="line-num1"></div> <div class="line-num2">2299</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> if (edges == Qundef) return Qnil;</span> </div> </td> </tr><tr> <td id="d2h-358784-506" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-506"> <div class="line-num1"></div> <div class="line-num2">2300</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> return rb_check_convert_type(edges, T_ARRAY, "Array", "to_ary");</span> </div> </td> </tr><tr> <td id="d2h-358784-517" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-517"> <div class="line-num1"></div> <div class="line-num2">2301</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">}</span> </div> </td> </tr><tr> <td id="d2h-358784-528" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-528"> <div class="line-num1"></div> <div class="line-num2">2302</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-539" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-539"> <div class="line-num1"></div> <div class="line-num2">2303</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">static int</span> </div> </td> </tr><tr> <td id="d2h-358784-550" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-550"> <div class="line-num1"></div> <div class="line-num2">2304</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">check_histogram_left_p(VALUE closed)</span> </div> </td> </tr><tr> <td id="d2h-358784-561" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-561"> <div class="line-num1"></div> <div class="line-num2">2305</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">{</span> </div> </td> </tr><tr> <td id="d2h-358784-572" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-572"> <div class="line-num1"></div> <div class="line-num2">2306</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> int left_p = (closed != sym_right);</span> </div> </td> </tr><tr> <td id="d2h-358784-583" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-583"> <div class="line-num1"></div> <div class="line-num2">2307</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> if (left_p && closed != Qundef && closed != sym_left) {</span> </div> </td> </tr><tr> <td id="d2h-358784-594" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-594"> <div class="line-num1"></div> <div class="line-num2">2308</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> rb_raise(rb_eArgError, "invalid value for :closed keyword "</span> </div> </td> </tr><tr> <td id="d2h-358784-605" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-605"> <div class="line-num1"></div> <div class="line-num2">2309</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> "(%"PRIsVALUE" for :left or :right)", closed);</span> </div> </td> </tr><tr> <td id="d2h-358784-616" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-616"> <div class="line-num1"></div> <div class="line-num2">2310</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-627" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-627"> <div class="line-num1"></div> <div class="line-num2">2311</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> return left_p;</span> </div> </td> </tr><tr> <td id="d2h-358784-638" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-638"> <div class="line-num1"></div> <div class="line-num2">2312</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">}</span> </div> </td> </tr><tr> <td id="d2h-358784-649" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-649"> <div class="line-num1"></div> <div class="line-num2">2313</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-660" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-660"> <div class="line-num1">2283</div> <div class="line-num2">2314</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">/* call-seq:</span> </div> </td> </tr><tr> <td id="d2h-358784-671" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-671"> <div class="line-num1">2284</div> <div class="line-num2">2315</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> * ary.histogram(nbins=:auto, weight: nil, closed: :left)</span> </div> </td> </tr><tr> <td id="d2h-358784-682" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-682"> <div class="line-num1">2285</div> <div class="line-num2">2316</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> *</span> </div> </td> </tr><tr> <td id="d2h-358784-693" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-693"> <div class="line-num1">2286</div> <div class="line-num2">2317</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> * @param [Integer] nbins The approximate number of bins</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2287</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> * @params [Array<Numeric>] <del>weight</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2318</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> * @params [Array<Numeric>] <ins>weights</ins></span> </div> </td> </tr><tr> <td id="d2h-358784-726" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-726"> <div class="line-num1">2288</div> <div class="line-num2">2319</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> * An optional weight array, that has the same length as the receiver.</span> </div> </td> </tr><tr> <td id="d2h-358784-737" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-737"> <div class="line-num1">2289</div> <div class="line-num2">2320</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> * `weight[i]` means the weight value of the i-th element in the receiver.</span> </div> </td> </tr><tr> <td id="d2h-358784-748" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-748"> <div class="line-num1"></div> <div class="line-num2">2321</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> * @params [Array<Numeric>] edges</span> </div> </td> </tr><tr> <td id="d2h-358784-759" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-759"> <div class="line-num1"></div> <div class="line-num2">2322</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> * An optional edge array, that specify the bin edges.</span> </div> </td> </tr><tr> <td id="d2h-358784-770" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-770"> <div class="line-num1"></div> <div class="line-num2">2323</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> * This array must be sorted.</span> </div> </td> </tr><tr> <td id="d2h-358784-781" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-781"> <div class="line-num1">2290</div> <div class="line-num2">2324</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> * @param [:left, :right] closed</span> </div> </td> </tr><tr> <td id="d2h-358784-792" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-792"> <div class="line-num1">2291</div> <div class="line-num2">2325</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> * If :left (the default), the bin interval are left-closed.</span> </div> </td> </tr><tr> <td id="d2h-358784-803" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-803"> <div class="line-num1">2292</div> <div class="line-num2">2326</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> * If :right, the bin interval are right-closed.</span> </div> </td> </tr> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -2296,10 +2330,11 @@ ary_histogram_calculate_edge(VALUE ary, const long nbins, const int left_p)</div> </td> </tr><tr> <td id="d2h-358784-820" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-820"> <div class="line-num1">2296</div> <div class="line-num2">2330</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">static VALUE</span> </div> </td> </tr><tr> <td id="d2h-358784-831" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-831"> <div class="line-num1">2297</div> <div class="line-num2">2331</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">ary_histogram(int argc, VALUE *argv, VALUE ary)</span> </div> </td> </tr><tr> <td id="d2h-358784-842" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-842"> <div class="line-num1">2298</div> <div class="line-num2">2332</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">{</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2299</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> VALUE arg0, kwargs, <del>edge, </del>bin_weights;</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2333</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> VALUE arg0, kwargs, bin_weights;</span> </div> </td> </tr><tr> <td id="d2h-358784-875" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-875"> <div class="line-num1">2300</div> <div class="line-num2">2334</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> long nbins, n_bin_weights, i;</span> </div> </td> </tr><tr> <td id="d2h-358784-886" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-886"> <div class="line-num1">2301</div> <div class="line-num2">2335</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-897" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-897"> <div class="line-num1">2302</div> <div class="line-num2">2336</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> VALUE weight_array = Qnil;</span> </div> </td> </tr><tr> <td id="d2h-358784-908" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-908"> <div class="line-num1"></div> <div class="line-num2">2337</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> VALUE edges = Qnil;</span> </div> </td> </tr><tr> <td id="d2h-358784-919" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-919"> <div class="line-num1">2303</div> <div class="line-num2">2338</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> int left_p = 1;</span> </div> </td> </tr><tr> <td id="d2h-358784-930" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-930"> <div class="line-num1">2304</div> <div class="line-num2">2339</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-941" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-941"> <div class="line-num1">2305</div> <div class="line-num2">2340</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> rb_scan_args(argc, argv, "01:", &arg0, &kwargs);</span> </div> </td> </tr> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -2311,48 +2346,36 @@ ary_histogram(int argc, VALUE *argv, VALUE ary)</div> </td> </tr><tr> <td id="d2h-358784-958" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-958"> <div class="line-num1">2311</div> <div class="line-num2">2346</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-969" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-969"> <div class="line-num1">2312</div> <div class="line-num2">2347</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-980" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-980"> <div class="line-num1">2313</div> <div class="line-num2">2348</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> if (!NIL_P(kwargs)) {</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2314</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> enum { <del>kw_weight</del>, kw_closed };</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2315</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> static ID kwarg_keys[<del>2</del>];</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2316</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> VALUE kwarg_vals[<del>2</del>];</span> </div> </td> </tr><tr> <td id="d2h-358784-1024" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1024"> <div class="line-num1">2317</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> VALUE closed;</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2349</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> enum { <ins>kw_weights</ins>, <ins>kw_edges, </ins>kw_closed };</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2350</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> static ID kwarg_keys[<ins>3</ins>];</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2351</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> VALUE kwarg_vals[<ins>3</ins>];</span> </div> </td> </tr><tr> <td id="d2h-358784-1068" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1068"> <div class="line-num1">2318</div> <div class="line-num2">2352</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-1079" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1079"> <div class="line-num1">2319</div> <div class="line-num2">2353</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> if (!kwarg_keys[0]) {</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2320</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> kwarg_keys[<del>kw_weight</del>] = rb_intern("<del>weight</del>");</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2354</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> kwarg_keys[<ins>kw_weights</ins>] = rb_intern("<ins>weights</ins>");</span> </div> </td> </tr><tr> <td id="d2h-358784-1112" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-1112"> <div class="line-num1"></div> <div class="line-num2">2355</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> kwarg_keys[kw_edges] = rb_intern("edges");</span> </div> </td> </tr><tr> <td id="d2h-358784-1123" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1123"> <div class="line-num1">2321</div> <div class="line-num2">2356</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> kwarg_keys[kw_closed] = rb_intern("closed");</span> </div> </td> </tr><tr> <td id="d2h-358784-1134" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1134"> <div class="line-num1">2322</div> <div class="line-num2">2357</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-1145" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1145"> <div class="line-num1">2323</div> <div class="line-num2">2358</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2324</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> rb_get_kwargs(kwargs, kwarg_keys, 0, <del>2</del>, kwarg_vals);</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2359</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> rb_get_kwargs(kwargs, kwarg_keys, 0, <ins>3</ins>, kwarg_vals);</span> </div> </td> </tr><tr> <td id="d2h-358784-1178" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1178"> <div class="line-num1">2325</div> <div class="line-num2">2360</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2326</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> weight_array = kwarg_vals[<del>kw_weight</del>];</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2327</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> <del>if</del> (<del>weight_array != Qundef</del>)<del> {</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2328</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del> weight_array</del> = <del>rb_check_convert_type</del>(<del>weight_array, T_ARRAY, "Array", "to_ary"</del>);</span> </div> </td> </tr><tr> <td id="d2h-358784-1222" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1222"> <div class="line-num1">2329</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> if (RARRAY_LEN(weight_array) != RARRAY_LEN(ary)) {</span> </div> </td> </tr><tr> <td id="d2h-358784-1233" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1233"> <div class="line-num1">2330</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> rb_raise(rb_eArgError, "weight array must have the same number of items as the receiver array");</span> </div> </td> </tr><tr> <td id="d2h-358784-1244" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1244"> <div class="line-num1">2331</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-1255" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1255"> <div class="line-num1">2332</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-1266" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1266"> <div class="line-num1">2333</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> else {</span> </div> </td> </tr><tr> <td id="d2h-358784-1277" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1277"> <div class="line-num1">2334</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> weight_array = Qnil;</span> </div> </td> </tr><tr> <td id="d2h-358784-1288" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1288"> <div class="line-num1">2335</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-1299" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1299"> <div class="line-num1">2336</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-358784-1310" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1310"> <div class="line-num1">2337</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> closed = kwarg_vals[kw_closed];</span> </div> </td> </tr><tr> <td id="d2h-358784-1321" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1321"> <div class="line-num1">2338</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> left_p = (closed != sym_right);</span> </div> </td> </tr><tr> <td id="d2h-358784-1332" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1332"> <div class="line-num1">2339</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> if (left_p && closed != Qundef && closed != sym_left) {</span> </div> </td> </tr><tr> <td id="d2h-358784-1343" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1343"> <div class="line-num1">2340</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> rb_raise(rb_eArgError, "invalid value for :closed keyword "</span> </div> </td> </tr><tr> <td id="d2h-358784-1354" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1354"> <div class="line-num1">2341</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> "(%"PRIsVALUE" for :left or :right)", closed);</span> </div> </td> </tr><tr> <td id="d2h-358784-1365" class="d2h-code-linenumber d2h-del"><a href="#d2h-358784-1365"> <div class="line-num1">2342</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2361</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> weight_array = <ins>check_histogram_weight_array(</ins>kwarg_vals[<ins>kw_weights</ins>]<ins>, RARRAY_LEN(ary))</ins>;</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2362</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> <ins>edges</ins> <ins>= check_histogram_edges</ins>(<ins>kwarg_vals[kw_edges]</ins>)<ins>;</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2363</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins> left_p</ins> = <ins>check_histogram_left_p</ins>(<ins>kwarg_vals[kw_closed]</ins>);</span> </div> </td> </tr><tr> <td id="d2h-358784-1409" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1409"> <div class="line-num1">2343</div> <div class="line-num2">2364</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-1420" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1420"> <div class="line-num1">2344</div> <div class="line-num2">2365</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2345</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> <del>edge</del> <del>= ary_histogram_calculate_edge</del>(<del>ary,</del> <del>nbins, left_p);</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2366</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> <ins>if</ins> (<ins>NIL_P(edges))</ins> <ins>{</ins></span> </div> </td> </tr><tr> <td id="d2h-358784-1453" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-1453"> <div class="line-num1"></div> <div class="line-num2">2367</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> edges = ary_histogram_calculate_edge(ary, nbins, left_p);</span> </div> </td> </tr><tr> <td id="d2h-358784-1464" class="d2h-code-linenumber d2h-ins"><a href="#d2h-358784-1464"> <div class="line-num1"></div> <div class="line-num2">2368</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-1475" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1475"> <div class="line-num1">2346</div> <div class="line-num2">2369</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2347</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> n_bin_weights = RARRAY_LEN(<del>edge</del>) - 1;</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2370</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> n_bin_weights = RARRAY_LEN(<ins>edges</ins>) - 1;</span> </div> </td> </tr><tr> <td id="d2h-358784-1508" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1508"> <div class="line-num1">2348</div> <div class="line-num2">2371</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> bin_weights = rb_ary_new_capa(n_bin_weights);</span> </div> </td> </tr><tr> <td id="d2h-358784-1519" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1519"> <div class="line-num1">2349</div> <div class="line-num2">2372</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> for (i = 0; i < n_bin_weights; ++i) {</span> </div> </td> </tr><tr> <td id="d2h-358784-1530" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1530"> <div class="line-num1">2350</div> <div class="line-num2">2373</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> rb_ary_store(bin_weights, i, INT2FIX(0));</span> </div> </td> </tr><tr> <td id="d2h-358784-1541" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1541"> <div class="line-num1">2351</div> <div class="line-num2">2374</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> }</span> </div> </td> </tr><tr> <td id="d2h-358784-1552" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1552"> <div class="line-num1">2352</div> <div class="line-num2">2375</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2353</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> histogram_weights_push_values(bin_weights, <del>edge</del>, ary, weight_array, left_p);</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2376</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> histogram_weights_push_values(bin_weights, <ins>edges</ins>, ary, weight_array, left_p);</span> </div> </td> </tr><tr> <td id="d2h-358784-1585" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1585"> <div class="line-num1">2354</div> <div class="line-num2">2377</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2355</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> return rb_struct_new(cHistogram, <del>edge</del>, bin_weights,</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2378</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> return rb_struct_new(cHistogram, <ins>edges</ins>, bin_weights,</span> </div> </td> </tr><tr> <td id="d2h-358784-1618" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1618"> <div class="line-num1">2356</div> <div class="line-num2">2379</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> left_p ? sym_left : sym_right,</span> </div> </td> </tr><tr> <td id="d2h-358784-1629" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1629"> <div class="line-num1">2357</div> <div class="line-num2">2380</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> Qfalse);</span> </div> </td> </tr><tr> <td id="d2h-358784-1640" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-358784-1640"> <div class="line-num1">2358</div> <div class="line-num2">2381</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">}</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-165822" class="d2h-file-wrapper" data-lang="rb"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-165822">data/lib/enumerable_statistics/histogram.rb</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> <label class="d2h-file-collapse"> <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed"> Viewed </label> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,5 +1,6 @@</div> </td> </tr><tr> <td id="d2h-165822-1678" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-165822-1678"> <div class="line-num1">1</div> <div class="line-num2">1</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">module EnumerableStatistics</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> class Histogram < Struct.new(:<del>edge</del>, :weights, :closed, :isdensity)</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> class Histogram < Struct.new(:<ins>edges</ins>, :weights, :closed, :isdensity)</span> </div> </td> </tr><tr> <td id="d2h-165822-1711" class="d2h-code-linenumber d2h-ins"><a href="#d2h-165822-1711"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> alias edge edges</span> </div> </td> </tr><tr> <td id="d2h-165822-1722" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-165822-1722"> <div class="line-num1">3</div> <div class="line-num2">4</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> alias density? isdensity</span> </div> </td> </tr><tr> <td id="d2h-165822-1733" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-165822-1733"> <div class="line-num1">4</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-165822-1744" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-165822-1744"> <div class="line-num1">5</div> <div class="line-num2">6</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-406538" class="d2h-file-wrapper" data-lang="rb"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-406538">data/lib/enumerable_statistics/version.rb</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> <label class="d2h-file-collapse"> <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed"> Viewed </label> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,5 +1,5 @@</div> </td> </tr><tr> <td id="d2h-406538-1782" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-406538-1782"> <div class="line-num1">1</div> <div class="line-num2">1</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">module EnumerableStatistics</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> VERSION = '2.0.<del>5</del>'</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">2</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> VERSION = '2.0.<ins>6</ins>'</span> </div> </td> </tr><tr> <td id="d2h-406538-1815" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-406538-1815"> <div class="line-num1">3</div> <div class="line-num2">3</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-406538-1826" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-406538-1826"> <div class="line-num1">4</div> <div class="line-num2">4</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> module Version</span> </div> </td> </tr><tr> <td id="d2h-406538-1837" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-406538-1837"> <div class="line-num1">5</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> numbers, TAG = VERSION.split('-', 2)</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-004177" class="d2h-file-wrapper" data-lang=""> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-004177">metadata</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> <label class="d2h-file-collapse"> <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed"> Viewed </label> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,7 +1,7 @@</div> </td> </tr><tr> <td id="d2h-004177-1875" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-004177-1875"> <div class="line-num1">1</div> <div class="line-num2">1</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">--- !ruby/object:Gem::Specification</span> </div> </td> </tr><tr> <td id="d2h-004177-1886" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-004177-1886"> <div class="line-num1">2</div> <div class="line-num2">2</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">name: enumerable-statistics</span> </div> </td> </tr><tr> <td id="d2h-004177-1897" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-004177-1897"> <div class="line-num1">3</div> <div class="line-num2">3</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">version: !ruby/object:Gem::Version</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">4</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> version: 2.0.<del>5</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">4</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> version: 2.0.<ins>6</ins></span> </div> </td> </tr><tr> <td id="d2h-004177-1930" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-004177-1930"> <div class="line-num1">5</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">platform: ruby</span> </div> </td> </tr><tr> <td id="d2h-004177-1941" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-004177-1941"> <div class="line-num1">6</div> <div class="line-num2">6</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">authors:</span> </div> </td> </tr><tr> <td id="d2h-004177-1952" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-004177-1952"> <div class="line-num1">7</div> <div class="line-num2">7</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">- Kenta Murata</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <footer class='sticky-footer mt-3'> <div class='container text-center mb-3 copyright'> <a class='mr-4 text-gray-600' href='mailto:diffend@whitesourcesoftware.com'> Contact Us </a> <a class='mr-4 text-gray-600' href='https://www.whitesourcesoftware.com/terms-of-service/'> Terms of Service </a> <a class='mr-4 text-gray-600' href='https://www.whitesourcesoftware.com/privacy-policy/'> Privacy Policy </a> <a class='mr-4 text-gray-600' href='https://diffend.io/docs'> Docs </a> </div> <div class='container mt-4'> <div class='copyright text-center'> Copyright © 2024 Mend Software </div> </div> </footer> </div> </div> </div> </body> </html>