TheAlgorithms-C/dd/d8c/adaline__learning_8c_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.svg

333 lines
18 KiB
XML
Raw Normal View History

<?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 2.50.0 (20211204.2007)
-->
<!-- Title: main Pages: 1 -->
<!--zoomable 211 -->
<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[
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="text/javascript"><![CDATA[
var edges = document.getElementsByTagName('g');
if (edges && edges.length) {
for (var i=0;i<edges.length;i++) {
if (edges[i].id.substr(0,4)=='edge') {
edges[i].setAttribute('class','edge');
}
}
}
]]></script>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
</use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
</use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="dirArrow">
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040">
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
</use>
</g>
</defs>
<script type="text/javascript">
var viewWidth = 642;
var viewHeight = 211;
var sectionId = 'dynsection-1';
</script>
<script xlink:href="../../svgpan.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>main</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-207.09 638,-207.09 638,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#bfbfbf" stroke="black" points="0,-106.88 0,-125.88 38,-125.88 38,-106.88 0,-106.88"/>
<text text-anchor="middle" x="19" y="-113.88" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../dd/d8c/adaline__learning_8c.html#ab4ecb3accf5d9e0263087e7265bbe3a9" target="_top" xlink:title="test function to predict points in a 2D coordinate system above the line &#160;as +1 and others as &#45;1.">
<polygon fill="white" stroke="black" points="74,-106.88 74,-125.88 112,-125.88 112,-106.88 74,-106.88"/>
<text text-anchor="middle" x="93" y="-113.88" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M38.17,-116.38C45.87,-116.38 55.03,-116.38 63.58,-116.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="63.59,-119.88 73.59,-116.38 63.59,-112.88 63.59,-119.88"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../dd/d8c/adaline__learning_8c.html#a05cc9a0acb524fde727a4d7b4a747ee6" target="_top" xlink:title="test function to predict points in a 2D coordinate system above the line &#160;as +1 and others as &#45;1.">
<polygon fill="white" stroke="black" points="74,-144.88 74,-163.88 112,-163.88 112,-144.88 74,-144.88"/>
<text text-anchor="middle" x="93" y="-151.88" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge11" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M38.17,-125.97C46.21,-130.21 55.83,-135.29 64.71,-139.98"/>
<polygon fill="midnightblue" stroke="midnightblue" points="63.11,-143.09 73.59,-144.66 66.38,-136.9 63.11,-143.09"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a xlink:href="../../dd/d8c/adaline__learning_8c.html#a3f37b9f073f7e57fd0b39d70718af1b1" target="_top" xlink:title="test function to predict points in a 3D coordinate system lying within the sphere of radius 1 and cen...">
<polygon fill="white" stroke="black" points="74,-49.88 74,-68.88 112,-68.88 112,-49.88 74,-49.88"/>
<text text-anchor="middle" x="93" y="-56.88" font-family="Helvetica,sans-Serif" font-size="10.00">test3</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node11 -->
<g id="edge17" class="edge">
<title>Node1&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M32.21,-106.71C43.04,-98.14 59.05,-85.47 71.78,-75.39"/>
<polygon fill="midnightblue" stroke="midnightblue" points="74.3,-77.86 79.97,-68.91 69.95,-72.37 74.3,-77.86"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../da/d2a/group__adaline.html#gaa52120912e32d2893fe1c6d78da5befd" target="_top" xlink:title="Update the weights of the model using supervised learning for an array of vectors.">
<polygon fill="white" stroke="black" points="157,-30.88 157,-49.88 218,-49.88 218,-30.88 157,-30.88"/>
<text text-anchor="middle" x="187.5" y="-37.88" font-family="Helvetica,sans-Serif" font-size="10.00">adaline_fit</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M103.01,-106.54C113.31,-95.58 130.96,-77.66 148,-64.38 151.98,-61.28 156.39,-58.22 160.75,-55.39"/>
<polygon fill="midnightblue" stroke="midnightblue" points="162.87,-58.19 169.5,-49.93 159.17,-52.25 162.87,-58.19"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../da/d2a/group__adaline.html#gac70b578aee679005fd336073969c3d94" target="_top" xlink:title="predict the output of the model for given set of features">
<polygon fill="white" stroke="black" points="421,-125.88 421,-144.88 503,-144.88 503,-125.88 421,-125.88"/>
<text text-anchor="middle" x="462" y="-132.88" font-family="Helvetica,sans-Serif" font-size="10.00">adaline_predict</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge8" class="edge">
<title>Node2&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M103.14,-126.04C118.52,-142.29 147.91,-173.34 148,-173.38 244.97,-215.09 373.46,-172.4 430.96,-148.79"/>
<polygon fill="midnightblue" stroke="midnightblue" points="432.34,-152.01 440.2,-144.91 429.63,-145.56 432.34,-152.01"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../da/d2a/group__adaline.html#gadb1a7acb555ad62daaf3806bf2fed036" target="_top" xlink:title="Operator to print the weights of the model.">
<polygon fill="white" stroke="black" points="263,-68.88 263,-87.88 385,-87.88 385,-68.88 263,-68.88"/>
<text text-anchor="middle" x="324" y="-75.88" font-family="Helvetica,sans-Serif" font-size="10.00">adaline_get_weights_str</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node7 -->
<g id="edge7" class="edge">
<title>Node2&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M112.19,-108.8C122.52,-104.8 135.79,-100.15 148,-97.38 182.02,-89.66 220.49,-85.04 252.69,-82.3"/>
<polygon fill="midnightblue" stroke="midnightblue" points="253.22,-85.77 262.9,-81.48 252.65,-78.79 253.22,-85.77"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../da/d2a/group__adaline.html#ga6f35caa3084772cc126ac7b20f67f665" target="_top" xlink:title="delete dynamically allocated memory">
<polygon fill="white" stroke="black" points="148,-106.88 148,-125.88 227,-125.88 227,-106.88 148,-106.88"/>
<text text-anchor="middle" x="187.5" y="-113.88" font-family="Helvetica,sans-Serif" font-size="10.00">delete_adaline</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node8 -->
<g id="edge9" class="edge">
<title>Node2&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M112.28,-116.38C119.7,-116.38 128.66,-116.38 137.75,-116.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="137.99,-119.88 147.99,-116.38 137.99,-112.88 137.99,-119.88"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../da/d2a/group__adaline.html#gacd88962c5f6341e43cbc69b4a7d3485b" target="_top" xlink:title="Default constructor.">
<polygon fill="white" stroke="black" points="152,-144.88 152,-163.88 223,-163.88 223,-144.88 152,-144.88"/>
<text text-anchor="middle" x="187.5" y="-151.88" font-family="Helvetica,sans-Serif" font-size="10.00">new_adaline</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node9 -->
<g id="edge10" class="edge">
<title>Node2&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M112.28,-123.89C124.17,-128.77 140.01,-135.28 154.01,-141.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="152.75,-144.3 163.33,-144.86 155.41,-137.83 152.75,-144.3"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../da/d2a/group__adaline.html#ga20d3642e0a87f36fdb7bf91b023cd166" target="_top" xlink:title="Update the weights of the model using supervised learning for one feature vector.">
<polygon fill="white" stroke="black" points="275,-30.88 275,-49.88 373,-49.88 373,-30.88 275,-30.88"/>
<text text-anchor="middle" x="324" y="-37.88" font-family="Helvetica,sans-Serif" font-size="10.00">adaline_fit_sample</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M218.02,-40.38C231.65,-40.38 248.35,-40.38 264.39,-40.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="264.79,-43.88 274.79,-40.38 264.79,-36.88 264.79,-43.88"/>
</g>
<!-- Node3&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node3&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M218.02,-48.72C236.01,-53.8 259.33,-60.39 279.42,-66.07"/>
<polygon fill="midnightblue" stroke="midnightblue" points="278.71,-69.51 289.29,-68.86 280.62,-62.77 278.71,-69.51"/>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M364.59,-49.94C371.65,-52.47 378.74,-55.58 385,-59.38 410.39,-74.81 433.6,-100.45 447.52,-117.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="444.97,-120.05 453.91,-125.74 450.47,-115.72 444.97,-120.05"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../da/d2a/group__adaline.html#ga43576566b020c4157d4fb28f0dd45cfa" target="_top" xlink:title="Heaviside activation function">
<polygon fill="white" stroke="black" points="539,-125.88 539,-144.88 634,-144.88 634,-125.88 539,-125.88"/>
<text text-anchor="middle" x="586.5" y="-132.88" font-family="Helvetica,sans-Serif" font-size="10.00">adaline_activation</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M503.11,-135.38C511.34,-135.38 520.14,-135.38 528.82,-135.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="528.92,-138.88 538.92,-135.38 528.91,-131.88 528.92,-138.88"/>
</g>
<!-- Node10&#45;&gt;Node3 -->
<g id="edge12" class="edge">
<title>Node10&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M103.34,-144.88C106.18,-141.89 109.27,-138.55 112,-135.38 134.45,-109.35 158.72,-77.67 173.26,-58.28"/>
<polygon fill="midnightblue" stroke="midnightblue" points="176.21,-60.16 179.38,-50.05 170.6,-55.98 176.21,-60.16"/>
</g>
<!-- Node10&#45;&gt;Node5 -->
<g id="edge14" class="edge">
<title>Node10&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M102.82,-164.07C112.69,-174.13 129.7,-189.22 148,-195.38 179.18,-205.88 341.88,-206.16 385,-191.38 408.07,-183.47 430,-165.84 444.32,-152.46"/>
<polygon fill="midnightblue" stroke="midnightblue" points="447.08,-154.65 451.82,-145.17 442.21,-149.63 447.08,-154.65"/>
</g>
<!-- Node10&#45;&gt;Node7 -->
<g id="edge13" class="edge">
<title>Node10&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M112.38,-162.81C138.75,-173.64 188.39,-189.26 227,-173.38 264.74,-157.86 295.53,-119.54 311.38,-96.59"/>
<polygon fill="midnightblue" stroke="midnightblue" points="314.42,-98.34 317.06,-88.08 308.6,-94.46 314.42,-98.34"/>
</g>
<!-- Node10&#45;&gt;Node8 -->
<g id="edge15" class="edge">
<title>Node10&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M112.28,-146.87C124.17,-141.99 140.01,-135.48 154.01,-129.73"/>
<polygon fill="midnightblue" stroke="midnightblue" points="155.41,-132.94 163.33,-125.9 152.75,-126.46 155.41,-132.94"/>
</g>
<!-- Node10&#45;&gt;Node9 -->
<g id="edge16" class="edge">
<title>Node10&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M112.28,-154.38C120.73,-154.38 131.17,-154.38 141.53,-154.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="141.79,-157.88 151.79,-154.38 141.79,-150.88 141.79,-157.88"/>
</g>
<!-- Node11&#45;&gt;Node3 -->
<g id="edge18" class="edge">
<title>Node11&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M112.28,-55.63C122.23,-53.58 134.95,-50.97 147.04,-48.49"/>
<polygon fill="midnightblue" stroke="midnightblue" points="147.88,-51.89 156.98,-46.45 146.48,-45.03 147.88,-51.89"/>
</g>
<!-- Node11&#45;&gt;Node5 -->
<g id="edge20" class="edge">
<title>Node11&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M100.3,-49.83C109.2,-37.31 126.76,-15.95 148,-7.38 190.73,9.85 363.39,-8.56 385,-21.38 421.32,-42.93 443.81,-89.42 454.19,-115.89"/>
<polygon fill="midnightblue" stroke="midnightblue" points="451.03,-117.43 457.8,-125.58 457.59,-114.98 451.03,-117.43"/>
</g>
<!-- Node11&#45;&gt;Node7 -->
<g id="edge19" class="edge">
<title>Node11&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M103.71,-49.69C113.79,-40.38 130.51,-26.92 148,-21.38 181.47,-10.78 194.75,-7.51 227,-21.38 248.37,-30.57 243.28,-47.03 263,-59.38 266.34,-61.47 269.93,-63.35 273.64,-65.04"/>
<polygon fill="midnightblue" stroke="midnightblue" points="272.43,-68.33 283.01,-68.84 275.06,-61.84 272.43,-68.33"/>
</g>
<!-- Node11&#45;&gt;Node8 -->
<g id="edge21" class="edge">
<title>Node11&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M109.69,-69.05C124.13,-77.95 145.76,-91.28 162.39,-101.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="160.69,-104.59 171.04,-106.85 164.36,-98.63 160.69,-104.59"/>
</g>
<!-- Node11&#45;&gt;Node9 -->
<g id="edge22" class="edge">
<title>Node11&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M98.76,-68.94C106.96,-84.58 125.09,-115.85 148,-135.38 149.75,-136.87 151.64,-138.28 153.61,-139.61"/>
<polygon fill="midnightblue" stroke="midnightblue" points="152.16,-142.82 162.56,-144.86 155.71,-136.78 152.16,-142.82"/>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="adaline__learning_8c_a3c04138a5bfe5d72780bb7e82a18e627_cgraph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
</svg>