mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-17 03:51:27 +08:00
Documentation for 0953376d31
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.6"/>
|
||||
<meta name="generator" content="Doxygen 1.9.7"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: machine_learning::k_nearest_neighbors::Knn Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.6 -->
|
||||
<!-- Generated by Doxygen 1.9.7 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
@@ -110,8 +110,7 @@ $(document).ready(function(){initNavTree('da/d94/classmachine__learning_1_1k__ne
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for machine_learning::k_nearest_neighbors::Knn:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d58/classmachine__learning_1_1k__nearest__neighbors_1_1_knn__coll__graph.svg" width="315" height="244"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d58/classmachine__learning_1_1k__nearest__neighbors_1_1_knn__coll__graph.svg" width="315" height="244"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
||||
@@ -192,8 +191,8 @@ Private Attributes</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 68</span> : <a class="code hl_variable" href="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn.html#a16ddc13621eec6ac5f83658b3401a581">X_</a>(X), <a class="code hl_variable" href="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn.html#a209383503fb6c03afac405a80bace964">Y_</a>(Y){};</div>
|
||||
<div class="ttc" id="aclassmachine__learning_1_1k__nearest__neighbors_1_1_knn_html_a16ddc13621eec6ac5f83658b3401a581"><div class="ttname"><a href="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn.html#a16ddc13621eec6ac5f83658b3401a581">machine_learning::k_nearest_neighbors::Knn::X_</a></div><div class="ttdeci">std::vector< std::vector< double > > X_</div><div class="ttdoc">attributes vector</div><div class="ttdef"><b>Definition:</b> k_nearest_neighbors.cpp:57</div></div>
|
||||
<div class="ttc" id="aclassmachine__learning_1_1k__nearest__neighbors_1_1_knn_html_a209383503fb6c03afac405a80bace964"><div class="ttname"><a href="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn.html#a209383503fb6c03afac405a80bace964">machine_learning::k_nearest_neighbors::Knn::Y_</a></div><div class="ttdeci">std::vector< int > Y_</div><div class="ttdoc">labels vector</div><div class="ttdef"><b>Definition:</b> k_nearest_neighbors.cpp:58</div></div>
|
||||
<div class="ttc" id="aclassmachine__learning_1_1k__nearest__neighbors_1_1_knn_html_a16ddc13621eec6ac5f83658b3401a581"><div class="ttname"><a href="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn.html#a16ddc13621eec6ac5f83658b3401a581">machine_learning::k_nearest_neighbors::Knn::X_</a></div><div class="ttdeci">std::vector< std::vector< double > > X_</div><div class="ttdoc">attributes vector</div><div class="ttdef"><b>Definition</b> k_nearest_neighbors.cpp:57</div></div>
|
||||
<div class="ttc" id="aclassmachine__learning_1_1k__nearest__neighbors_1_1_knn_html_a209383503fb6c03afac405a80bace964"><div class="ttname"><a href="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn.html#a209383503fb6c03afac405a80bace964">machine_learning::k_nearest_neighbors::Knn::Y_</a></div><div class="ttdeci">std::vector< int > Y_</div><div class="ttdoc">labels vector</div><div class="ttdef"><b>Definition</b> k_nearest_neighbors.cpp:58</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -386,11 +385,11 @@ Private Attributes</h2></td></tr>
|
||||
<div class="line"><span class="lineno"> 131</span> }</div>
|
||||
<div class="ttc" id="aat_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/at.html">std::vector::at</a></div><div class="ttdeci">T at(T... args)</div></div>
|
||||
<div class="ttc" id="abegin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/begin.html">std::vector::begin</a></div><div class="ttdeci">T begin(T... args)</div></div>
|
||||
<div class="ttc" id="acomposite__simpson__rule_8cpp_html_a1b74d828b33760094906797042b89442"><div class="ttname"><a href="../../d4/d18/composite__simpson__rule_8cpp.html#a1b74d828b33760094906797042b89442">numerical_methods::simpson_method::k</a></div><div class="ttdeci">double k(double x)</div><div class="ttdoc">Another test function.</div><div class="ttdef"><b>Definition:</b> composite_simpson_rule.cpp:117</div></div>
|
||||
<div class="ttc" id="acomposite__simpson__rule_8cpp_html_a1b74d828b33760094906797042b89442"><div class="ttname"><a href="../../d4/d18/composite__simpson__rule_8cpp.html#a1b74d828b33760094906797042b89442">numerical_methods::simpson_method::k</a></div><div class="ttdeci">double k(double x)</div><div class="ttdoc">Another test function.</div><div class="ttdef"><b>Definition</b> composite_simpson_rule.cpp:117</div></div>
|
||||
<div class="ttc" id="adistance_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/distance.html">std::distance</a></div><div class="ttdeci">T distance(T... args)</div></div>
|
||||
<div class="ttc" id="aemplace_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html">std::vector::emplace_back</a></div><div class="ttdeci">T emplace_back(T... args)</div></div>
|
||||
<div class="ttc" id="aend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/end.html">std::vector::end</a></div><div class="ttdeci">T end(T... args)</div></div>
|
||||
<div class="ttc" id="ak__nearest__neighbors_8cpp_html_ad6ae16e50bb153ebaa7251d0aaa97b69"><div class="ttname"><a href="../../d4/d3e/k__nearest__neighbors_8cpp.html#ad6ae16e50bb153ebaa7251d0aaa97b69">machine_learning::k_nearest_neighbors::euclidean_distance</a></div><div class="ttdeci">double euclidean_distance(const std::vector< T > &a, const std::vector< T > &b)</div><div class="ttdoc">Compute the Euclidean distance between two vectors.</div><div class="ttdef"><b>Definition:</b> k_nearest_neighbors.cpp:43</div></div>
|
||||
<div class="ttc" id="ak__nearest__neighbors_8cpp_html_ad6ae16e50bb153ebaa7251d0aaa97b69"><div class="ttname"><a href="../../d4/d3e/k__nearest__neighbors_8cpp.html#ad6ae16e50bb153ebaa7251d0aaa97b69">machine_learning::k_nearest_neighbors::euclidean_distance</a></div><div class="ttdeci">double euclidean_distance(const std::vector< T > &a, const std::vector< T > &b)</div><div class="ttdoc">Compute the Euclidean distance between two vectors.</div><div class="ttdef"><b>Definition</b> k_nearest_neighbors.cpp:43</div></div>
|
||||
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
|
||||
<div class="ttc" id="apush_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">std::vector::push_back</a></div><div class="ttdeci">T push_back(T... args)</div></div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
@@ -400,8 +399,7 @@ Private Attributes</h2></td></tr>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn_a62e152db014cd4de675fa906e5ef2861_cgraph.svg" width="551" height="440"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn_a62e152db014cd4de675fa906e5ef2861_cgraph.svg" width="551" height="440"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -415,7 +413,7 @@ Here is the call graph for this function:</div>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d8/d77/namespacemachine__learning.html">machine_learning</a></li><li class="navelem"><b>k_nearest_neighbors</b></li><li class="navelem"><a class="el" href="../../da/d94/classmachine__learning_1_1k__nearest__neighbors_1_1_knn.html">Knn</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,16 +1,32 @@
|
||||
<map id="machine_learning::k_nearest_neighbors::Knn::predict" name="machine_learning::k_nearest_neighbors::Knn::predict">
|
||||
<area shape="rect" id="node1" title="Classify sample." alt="" coords="5,214,148,270"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/at.html#" title=" " alt="" coords="232,5,335,31"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/begin.html#" title=" " alt="" coords="421,56,543,82"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/emplace_back.html#" title=" " alt="" coords="196,261,371,287"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/end.html#" title=" " alt="" coords="426,105,538,131"/>
|
||||
<area shape="rect" id="node6" href="$d4/d3e/k__nearest__neighbors_8cpp.html#ad6ae16e50bb153ebaa7251d0aaa97b69" title="Compute the Euclidean distance between two vectors." alt="" coords="212,181,355,237"/>
|
||||
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="206,311,361,336"/>
|
||||
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="226,360,341,386"/>
|
||||
<area shape="rect" id="node14" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/sort.html#" title=" " alt="" coords="249,409,318,435"/>
|
||||
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/accumulate.html#" title=" " alt="" coords="425,204,539,230"/>
|
||||
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/iterator/back_inserter.html#" title=" " alt="" coords="420,253,545,279"/>
|
||||
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/shrink_to_fit.html#" title=" " alt="" coords="419,303,545,344"/>
|
||||
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/sqrt.html#" title=" " alt="" coords="448,368,517,394"/>
|
||||
<area shape="rect" id="node11" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/transform.html#" title=" " alt="" coords="431,155,533,180"/>
|
||||
<area shape="rect" id="Node000001" title="Classify sample." alt="" coords="5,214,148,270"/>
|
||||
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/at.html#" title=" " alt="" coords="232,5,335,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="86,213,102,176,125,132,156,87,194,48,217,34,220,38,197,52,160,91,130,135,107,178,91,215"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/begin.html#" title=" " alt="" coords="421,56,543,82"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="93,212,134,158,162,131,194,109,247,87,302,74,357,66,406,64,406,69,357,72,303,79,248,92,197,114,166,135,138,162,97,216"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/emplace_back.html#" title=" " alt="" coords="196,261,371,287"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="149,251,182,256,181,261,148,256"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/end.html#" title=" " alt="" coords="426,105,538,131"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="101,212,142,174,167,157,195,142,250,125,307,115,362,111,411,111,411,116,362,116,307,121,251,130,197,147,170,161,145,178,105,216"/>
|
||||
<area shape="rect" id="Node000006" href="$d4/d3e/k__nearest__neighbors_8cpp.html#ad6ae16e50bb153ebaa7251d0aaa97b69" title="Compute the Euclidean distance between two vectors." alt="" coords="212,181,355,237"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="148,228,197,220,198,225,149,233"/>
|
||||
<area shape="rect" id="Node000012" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="206,311,361,336"/>
|
||||
<area shape="poly" id="edge14_Node000001_Node000012" title=" " alt="" coords="132,268,197,297,215,303,213,308,195,302,130,273"/>
|
||||
<area shape="rect" id="Node000013" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="226,360,341,386"/>
|
||||
<area shape="poly" id="edge15_Node000001_Node000013" title=" " alt="" coords="104,269,145,309,197,347,213,354,210,359,194,351,142,313,100,273"/>
|
||||
<area shape="rect" id="Node000014" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/sort.html#" title=" " alt="" coords="249,409,318,435"/>
|
||||
<area shape="poly" id="edge16_Node000001_Node000014" title=" " alt="" coords="94,269,135,333,163,367,197,396,235,412,233,417,194,400,160,371,130,337,89,272"/>
|
||||
<area shape="poly" id="edge8_Node000006_Node000003" title=" " alt="" coords="310,178,358,134,418,91,426,86,429,90,420,95,361,138,314,182"/>
|
||||
<area shape="poly" id="edge9_Node000006_Node000005" title=" " alt="" coords="338,178,418,140,430,134,432,139,420,145,340,183"/>
|
||||
<area shape="poly" id="edge10_Node000006_Node000006" title=" " alt="" coords="244,180,244,171,252,162,265,156,283,154,305,157,318,164,315,169,303,162,283,160,266,161,255,166,249,173,249,181"/>
|
||||
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/accumulate.html#" title=" " alt="" coords="425,204,539,230"/>
|
||||
<area shape="poly" id="edge6_Node000006_Node000007" title=" " alt="" coords="355,209,411,211,410,217,355,214"/>
|
||||
<area shape="rect" id="Node000008" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/iterator/back_inserter.html#" title=" " alt="" coords="420,253,545,279"/>
|
||||
<area shape="poly" id="edge7_Node000006_Node000008" title=" " alt="" coords="356,227,422,246,420,251,354,232"/>
|
||||
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/shrink_to_fit.html#" title=" " alt="" coords="419,303,545,344"/>
|
||||
<area shape="poly" id="edge11_Node000006_Node000009" title=" " alt="" coords="353,235,373,247,397,268,421,289,427,293,424,298,417,294,393,272,369,251,350,240"/>
|
||||
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/sqrt.html#" title=" " alt="" coords="448,368,517,394"/>
|
||||
<area shape="poly" id="edge12_Node000006_Node000010" title=" " alt="" coords="357,234,373,247,391,275,397,302,403,328,421,354,436,364,433,369,417,357,398,330,392,303,386,277,369,251,353,238"/>
|
||||
<area shape="rect" id="Node000011" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/transform.html#" title=" " alt="" coords="431,155,533,180"/>
|
||||
<area shape="poly" id="edge13_Node000006_Node000011" title=" " alt="" coords="354,191,416,178,417,184,355,197"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
13413e6cbd2dd7633621781b649096a7
|
||||
20827012b237e163d463f2ea102bfeda
|
||||
@@ -6,12 +6,22 @@
|
||||
<!-- Title: machine_learning::k_nearest_neighbors::Knn::predict Pages: 1 -->
|
||||
<svg width="413pt" height="330pt"
|
||||
viewBox="0.00 0.00 413.00 330.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 326.25)">
|
||||
<title>machine_learning::k_nearest_neighbors::Knn::predict</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Classify sample.">
|
||||
<g id="a_Node000001"><a xlink:title="Classify sample.">
|
||||
<polygon fill="#999999" stroke="#666666" points="106.75,-165.5 0,-165.5 0,-123.75 106.75,-123.75 106.75,-165.5"/>
|
||||
<text text-anchor="start" x="8" y="-152" font-family="Helvetica,sans-Serif" font-size="10.00">machine_learning::k</text>
|
||||
<text text-anchor="start" x="8" y="-140.75" font-family="Helvetica,sans-Serif" font-size="10.00">_nearest_neighbors::</text>
|
||||
@@ -20,69 +30,81 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/at.html#" xlink:title=" ">
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/at.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="246.88,-322.25 170.12,-322.25 170.12,-303 246.88,-303 246.88,-322.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-308.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::at</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M62.12,-165.78C74.53,-196.89 101.72,-254.93 142.75,-288.62 147.86,-292.82 153.77,-296.32 159.9,-299.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="158.05,-302.68 168.63,-303.34 160.77,-296.23 158.05,-302.68"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/begin.html#" xlink:title=" ">
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/begin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="403.5,-284.25 311.75,-284.25 311.75,-265 403.5,-265 403.5,-284.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-270.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::begin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M67.04,-165.77C82.03,-188.77 109.24,-224.63 142.75,-242.62 191.64,-268.88 255.38,-275.48 300.51,-276.38"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="300.25,-279.88 310.28,-276.49 300.32,-272.88 300.25,-279.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html#" xlink:title=" ">
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="274.25,-130.25 142.75,-130.25 142.75,-111 274.25,-111 274.25,-130.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::emplace_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.07,-136.37C115.22,-135.09 123.77,-133.75 132.3,-132.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="132.73,-135.73 142.06,-130.72 131.64,-128.82 132.73,-135.73"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/end.html#" xlink:title=" ">
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/end.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="399.75,-247.25 315.5,-247.25 315.5,-228 399.75,-228 399.75,-247.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-233.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::end</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M73.09,-165.94C89.56,-183.12 115.16,-206.23 142.75,-217.62 194.7,-239.09 259.62,-242.21 304.22,-241.15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="304.22,-244.62 314.11,-240.8 304,-237.62 304.22,-244.62"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d4/d3e/k__nearest__neighbors_8cpp.html#ad6ae16e50bb153ebaa7251d0aaa97b69" target="_top" xlink:title="Compute the Euclidean distance between two vectors.">
|
||||
<g id="a_Node000006"><a xlink:href="../../d4/d3e/k__nearest__neighbors_8cpp.html#ad6ae16e50bb153ebaa7251d0aaa97b69" target="_top" xlink:title="Compute the Euclidean distance between two vectors.">
|
||||
<polygon fill="white" stroke="#666666" points="261.88,-190.5 155.12,-190.5 155.12,-148.75 261.88,-148.75 261.88,-190.5"/>
|
||||
<text text-anchor="start" x="163.12" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">machine_learning::k</text>
|
||||
<text text-anchor="start" x="163.12" y="-165.75" font-family="Helvetica,sans-Serif" font-size="10.00">_nearest_neighbors::</text>
|
||||
@@ -91,108 +113,135 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.07,-153.23C118.98,-155.17 131.75,-157.26 144.05,-159.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="143.27,-162.85 153.71,-161.01 144.4,-155.94 143.27,-162.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<g id="a_Node000012"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="266.38,-93.25 150.62,-93.25 150.62,-74 266.38,-74 266.38,-93.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node12 -->
|
||||
<g id="edge14" class="edge">
|
||||
<g id="edge14_Node000001_Node000012" class="edge">
|
||||
<title>Node1->Node12</title>
|
||||
<g id="a_edge14_Node000001_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M94.17,-123.36C109.14,-115.87 126.47,-107.79 142.75,-101.62 147.17,-99.95 151.8,-98.36 156.48,-96.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="157.18,-100 165.72,-93.74 155.14,-93.31 157.18,-100"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="node13" class="node">
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<g id="a_Node000013"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="251.75,-56.25 165.25,-56.25 165.25,-37 251.75,-37 251.75,-56.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node13 -->
|
||||
<g id="edge15" class="edge">
|
||||
<g id="edge15_Node000001_Node000013" class="edge">
|
||||
<title>Node1->Node13</title>
|
||||
<g id="a_edge15_Node000001_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M72.64,-123.26C89.21,-105.16 115.2,-79.8 142.75,-64.62 146.49,-62.56 150.49,-60.72 154.6,-59.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="155.68,-62.05 163.93,-55.4 153.34,-55.46 155.68,-62.05"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14 -->
|
||||
<g id="node14" class="node">
|
||||
<g id="Node000014" class="node">
|
||||
<title>Node14</title>
|
||||
<g id="a_node14"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/sort.html#" xlink:title=" ">
|
||||
<g id="a_Node000014"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/sort.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="234.5,-19.25 182.5,-19.25 182.5,0 234.5,0 234.5,-19.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::sort</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node14 -->
|
||||
<g id="edge16" class="edge">
|
||||
<g id="edge16_Node000001_Node000014" class="edge">
|
||||
<title>Node1->Node14</title>
|
||||
<g id="a_edge16_Node000001_Node000014"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M64.74,-123.52C78.78,-97.12 106.34,-52.4 142.75,-27.62 151.32,-21.79 161.74,-17.84 171.7,-15.17"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="172.25,-18.4 181.21,-12.74 170.68,-11.58 172.25,-18.4"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node3 -->
|
||||
<g id="edge8" class="edge">
|
||||
<g id="edge8_Node000006_Node000003" class="edge">
|
||||
<title>Node6->Node3</title>
|
||||
<g id="a_edge8_Node000006_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M229.84,-190.95C249.09,-210.17 279.55,-238.17 310.25,-256.62 312.29,-257.85 314.44,-259.03 316.64,-260.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="314.92,-263.67 325.47,-264.66 317.84,-257.3 314.92,-263.67"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge9" class="edge">
|
||||
<g id="edge9_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge9_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M250.28,-190.91C268.45,-200.12 290.24,-210.8 310.25,-219.62 313.24,-220.94 316.35,-222.26 319.49,-223.56"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="317.9,-227.09 328.48,-227.56 320.5,-220.59 317.9,-227.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node6 -->
|
||||
<g id="edge10" class="edge">
|
||||
<g id="edge10_Node000006_Node000006" class="edge">
|
||||
<title>Node6->Node6</title>
|
||||
<g id="a_edge10_Node000006_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M180.98,-190.82C178.35,-200.3 187.53,-208.5 208.5,-208.5 220.95,-208.5 229.24,-205.61 233.38,-201.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="236.96,-202.37 236.02,-191.82 230.18,-200.65 236.96,-202.37"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/accumulate.html#" xlink:title=" ">
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/accumulate.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="400.5,-173.25 314.75,-173.25 314.75,-154 400.5,-154 400.5,-173.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-159.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::accumulate</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<g id="edge6_Node000006_Node000007" class="edge">
|
||||
<title>Node6->Node7</title>
|
||||
<g id="a_edge6_Node000006_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.2,-167.48C275.73,-166.92 290.29,-166.33 303.83,-165.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="303.58,-169.25 313.43,-165.35 303.29,-162.26 303.58,-169.25"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/iterator/back_inserter.html#" xlink:title=" ">
|
||||
<g id="a_Node000008"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/iterator/back_inserter.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="404.62,-136.25 310.62,-136.25 310.62,-117 404.62,-117 404.62,-136.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-122.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::back_inserter</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<g id="edge7_Node000006_Node000008" class="edge">
|
||||
<title>Node6->Node8</title>
|
||||
<g id="a_edge7_Node000006_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.2,-154.22C278.41,-149.48 296.1,-144.32 311.74,-139.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="312.57,-142.85 321.19,-136.69 310.61,-136.14 312.57,-142.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/shrink_to_fit.html#" xlink:title=" ">
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/shrink_to_fit.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="405,-98.88 310.25,-98.88 310.25,-68.38 405,-68.38 405,-98.88"/>
|
||||
<text text-anchor="start" x="318.25" y="-85.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::shrink</text>
|
||||
<text text-anchor="middle" x="357.62" y="-74.12" font-family="Helvetica,sans-Serif" font-size="10.00">_to_fit</text>
|
||||
@@ -200,40 +249,64 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node9 -->
|
||||
<g id="edge11" class="edge">
|
||||
<g id="edge11_Node000006_Node000009" class="edge">
|
||||
<title>Node6->Node9</title>
|
||||
<g id="a_edge11_Node000006_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M259.45,-148.31C264.56,-145.59 269.59,-142.68 274.25,-139.62 292.15,-127.89 292.61,-119.75 310.25,-107.62 311.74,-106.6 313.28,-105.59 314.85,-104.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="316.26,-107.24 323.09,-99.14 312.7,-101.21 316.26,-107.24"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/sqrt.html#" xlink:title=" ">
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/sqrt.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="383.62,-50.25 331.62,-50.25 331.62,-31 383.62,-31 383.62,-50.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-36.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::sqrt</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node10 -->
|
||||
<g id="edge12" class="edge">
|
||||
<g id="edge12_Node000006_Node000010" class="edge">
|
||||
<title>Node6->Node10</title>
|
||||
<g id="a_edge12_Node000006_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.24,-149.33C266.59,-146.46 270.68,-143.24 274.25,-139.62 301.67,-111.9 282.22,-86.72 310.25,-59.62 313.56,-56.43 317.48,-53.74 321.62,-51.49"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.83,-54.33 330.48,-46.99 319.93,-47.96 322.83,-54.33"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/transform.html#" xlink:title=" ">
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/transform.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="396,-210.25 319.25,-210.25 319.25,-191 396,-191 396,-210.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-196.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::transform</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node11 -->
|
||||
<g id="edge13" class="edge">
|
||||
<g id="edge13_Node000006_Node000011" class="edge">
|
||||
<title>Node6->Node11</title>
|
||||
<g id="a_edge13_Node000006_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.2,-180.73C277.33,-183.92 293.74,-187.37 308.57,-190.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="307.54,-194.07 318.05,-192.71 308.99,-187.22 307.54,-194.07"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,287 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 8.0.5 (20230430.1635)
|
||||
-->
|
||||
<!-- Title: machine_learning::k_nearest_neighbors::Knn::predict Pages: 1 -->
|
||||
<svg width="413pt" height="330pt"
|
||||
viewBox="0.00 0.00 413.00 330.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 326.25)">
|
||||
<title>machine_learning::k_nearest_neighbors::Knn::predict</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Classify sample.">
|
||||
<polygon fill="#999999" stroke="#666666" points="106.75,-165.5 0,-165.5 0,-123.75 106.75,-123.75 106.75,-165.5"/>
|
||||
<text text-anchor="start" x="8" y="-152" font-family="Helvetica,sans-Serif" font-size="10.00">machine_learning::k</text>
|
||||
<text text-anchor="start" x="8" y="-140.75" font-family="Helvetica,sans-Serif" font-size="10.00">_nearest_neighbors::</text>
|
||||
<text text-anchor="middle" x="53.38" y="-129.5" font-family="Helvetica,sans-Serif" font-size="10.00">Knn::predict</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/at.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="246.88,-322.25 170.12,-322.25 170.12,-303 246.88,-303 246.88,-322.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-308.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::at</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M62.12,-165.78C74.53,-196.89 101.72,-254.93 142.75,-288.62 147.86,-292.82 153.77,-296.32 159.9,-299.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="158.05,-302.68 168.63,-303.34 160.77,-296.23 158.05,-302.68"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/begin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="403.5,-284.25 311.75,-284.25 311.75,-265 403.5,-265 403.5,-284.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-270.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::begin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M67.04,-165.77C82.03,-188.77 109.24,-224.63 142.75,-242.62 191.64,-268.88 255.38,-275.48 300.51,-276.38"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="300.25,-279.88 310.28,-276.49 300.32,-272.88 300.25,-279.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="274.25,-130.25 142.75,-130.25 142.75,-111 274.25,-111 274.25,-130.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::emplace_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.07,-136.37C115.22,-135.09 123.77,-133.75 132.3,-132.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="132.73,-135.73 142.06,-130.72 131.64,-128.82 132.73,-135.73"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/end.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="399.75,-247.25 315.5,-247.25 315.5,-228 399.75,-228 399.75,-247.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-233.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::end</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M73.09,-165.94C89.56,-183.12 115.16,-206.23 142.75,-217.62 194.7,-239.09 259.62,-242.21 304.22,-241.15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="304.22,-244.62 314.11,-240.8 304,-237.62 304.22,-244.62"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:href="../../d4/d3e/k__nearest__neighbors_8cpp.html#ad6ae16e50bb153ebaa7251d0aaa97b69" target="_top" xlink:title="Compute the Euclidean distance between two vectors.">
|
||||
<polygon fill="white" stroke="#666666" points="261.88,-190.5 155.12,-190.5 155.12,-148.75 261.88,-148.75 261.88,-190.5"/>
|
||||
<text text-anchor="start" x="163.12" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">machine_learning::k</text>
|
||||
<text text-anchor="start" x="163.12" y="-165.75" font-family="Helvetica,sans-Serif" font-size="10.00">_nearest_neighbors::</text>
|
||||
<text text-anchor="middle" x="208.5" y="-154.5" font-family="Helvetica,sans-Serif" font-size="10.00">euclidean_distance</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.07,-153.23C118.98,-155.17 131.75,-157.26 144.05,-159.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="143.27,-162.85 153.71,-161.01 144.4,-155.94 143.27,-162.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="266.38,-93.25 150.62,-93.25 150.62,-74 266.38,-74 266.38,-93.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node12 -->
|
||||
<g id="edge14_Node000001_Node000012" class="edge">
|
||||
<title>Node1->Node12</title>
|
||||
<g id="a_edge14_Node000001_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M94.17,-123.36C109.14,-115.87 126.47,-107.79 142.75,-101.62 147.17,-99.95 151.8,-98.36 156.48,-96.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="157.18,-100 165.72,-93.74 155.14,-93.31 157.18,-100"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_Node000013"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="251.75,-56.25 165.25,-56.25 165.25,-37 251.75,-37 251.75,-56.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node13 -->
|
||||
<g id="edge15_Node000001_Node000013" class="edge">
|
||||
<title>Node1->Node13</title>
|
||||
<g id="a_edge15_Node000001_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M72.64,-123.26C89.21,-105.16 115.2,-79.8 142.75,-64.62 146.49,-62.56 150.49,-60.72 154.6,-59.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="155.68,-62.05 163.93,-55.4 153.34,-55.46 155.68,-62.05"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14 -->
|
||||
<g id="Node000014" class="node">
|
||||
<title>Node14</title>
|
||||
<g id="a_Node000014"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/sort.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="234.5,-19.25 182.5,-19.25 182.5,0 234.5,0 234.5,-19.25"/>
|
||||
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::sort</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node14 -->
|
||||
<g id="edge16_Node000001_Node000014" class="edge">
|
||||
<title>Node1->Node14</title>
|
||||
<g id="a_edge16_Node000001_Node000014"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M64.74,-123.52C78.78,-97.12 106.34,-52.4 142.75,-27.62 151.32,-21.79 161.74,-17.84 171.7,-15.17"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="172.25,-18.4 181.21,-12.74 170.68,-11.58 172.25,-18.4"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node3 -->
|
||||
<g id="edge8_Node000006_Node000003" class="edge">
|
||||
<title>Node6->Node3</title>
|
||||
<g id="a_edge8_Node000006_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M229.84,-190.95C249.09,-210.17 279.55,-238.17 310.25,-256.62 312.29,-257.85 314.44,-259.03 316.64,-260.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="314.92,-263.67 325.47,-264.66 317.84,-257.3 314.92,-263.67"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge9_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge9_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M250.28,-190.91C268.45,-200.12 290.24,-210.8 310.25,-219.62 313.24,-220.94 316.35,-222.26 319.49,-223.56"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="317.9,-227.09 328.48,-227.56 320.5,-220.59 317.9,-227.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node6 -->
|
||||
<g id="edge10_Node000006_Node000006" class="edge">
|
||||
<title>Node6->Node6</title>
|
||||
<g id="a_edge10_Node000006_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M180.98,-190.82C178.35,-200.3 187.53,-208.5 208.5,-208.5 220.95,-208.5 229.24,-205.61 233.38,-201.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="236.96,-202.37 236.02,-191.82 230.18,-200.65 236.96,-202.37"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/accumulate.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="400.5,-173.25 314.75,-173.25 314.75,-154 400.5,-154 400.5,-173.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-159.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::accumulate</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node7 -->
|
||||
<g id="edge6_Node000006_Node000007" class="edge">
|
||||
<title>Node6->Node7</title>
|
||||
<g id="a_edge6_Node000006_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.2,-167.48C275.73,-166.92 290.29,-166.33 303.83,-165.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="303.58,-169.25 313.43,-165.35 303.29,-162.26 303.58,-169.25"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/iterator/back_inserter.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="404.62,-136.25 310.62,-136.25 310.62,-117 404.62,-117 404.62,-136.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-122.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::back_inserter</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node8 -->
|
||||
<g id="edge7_Node000006_Node000008" class="edge">
|
||||
<title>Node6->Node8</title>
|
||||
<g id="a_edge7_Node000006_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.2,-154.22C278.41,-149.48 296.1,-144.32 311.74,-139.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="312.57,-142.85 321.19,-136.69 310.61,-136.14 312.57,-142.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/shrink_to_fit.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="405,-98.88 310.25,-98.88 310.25,-68.38 405,-68.38 405,-98.88"/>
|
||||
<text text-anchor="start" x="318.25" y="-85.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::shrink</text>
|
||||
<text text-anchor="middle" x="357.62" y="-74.12" font-family="Helvetica,sans-Serif" font-size="10.00">_to_fit</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node9 -->
|
||||
<g id="edge11_Node000006_Node000009" class="edge">
|
||||
<title>Node6->Node9</title>
|
||||
<g id="a_edge11_Node000006_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M259.45,-148.31C264.56,-145.59 269.59,-142.68 274.25,-139.62 292.15,-127.89 292.61,-119.75 310.25,-107.62 311.74,-106.6 313.28,-105.59 314.85,-104.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="316.26,-107.24 323.09,-99.14 312.7,-101.21 316.26,-107.24"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/sqrt.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="383.62,-50.25 331.62,-50.25 331.62,-31 383.62,-31 383.62,-50.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-36.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::sqrt</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node10 -->
|
||||
<g id="edge12_Node000006_Node000010" class="edge">
|
||||
<title>Node6->Node10</title>
|
||||
<g id="a_edge12_Node000006_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.24,-149.33C266.59,-146.46 270.68,-143.24 274.25,-139.62 301.67,-111.9 282.22,-86.72 310.25,-59.62 313.56,-56.43 317.48,-53.74 321.62,-51.49"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.83,-54.33 330.48,-46.99 319.93,-47.96 322.83,-54.33"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/transform.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="396,-210.25 319.25,-210.25 319.25,-191 396,-191 396,-210.25"/>
|
||||
<text text-anchor="middle" x="357.62" y="-196.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::transform</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node11 -->
|
||||
<g id="edge13_Node000006_Node000011" class="edge">
|
||||
<title>Node6->Node11</title>
|
||||
<g id="a_edge13_Node000006_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.2,-180.73C277.33,-183.92 293.74,-187.37 308.57,-190.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="307.54,-194.07 318.05,-192.71 308.99,-187.22 307.54,-194.07"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user