Documentation for 779e2f073e
104
annotated.html
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: Data Structures</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('annotated.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -90,8 +90,7 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Data Structures</div> </div>
|
||||
<div class="headertitle"><div class="title">Data Structures</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock">Here are the data structures with brief descriptions:</div><div class="directory">
|
||||
@@ -102,42 +101,43 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();
|
||||
<tr id="row_3_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/daa/structadaline.html" target="_self">adaline</a></td><td class="desc">Structure to hold adaline model parameters </td></tr>
|
||||
<tr id="row_4_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d71/struct_a_v_lnode.html" target="_self">AVLnode</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_5_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/d02/struct_b_s_t_iterator.html" target="_self">BSTIterator</a></td><td class="desc">Definition for a binary tree node </td></tr>
|
||||
<tr id="row_6_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/d2d/struct_c_array.html" target="_self">CArray</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_7_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d99/structcluster.html" target="_self">cluster</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_8_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/dea/structdata.html" target="_self">data</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_9_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/dfe/struct_dict.html" target="_self">Dict</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_10_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/dfd/structdual__quat__.html" target="_self">dual_quat_</a></td><td class="desc">Dual quaternion type </td></tr>
|
||||
<tr id="row_11_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/d42/structdynamic__array.html" target="_self">dynamic_array</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_12_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/db4/struct_edge.html" target="_self">Edge</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_13_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d6b/structelem.html" target="_self">elem</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_14_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/de8/structeuler__.html" target="_self">euler_</a></td><td class="desc">3D Euler or Tait-Bryan angles (in radian) </td></tr>
|
||||
<tr id="row_15_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/dd4/struct_graph.html" target="_self">Graph</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_16_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d6a/struct_graph_rep.html" target="_self">GraphRep</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_17_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/df1/structhash__set__t.html" target="_self">hash_set_t</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_18_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/db8/structkohonen__array__3d.html" target="_self">kohonen_array_3d</a></td><td class="desc">To store info regarding 3D arrays </td></tr>
|
||||
<tr id="row_19_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/db3/struct_l.html" target="_self">L</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_20_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d10/structlist.html" target="_self">list</a></td><td class="desc">Doubly linked list struct </td></tr>
|
||||
<tr id="row_21_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d9/d8b/structmat__3x3__.html" target="_self">mat_3x3_</a></td><td class="desc">A 3x3 Matrix type definition </td></tr>
|
||||
<tr id="row_22_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d8a/structmax__heap.html" target="_self">max_heap</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_23_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/d73/struct_m_e_m_o_r_y___i_n_f_o_r_m_a_t_i_o_n.html" target="_self">MEMORY_INFORMATION</a></td><td class="desc">For the malloc, calloc and free functions </td></tr>
|
||||
<tr id="row_24_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/dce/structmin__heap.html" target="_self">min_heap</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_25_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/da1/structnode.html" target="_self">node</a></td><td class="desc"><a class="el" href="db/d8b/struct_node.html" title="Node, the basic data structure of the tree.">Node</a>, the basic data structure in the tree </td></tr>
|
||||
<tr id="row_26_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d8b/struct_node.html" target="_self">Node</a></td><td class="desc"><a class="el" href="db/d8b/struct_node.html" title="Node, the basic data structure of the tree.">Node</a>, the basic data structure of the tree </td></tr>
|
||||
<tr id="row_27_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d5e/structobservation.html" target="_self">observation</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_28_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d43/structpid.html" target="_self">pid</a></td><td class="desc">PID Controller </td></tr>
|
||||
<tr id="row_29_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/d58/structquaternion__.html" target="_self">quaternion_</a></td><td class="desc">Quaternion type represented using a scalar \(w\) or \(q_0\) and a 3D vector \(\left(q_1,q_2,q_3\right)\) </td></tr>
|
||||
<tr id="row_30_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d36/structqueue.html" target="_self">queue</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_31_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d10/struct_queue_rep.html" target="_self">QueueRep</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_32_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d06/structsegment__tree.html" target="_self">segment_tree</a></td><td class="desc">This structures holds all the data that is required by a segment tree </td></tr>
|
||||
<tr id="row_33_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d10/struct_stack.html" target="_self">Stack</a></td><td class="desc">For printf() and scanf() </td></tr>
|
||||
<tr id="row_34_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/de5/structsubset.html" target="_self">subset</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_35_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/d18/structsudoku.html" target="_self">sudoku</a></td><td class="desc">Structure to hold the matrix and dimensions </td></tr>
|
||||
<tr id="row_36_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d7e/struct_t.html" target="_self">T</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_37_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/d86/structterm.html" target="_self">term</a></td><td class="desc">Identifier for single-variable polynomial coefficients as a linked list </td></tr>
|
||||
<tr id="row_38_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d7a/structtnode.html" target="_self">tnode</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_39_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d9b/struct_trie_node.html" target="_self">TrieNode</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_40_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/db4/structvec__3d__.html" target="_self">vec_3d_</a></td><td class="desc">3D vector type </td></tr>
|
||||
<tr id="row_41_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/ddb/structword__count__word.html" target="_self">word_count_word</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_6_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/da2/structbuffer.html" target="_self">buffer</a></td><td class="desc">Struct used to store character in certain times </td></tr>
|
||||
<tr id="row_7_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/d2d/struct_c_array.html" target="_self">CArray</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_8_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d99/structcluster.html" target="_self">cluster</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_9_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/dea/structdata.html" target="_self">data</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_10_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/dfe/struct_dict.html" target="_self">Dict</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_11_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/dfd/structdual__quat__.html" target="_self">dual_quat_</a></td><td class="desc">Dual quaternion type </td></tr>
|
||||
<tr id="row_12_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/d42/structdynamic__array.html" target="_self">dynamic_array</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_13_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/db4/struct_edge.html" target="_self">Edge</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_14_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d6b/structelem.html" target="_self">elem</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_15_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/de8/structeuler__.html" target="_self">euler_</a></td><td class="desc">3D Euler or Tait-Bryan angles (in radian) </td></tr>
|
||||
<tr id="row_16_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/dd4/struct_graph.html" target="_self">Graph</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_17_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d6a/struct_graph_rep.html" target="_self">GraphRep</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_18_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/df1/structhash__set__t.html" target="_self">hash_set_t</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_19_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/db8/structkohonen__array__3d.html" target="_self">kohonen_array_3d</a></td><td class="desc">To store info regarding 3D arrays </td></tr>
|
||||
<tr id="row_20_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/db3/struct_l.html" target="_self">L</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_21_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d10/structlist.html" target="_self">list</a></td><td class="desc">Doubly linked list struct </td></tr>
|
||||
<tr id="row_22_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d9/d8b/structmat__3x3__.html" target="_self">mat_3x3_</a></td><td class="desc">A 3x3 Matrix type definition </td></tr>
|
||||
<tr id="row_23_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d8a/structmax__heap.html" target="_self">max_heap</a></td><td class="desc">For INT_MIN </td></tr>
|
||||
<tr id="row_24_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/d73/struct_m_e_m_o_r_y___i_n_f_o_r_m_a_t_i_o_n.html" target="_self">MEMORY_INFORMATION</a></td><td class="desc">For the malloc, calloc and free functions </td></tr>
|
||||
<tr id="row_25_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/dce/structmin__heap.html" target="_self">min_heap</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_26_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/da1/structnode.html" target="_self">node</a></td><td class="desc"><a class="el" href="db/d8b/struct_node.html" title="Node, the basic data structure of the tree.">Node</a>, the basic data structure in the tree </td></tr>
|
||||
<tr id="row_27_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d8b/struct_node.html" target="_self">Node</a></td><td class="desc"><a class="el" href="db/d8b/struct_node.html" title="Node, the basic data structure of the tree.">Node</a>, the basic data structure of the tree </td></tr>
|
||||
<tr id="row_28_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d5e/structobservation.html" target="_self">observation</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_29_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d43/structpid.html" target="_self">pid</a></td><td class="desc">PID Controller </td></tr>
|
||||
<tr id="row_30_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/d58/structquaternion__.html" target="_self">quaternion_</a></td><td class="desc">Quaternion type represented using a scalar \(w\) or \(q_0\) and a 3D vector \(\left(q_1,q_2,q_3\right)\) </td></tr>
|
||||
<tr id="row_31_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d36/structqueue.html" target="_self">queue</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_32_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d10/struct_queue_rep.html" target="_self">QueueRep</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_33_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d06/structsegment__tree.html" target="_self">segment_tree</a></td><td class="desc">This structures holds all the data that is required by a segment tree </td></tr>
|
||||
<tr id="row_34_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d10/struct_stack.html" target="_self">Stack</a></td><td class="desc">For printf() and scanf() </td></tr>
|
||||
<tr id="row_35_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/de5/structsubset.html" target="_self">subset</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_36_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/d18/structsudoku.html" target="_self">sudoku</a></td><td class="desc">Structure to hold the matrix and dimensions </td></tr>
|
||||
<tr id="row_37_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d7e/struct_t.html" target="_self">T</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_38_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/d86/structterm.html" target="_self">term</a></td><td class="desc">Identifier for single-variable polynomial coefficients as a linked list </td></tr>
|
||||
<tr id="row_39_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d7a/structtnode.html" target="_self">tnode</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_40_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d9b/struct_trie_node.html" target="_self">TrieNode</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_41_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/db4/structvec__3d__.html" target="_self">vec_3d_</a></td><td class="desc">3D vector type </td></tr>
|
||||
<tr id="row_42_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/ddb/structword__count__word.html" target="_self">word_count_word</a></td><td class="desc"></td></tr>
|
||||
</table>
|
||||
</div><!-- directory -->
|
||||
</div><!-- contents -->
|
||||
@@ -145,7 +145,7 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -4,42 +4,43 @@ var annotated_dup =
|
||||
[ "_cantor_set", "d9/dd7/struct__cantor__set.html", "d9/dd7/struct__cantor__set" ],
|
||||
[ "_large_num", "d3/d5a/struct__large__num.html", "d3/d5a/struct__large__num" ],
|
||||
[ "adaline", "d2/daa/structadaline.html", "d2/daa/structadaline" ],
|
||||
[ "AVLnode", "d2/d71/struct_a_v_lnode.html", "d2/d71/struct_a_v_lnode" ],
|
||||
[ "BSTIterator", "d4/d02/struct_b_s_t_iterator.html", "d4/d02/struct_b_s_t_iterator" ],
|
||||
[ "CArray", "d4/d2d/struct_c_array.html", "d4/d2d/struct_c_array" ],
|
||||
[ "AVLnode", "d2/d71/struct_a_v_lnode.html", null ],
|
||||
[ "BSTIterator", "d4/d02/struct_b_s_t_iterator.html", null ],
|
||||
[ "buffer", "dd/da2/structbuffer.html", null ],
|
||||
[ "CArray", "d4/d2d/struct_c_array.html", null ],
|
||||
[ "cluster", "d1/d99/structcluster.html", "d1/d99/structcluster" ],
|
||||
[ "data", "df/dea/structdata.html", "df/dea/structdata" ],
|
||||
[ "Dict", "d4/dfe/struct_dict.html", "d4/dfe/struct_dict" ],
|
||||
[ "data", "df/dea/structdata.html", null ],
|
||||
[ "Dict", "d4/dfe/struct_dict.html", null ],
|
||||
[ "dual_quat_", "d7/dfd/structdual__quat__.html", "d7/dfd/structdual__quat__" ],
|
||||
[ "dynamic_array", "d6/d42/structdynamic__array.html", "d6/d42/structdynamic__array" ],
|
||||
[ "Edge", "d5/db4/struct_edge.html", "d5/db4/struct_edge" ],
|
||||
[ "elem", "d0/d6b/structelem.html", "d0/d6b/structelem" ],
|
||||
[ "dynamic_array", "d6/d42/structdynamic__array.html", null ],
|
||||
[ "Edge", "d5/db4/struct_edge.html", null ],
|
||||
[ "elem", "d0/d6b/structelem.html", null ],
|
||||
[ "euler_", "d2/de8/structeuler__.html", "d2/de8/structeuler__" ],
|
||||
[ "Graph", "d4/dd4/struct_graph.html", "d4/dd4/struct_graph" ],
|
||||
[ "GraphRep", "d2/d6a/struct_graph_rep.html", "d2/d6a/struct_graph_rep" ],
|
||||
[ "hash_set_t", "d0/df1/structhash__set__t.html", "d0/df1/structhash__set__t" ],
|
||||
[ "Graph", "d4/dd4/struct_graph.html", null ],
|
||||
[ "GraphRep", "d2/d6a/struct_graph_rep.html", null ],
|
||||
[ "hash_set_t", "d0/df1/structhash__set__t.html", null ],
|
||||
[ "kohonen_array_3d", "d8/db8/structkohonen__array__3d.html", "d8/db8/structkohonen__array__3d" ],
|
||||
[ "L", "df/db3/struct_l.html", "df/db3/struct_l" ],
|
||||
[ "L", "df/db3/struct_l.html", null ],
|
||||
[ "list", "d8/d10/structlist.html", "d8/d10/structlist" ],
|
||||
[ "mat_3x3_", "d9/d8b/structmat__3x3__.html", "d9/d8b/structmat__3x3__" ],
|
||||
[ "max_heap", "d0/d8a/structmax__heap.html", "d0/d8a/structmax__heap" ],
|
||||
[ "max_heap", "d0/d8a/structmax__heap.html", null ],
|
||||
[ "MEMORY_INFORMATION", "d4/d73/struct_m_e_m_o_r_y___i_n_f_o_r_m_a_t_i_o_n.html", "d4/d73/struct_m_e_m_o_r_y___i_n_f_o_r_m_a_t_i_o_n" ],
|
||||
[ "min_heap", "de/dce/structmin__heap.html", "de/dce/structmin__heap" ],
|
||||
[ "min_heap", "de/dce/structmin__heap.html", null ],
|
||||
[ "node", "d5/da1/structnode.html", "d5/da1/structnode" ],
|
||||
[ "Node", "db/d8b/struct_node.html", "db/d8b/struct_node" ],
|
||||
[ "observation", "d1/d5e/structobservation.html", "d1/d5e/structobservation" ],
|
||||
[ "pid", "d0/d43/structpid.html", "d0/d43/structpid" ],
|
||||
[ "pid", "d0/d43/structpid.html", null ],
|
||||
[ "quaternion_", "de/d58/structquaternion__.html", "de/d58/structquaternion__" ],
|
||||
[ "queue", "d2/d36/structqueue.html", "d2/d36/structqueue" ],
|
||||
[ "QueueRep", "d0/d10/struct_queue_rep.html", "d0/d10/struct_queue_rep" ],
|
||||
[ "queue", "d2/d36/structqueue.html", null ],
|
||||
[ "QueueRep", "d0/d10/struct_queue_rep.html", null ],
|
||||
[ "segment_tree", "dd/d06/structsegment__tree.html", "dd/d06/structsegment__tree" ],
|
||||
[ "Stack", "dd/d10/struct_stack.html", "dd/d10/struct_stack" ],
|
||||
[ "subset", "dc/de5/structsubset.html", "dc/de5/structsubset" ],
|
||||
[ "subset", "dc/de5/structsubset.html", null ],
|
||||
[ "sudoku", "dc/d18/structsudoku.html", "dc/d18/structsudoku" ],
|
||||
[ "T", "d5/d7e/struct_t.html", "d5/d7e/struct_t" ],
|
||||
[ "T", "d5/d7e/struct_t.html", null ],
|
||||
[ "term", "df/d86/structterm.html", "df/d86/structterm" ],
|
||||
[ "tnode", "d8/d7a/structtnode.html", "d8/d7a/structtnode" ],
|
||||
[ "TrieNode", "da/d9b/struct_trie_node.html", "da/d9b/struct_trie_node" ],
|
||||
[ "tnode", "d8/d7a/structtnode.html", null ],
|
||||
[ "TrieNode", "da/d9b/struct_trie_node.html", null ],
|
||||
[ "vec_3d_", "d5/db4/structvec__3d__.html", "d5/db4/structvec__3d__" ],
|
||||
[ "word_count_word", "df/ddb/structword__count__word.html", "df/ddb/structword__count__word" ]
|
||||
[ "word_count_word", "df/ddb/structword__count__word.html", null ]
|
||||
];
|
||||
71
classes.html
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: Data Structure Index</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('classes.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -90,68 +90,67 @@ $(document).ready(function(){initNavTree('classes.html',''); initResizable(); })
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Data Structure Index</div> </div>
|
||||
<div class="headertitle"><div class="title">Data Structure Index</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="qindex"><a class="qindex" href="#letter_A">A</a> | <a class="qindex" href="#letter_B">B</a> | <a class="qindex" href="#letter_C">C</a> | <a class="qindex" href="#letter_D">D</a> | <a class="qindex" href="#letter_E">E</a> | <a class="qindex" href="#letter_G">G</a> | <a class="qindex" href="#letter_H">H</a> | <a class="qindex" href="#letter_K">K</a> | <a class="qindex" href="#letter_L">L</a> | <a class="qindex" href="#letter_M">M</a> | <a class="qindex" href="#letter_N">N</a> | <a class="qindex" href="#letter_O">O</a> | <a class="qindex" href="#letter_P">P</a> | <a class="qindex" href="#letter_Q">Q</a> | <a class="qindex" href="#letter_S">S</a> | <a class="qindex" href="#letter_T">T</a> | <a class="qindex" href="#letter_V">V</a> | <a class="qindex" href="#letter_W">W</a> | <a class="qindex" href="#letter__">_</a></div>
|
||||
<div class="classindex">
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_A">A</a></dt>
|
||||
<dt class="alphachar"><a id="letter_A" name="letter_A">A</a></dt>
|
||||
<dd><a class="el" href="d2/daa/structadaline.html">adaline</a></dd><dd><a class="el" href="d2/d71/struct_a_v_lnode.html">AVLnode</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_B">B</a></dt>
|
||||
<dd><a class="el" href="d4/d02/struct_b_s_t_iterator.html">BSTIterator</a></dd></dl>
|
||||
<dt class="alphachar"><a id="letter_B" name="letter_B">B</a></dt>
|
||||
<dd><a class="el" href="d4/d02/struct_b_s_t_iterator.html">BSTIterator</a></dd><dd><a class="el" href="dd/da2/structbuffer.html">buffer</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_C">C</a></dt>
|
||||
<dt class="alphachar"><a id="letter_C" name="letter_C">C</a></dt>
|
||||
<dd><a class="el" href="d4/d2d/struct_c_array.html">CArray</a></dd><dd><a class="el" href="d1/d99/structcluster.html">cluster</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_D">D</a></dt>
|
||||
<dt class="alphachar"><a id="letter_D" name="letter_D">D</a></dt>
|
||||
<dd><a class="el" href="df/dea/structdata.html">data</a></dd><dd><a class="el" href="d4/dfe/struct_dict.html">Dict</a></dd><dd><a class="el" href="d7/dfd/structdual__quat__.html">dual_quat_</a></dd><dd><a class="el" href="d6/d42/structdynamic__array.html">dynamic_array</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_E">E</a></dt>
|
||||
<dt class="alphachar"><a id="letter_E" name="letter_E">E</a></dt>
|
||||
<dd><a class="el" href="d5/db4/struct_edge.html">Edge</a></dd><dd><a class="el" href="d0/d6b/structelem.html">elem</a></dd><dd><a class="el" href="d2/de8/structeuler__.html">euler_</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_G">G</a></dt>
|
||||
<dt class="alphachar"><a id="letter_G" name="letter_G">G</a></dt>
|
||||
<dd><a class="el" href="d4/dd4/struct_graph.html">Graph</a></dd><dd><a class="el" href="d2/d6a/struct_graph_rep.html">GraphRep</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_H">H</a></dt>
|
||||
<dt class="alphachar"><a id="letter_H" name="letter_H">H</a></dt>
|
||||
<dd><a class="el" href="d0/df1/structhash__set__t.html">hash_set_t</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_K">K</a></dt>
|
||||
<dt class="alphachar"><a id="letter_K" name="letter_K">K</a></dt>
|
||||
<dd><a class="el" href="d8/db8/structkohonen__array__3d.html">kohonen_array_3d</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_L">L</a></dt>
|
||||
<dt class="alphachar"><a id="letter_L" name="letter_L">L</a></dt>
|
||||
<dd><a class="el" href="df/db3/struct_l.html">L</a></dd><dd><a class="el" href="d8/d10/structlist.html">list</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_M">M</a></dt>
|
||||
<dt class="alphachar"><a id="letter_M" name="letter_M">M</a></dt>
|
||||
<dd><a class="el" href="d9/d8b/structmat__3x3__.html">mat_3x3_</a></dd><dd><a class="el" href="d0/d8a/structmax__heap.html">max_heap</a></dd><dd><a class="el" href="d4/d73/struct_m_e_m_o_r_y___i_n_f_o_r_m_a_t_i_o_n.html">MEMORY_INFORMATION</a></dd><dd><a class="el" href="de/dce/structmin__heap.html">min_heap</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_N">N</a></dt>
|
||||
<dt class="alphachar"><a id="letter_N" name="letter_N">N</a></dt>
|
||||
<dd><a class="el" href="d5/da1/structnode.html">node</a></dd><dd><a class="el" href="db/d8b/struct_node.html">Node</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_O">O</a></dt>
|
||||
<dt class="alphachar"><a id="letter_O" name="letter_O">O</a></dt>
|
||||
<dd><a class="el" href="d1/d5e/structobservation.html">observation</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_P">P</a></dt>
|
||||
<dt class="alphachar"><a id="letter_P" name="letter_P">P</a></dt>
|
||||
<dd><a class="el" href="d0/d43/structpid.html">pid</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_Q">Q</a></dt>
|
||||
<dt class="alphachar"><a id="letter_Q" name="letter_Q">Q</a></dt>
|
||||
<dd><a class="el" href="de/d58/structquaternion__.html">quaternion_</a></dd><dd><a class="el" href="d2/d36/structqueue.html">queue</a></dd><dd><a class="el" href="d0/d10/struct_queue_rep.html">QueueRep</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_S">S</a></dt>
|
||||
<dt class="alphachar"><a id="letter_S" name="letter_S">S</a></dt>
|
||||
<dd><a class="el" href="dd/d06/structsegment__tree.html">segment_tree</a></dd><dd><a class="el" href="dd/d10/struct_stack.html">Stack</a></dd><dd><a class="el" href="dc/de5/structsubset.html">subset</a></dd><dd><a class="el" href="dc/d18/structsudoku.html">sudoku</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_T">T</a></dt>
|
||||
<dt class="alphachar"><a id="letter_T" name="letter_T">T</a></dt>
|
||||
<dd><a class="el" href="d5/d7e/struct_t.html">T</a></dd><dd><a class="el" href="df/d86/structterm.html">term</a></dd><dd><a class="el" href="d8/d7a/structtnode.html">tnode</a></dd><dd><a class="el" href="da/d9b/struct_trie_node.html">TrieNode</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_V">V</a></dt>
|
||||
<dt class="alphachar"><a id="letter_V" name="letter_V">V</a></dt>
|
||||
<dd><a class="el" href="d5/db4/structvec__3d__.html">vec_3d_</a></dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_W">W</a></dt>
|
||||
<dt class="alphachar"><a id="letter_W" name="letter_W">W</a></dt>
|
||||
<dd><a class="el" href="df/ddb/structword__count__word.html">word_count_word</a></dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter__">_</a></dt>
|
||||
<dt class="alphachar"><a id="letter__" name="letter__">_</a></dt>
|
||||
<dd><a class="el" href="dc/d77/struct__big__int.html">_big_int</a></dd><dd><a class="el" href="d9/dd7/struct__cantor__set.html">_cantor_set</a></dd><dd><a class="el" href="d3/d5a/struct__large__num.html">_large_num</a></dd></dl>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
@@ -159,7 +158,7 @@ $(document).ready(function(){initNavTree('classes.html',''); initResizable(); })
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<map id="numerical_methods/qr_decompose.h" name="numerical_methods/qr_decompose.h">
|
||||
<area shape="rect" id="node1" title="Library functions to compute QR decomposition of a given matrix." alt="" coords="48,5,199,47"/>
|
||||
<area shape="rect" id="node1" title="Library functions to compute QR decomposition of a given matrix." alt="" coords="47,5,200,47"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,95,68,121"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="93,95,154,121"/>
|
||||
<area shape="rect" id="node4" title=" " alt="" coords="178,95,242,121"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: numerical_methods/qr_decompose.h Pages: 1 -->
|
||||
<svg width="186pt" height="95pt"
|
||||
@@ -13,8 +13,8 @@
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Library functions to compute QR decomposition of a given matrix.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="32,-56.5 32,-86.5 145,-86.5 145,-56.5 32,-56.5"/>
|
||||
<text text-anchor="start" x="40" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">numerical_methods/qr</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="31,-56.5 31,-86.5 146,-86.5 146,-56.5 31,-56.5"/>
|
||||
<text text-anchor="start" x="39" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">numerical_methods/qr</text>
|
||||
<text text-anchor="middle" x="88.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_decompose.h</text>
|
||||
</a>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: QueueRep Struct Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d10/struct_queue_rep.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,26 +92,25 @@ $(document).ready(function(){initNavTree('d0/d10/struct_queue_rep.html','../../'
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-attribs">Data Fields</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">QueueRep Struct Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">QueueRep Struct Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for QueueRep:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d5c/struct_queue_rep__coll__graph.svg" width="160" height="232"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d5c/struct_queue_rep__coll__graph.svg" width="163" height="232"><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 name="pub-attribs"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
||||
Data Fields</h2></td></tr>
|
||||
<tr class="memitem:aad9e10b8e2e0a821d374a154240e22c6"><td class="memItemLeft" align="right" valign="top"><a id="aad9e10b8e2e0a821d374a154240e22c6"></a>
|
||||
<tr class="memitem:aad9e10b8e2e0a821d374a154240e22c6"><td class="memItemLeft" align="right" valign="top"><a id="aad9e10b8e2e0a821d374a154240e22c6" name="aad9e10b8e2e0a821d374a154240e22c6"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><b>length</b></td></tr>
|
||||
<tr class="separator:aad9e10b8e2e0a821d374a154240e22c6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad4f9f3b0f81ea8c768d4c45548a590de"><td class="memItemLeft" align="right" valign="top"><a id="ad4f9f3b0f81ea8c768d4c45548a590de"></a>
|
||||
<tr class="memitem:ad4f9f3b0f81ea8c768d4c45548a590de"><td class="memItemLeft" align="right" valign="top"><a id="ad4f9f3b0f81ea8c768d4c45548a590de" name="ad4f9f3b0f81ea8c768d4c45548a590de"></a>
|
||||
<a class="el" href="../../d5/da1/structnode.html">NodeT</a> * </td><td class="memItemRight" valign="bottom"><b>head</b></td></tr>
|
||||
<tr class="separator:ad4f9f3b0f81ea8c768d4c45548a590de"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5ca79e0a97550d8938331d90ce585a35"><td class="memItemLeft" align="right" valign="top"><a id="a5ca79e0a97550d8938331d90ce585a35"></a>
|
||||
<tr class="memitem:a5ca79e0a97550d8938331d90ce585a35"><td class="memItemLeft" align="right" valign="top"><a id="a5ca79e0a97550d8938331d90ce585a35" name="a5ca79e0a97550d8938331d90ce585a35"></a>
|
||||
<a class="el" href="../../d5/da1/structnode.html">NodeT</a> * </td><td class="memItemRight" valign="bottom"><b>tail</b></td></tr>
|
||||
<tr class="separator:a5ca79e0a97550d8938331d90ce585a35"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
@@ -124,7 +123,7 @@ int </td><td class="memItemRight" valign="bottom"><b>length</b></td></tr>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d0/d10/struct_queue_rep.html">QueueRep</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
var struct_queue_rep =
|
||||
[
|
||||
[ "head", "d0/d10/struct_queue_rep.html#ad4f9f3b0f81ea8c768d4c45548a590de", null ],
|
||||
[ "length", "d0/d10/struct_queue_rep.html#aad9e10b8e2e0a821d374a154240e22c6", null ],
|
||||
[ "tail", "d0/d10/struct_queue_rep.html#a5ca79e0a97550d8938331d90ce585a35", null ]
|
||||
];
|
||||
@@ -1,3 +1,3 @@
|
||||
<map id="node" name="node">
|
||||
<area shape="rect" id="node1" title="Node, the basic data structure in the tree." alt="" coords="5,51,56,77"/>
|
||||
<area shape="rect" id="node1" title="Node, the basic data structure in the tree." alt="" coords="5,51,57,77"/>
|
||||
</map>
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: node Pages: 1 -->
|
||||
<svg width="107pt" height="96pt"
|
||||
viewBox="0.00 0.00 107.00 96.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="109pt" height="96pt"
|
||||
viewBox="0.00 0.00 109.00 96.00" 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 92)">
|
||||
<title>node</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-92 103,-92 103,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-92 105,-92 105,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Node, the basic data structure in the tree.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-34.5 0,-53.5 38,-53.5 38,-34.5 0,-34.5"/>
|
||||
<text text-anchor="middle" x="19" y="-41.5" font-family="Helvetica,sans-Serif" font-size="10.00">node</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-34.5 0,-53.5 39,-53.5 39,-34.5 0,-34.5"/>
|
||||
<text text-anchor="middle" x="19.5" y="-41.5" font-family="Helvetica,sans-Serif" font-size="10.00">node</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M48.25,-47.44C52.86,-46.93 56,-45.79 56,-44 56,-41.07 47.53,-39.86 38.04,-40.36"/>
|
||||
<polygon fill="#9a32cd" stroke="#9a32cd" points="47.97,-43.95 38.04,-47.64 48.1,-50.95 47.97,-43.95"/>
|
||||
<text text-anchor="middle" x="77.5" y="-80" font-family="Helvetica,sans-Serif" font-size="10.00"> left</text>
|
||||
<text text-anchor="middle" x="77.5" y="-69" font-family="Helvetica,sans-Serif" font-size="10.00">leftNode</text>
|
||||
<text text-anchor="middle" x="77.5" y="-58" font-family="Helvetica,sans-Serif" font-size="10.00">link</text>
|
||||
<text text-anchor="middle" x="77.5" y="-47" font-family="Helvetica,sans-Serif" font-size="10.00">next</text>
|
||||
<text text-anchor="middle" x="77.5" y="-36" font-family="Helvetica,sans-Serif" font-size="10.00">par</text>
|
||||
<text text-anchor="middle" x="77.5" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">pre</text>
|
||||
<text text-anchor="middle" x="77.5" y="-14" font-family="Helvetica,sans-Serif" font-size="10.00">right</text>
|
||||
<text text-anchor="middle" x="77.5" y="-3" font-family="Helvetica,sans-Serif" font-size="10.00">rightNode</text>
|
||||
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M49.33,-47.42C53.9,-46.9 57,-45.76 57,-44 57,-41.11 48.64,-39.89 39.18,-40.34"/>
|
||||
<polygon fill="#9a32cd" stroke="#9a32cd" points="49.09,-43.93 39.18,-47.66 49.26,-50.93 49.09,-43.93"/>
|
||||
<text text-anchor="middle" x="79" y="-80" font-family="Helvetica,sans-Serif" font-size="10.00"> left</text>
|
||||
<text text-anchor="middle" x="79" y="-69" font-family="Helvetica,sans-Serif" font-size="10.00">leftNode</text>
|
||||
<text text-anchor="middle" x="79" y="-58" font-family="Helvetica,sans-Serif" font-size="10.00">link</text>
|
||||
<text text-anchor="middle" x="79" y="-47" font-family="Helvetica,sans-Serif" font-size="10.00">next</text>
|
||||
<text text-anchor="middle" x="79" y="-36" font-family="Helvetica,sans-Serif" font-size="10.00">par</text>
|
||||
<text text-anchor="middle" x="79" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">pre</text>
|
||||
<text text-anchor="middle" x="79" y="-14" font-family="Helvetica,sans-Serif" font-size="10.00">right</text>
|
||||
<text text-anchor="middle" x="79" y="-3" font-family="Helvetica,sans-Serif" font-size="10.00">rightNode</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="sorting/insertion_sort.c" name="sorting/insertion_sort.c">
|
||||
<area shape="rect" id="node1" title="Insertion sort algorithm implementation." alt="" coords="95,5,249,32"/>
|
||||
<area shape="rect" id="node1" title="Insertion sort algorithm implementation." alt="" coords="94,5,250,32"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,80,75,107"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="99,80,160,107"/>
|
||||
<area shape="rect" id="node4" title=" " alt="" coords="184,80,248,107"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: sorting/insertion_sort.c Pages: 1 -->
|
||||
<svg width="252pt" height="84pt"
|
||||
@@ -13,7 +13,7 @@
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Insertion sort algorithm implementation.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="67,-56.5 67,-75.5 183,-75.5 183,-56.5 67,-56.5"/>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="66.5,-56.5 66.5,-75.5 183.5,-75.5 183.5,-56.5 66.5,-56.5"/>
|
||||
<text text-anchor="middle" x="125" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">sorting/insertion_sort.c</text>
|
||||
</a>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="project_euler/problem_8/sol2.c" name="project_euler/problem_8/sol2.c">
|
||||
<area shape="rect" id="node1" title="Problem 8 solution" alt="" coords="49,5,196,47"/>
|
||||
<area shape="rect" id="node1" title="Problem 8 solution" alt="" coords="47,5,198,47"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,95,67,121"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="91,95,155,121"/>
|
||||
<area shape="rect" id="node4" title=" " alt="" coords="179,95,245,121"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: project_euler/problem_8/sol2.c Pages: 1 -->
|
||||
<svg width="188pt" height="95pt"
|
||||
@@ -13,8 +13,8 @@
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Problem 8 solution">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="33,-56.5 33,-86.5 143,-86.5 143,-56.5 33,-56.5"/>
|
||||
<text text-anchor="start" x="41" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">project_euler/problem</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="31.5,-56.5 31.5,-86.5 144.5,-86.5 144.5,-56.5 31.5,-56.5"/>
|
||||
<text text-anchor="start" x="39.5" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">project_euler/problem</text>
|
||||
<text text-anchor="middle" x="88" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_8/sol2.c</text>
|
||||
</a>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: pid Struct Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d43/structpid.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,45 +92,44 @@ $(document).ready(function(){initNavTree('d0/d43/structpid.html','../../'); init
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-attribs">Data Fields</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">pid Struct Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">pid Struct Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>PID Controller.
|
||||
<a href="../../d0/d43/structpid.html#details">More...</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
||||
Data Fields</h2></td></tr>
|
||||
<tr class="memitem:a5a7b54866748e12568f9b9599b31f8eb"><td class="memItemLeft" align="right" valign="top"><a id="a5a7b54866748e12568f9b9599b31f8eb"></a>
|
||||
<tr class="memitem:a5a7b54866748e12568f9b9599b31f8eb"><td class="memItemLeft" align="right" valign="top"><a id="a5a7b54866748e12568f9b9599b31f8eb" name="a5a7b54866748e12568f9b9599b31f8eb"></a>
|
||||
float </td><td class="memItemRight" valign="bottom"><b>kP</b></td></tr>
|
||||
<tr class="separator:a5a7b54866748e12568f9b9599b31f8eb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a65e8bc146e02bad2702a0286d37b81bc"><td class="memItemLeft" align="right" valign="top"><a id="a65e8bc146e02bad2702a0286d37b81bc"></a>
|
||||
<tr class="memitem:a65e8bc146e02bad2702a0286d37b81bc"><td class="memItemLeft" align="right" valign="top"><a id="a65e8bc146e02bad2702a0286d37b81bc" name="a65e8bc146e02bad2702a0286d37b81bc"></a>
|
||||
float </td><td class="memItemRight" valign="bottom"><b>kI</b></td></tr>
|
||||
<tr class="separator:a65e8bc146e02bad2702a0286d37b81bc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6c721a7983511fb9f91777ae45481473"><td class="memItemLeft" align="right" valign="top"><a id="a6c721a7983511fb9f91777ae45481473"></a>
|
||||
<tr class="memitem:a6c721a7983511fb9f91777ae45481473"><td class="memItemLeft" align="right" valign="top"><a id="a6c721a7983511fb9f91777ae45481473" name="a6c721a7983511fb9f91777ae45481473"></a>
|
||||
float </td><td class="memItemRight" valign="bottom"><b>kD</b></td></tr>
|
||||
<tr class="separator:a6c721a7983511fb9f91777ae45481473"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad661092f21ab1e0e6aa35fbcfcf6f161"><td class="memItemLeft" align="right" valign="top"><a id="ad661092f21ab1e0e6aa35fbcfcf6f161"></a>
|
||||
<tr class="memitem:ad661092f21ab1e0e6aa35fbcfcf6f161"><td class="memItemLeft" align="right" valign="top"><a id="ad661092f21ab1e0e6aa35fbcfcf6f161" name="ad661092f21ab1e0e6aa35fbcfcf6f161"></a>
|
||||
float </td><td class="memItemRight" valign="bottom"><b>lastError</b></td></tr>
|
||||
<tr class="separator:ad661092f21ab1e0e6aa35fbcfcf6f161"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3c54185f7b4867281786eff640443a00"><td class="memItemLeft" align="right" valign="top"><a id="a3c54185f7b4867281786eff640443a00"></a>
|
||||
<tr class="memitem:a3c54185f7b4867281786eff640443a00"><td class="memItemLeft" align="right" valign="top"><a id="a3c54185f7b4867281786eff640443a00" name="a3c54185f7b4867281786eff640443a00"></a>
|
||||
float </td><td class="memItemRight" valign="bottom"><b>integral</b></td></tr>
|
||||
<tr class="separator:a3c54185f7b4867281786eff640443a00"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>PID Controller. </p>
|
||||
<p>The PID controller is a linear control algorithm that has three terms:</p><ul>
|
||||
<div class="textblock"><p >PID Controller. </p>
|
||||
<p >The PID controller is a linear control algorithm that has three terms:</p><ul>
|
||||
<li>Proportional: A simple scaling of the error value by a gain kP</li>
|
||||
<li>Integral: Integration of the error value over time, then multipled by gain kI</li>
|
||||
<li>Derivative: Rate of change of the error value over time, multiplied by gain kD</li>
|
||||
</ul>
|
||||
<p>Terms of the controller can be removed by setting their gain to 0, creating a PI (kD = 0) or PD (kI = 0) controller. Depending on the control problem at hand, some terms may not increase the performance of the system, or may have a negative effect.</p>
|
||||
<p>For a more mathematical expanation of the PID Controller, see <a href="https://en.wikipedia.org/wiki/PID_controller">https://en.wikipedia.org/wiki/PID_controller</a></p>
|
||||
<p>Limitations of this implementation:</p><ul>
|
||||
<li>Since this implementation is just for demonstration, the pid_step function takes the dt as a parameter, and it can be provided by the user in <a class="el" href="../../dd/d93/client_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title="Driver code.">main()</a>. This allows deterministic experimentation with the algorithm, rather than using time(NULL) which would make the function non-deterministic.</li>
|
||||
<p >Terms of the controller can be removed by setting their gain to 0, creating a PI (kD = 0) or PD (kI = 0) controller. Depending on the control problem at hand, some terms may not increase the performance of the system, or may have a negative effect.</p>
|
||||
<p >For a more mathematical expanation of the PID Controller, see <a href="https://en.wikipedia.org/wiki/PID_controller">https://en.wikipedia.org/wiki/PID_controller</a></p>
|
||||
<p >Limitations of this implementation:</p><ul>
|
||||
<li>Since this implementation is just for demonstration, the pid_step function takes the dt as a parameter, and it can be provided by the user in <a class="el" href="../../df/d27/alaw_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="Main function.">main()</a>. This allows deterministic experimentation with the algorithm, rather than using time(NULL) which would make the function non-deterministic.</li>
|
||||
</ul>
|
||||
<p>Inputs: e(t) - Current error at time t. For example, how far a servo is off the desired angle Output: u(t) - Controller output at time t. </p>
|
||||
<p >Inputs: e(t) - Current error at time t. For example, how far a servo is off the desired angle Output: u(t) - Controller output at time t. </p>
|
||||
</div><hr/>The documentation for this struct was generated from the following file:<ul>
|
||||
<li>misc/pid.c</li>
|
||||
</ul>
|
||||
@@ -140,7 +139,7 @@ float </td><td class="memItemRight" valign="bottom"><b>integral</b></td></t
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d0/d43/structpid.html">pid</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
var structpid =
|
||||
[
|
||||
[ "integral", "d0/d43/structpid.html#a3c54185f7b4867281786eff640443a00", null ],
|
||||
[ "kD", "d0/d43/structpid.html#a6c721a7983511fb9f91777ae45481473", null ],
|
||||
[ "kI", "d0/d43/structpid.html#a65e8bc146e02bad2702a0286d37b81bc", null ],
|
||||
[ "kP", "d0/d43/structpid.html#a5a7b54866748e12568f9b9599b31f8eb", null ],
|
||||
[ "lastError", "d0/d43/structpid.html#ad661092f21ab1e0e6aa35fbcfcf6f161", null ]
|
||||
];
|
||||
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: machine_learning/kohonen_som_trace.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d46/kohonen__som__trace_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -93,12 +93,11 @@ $(document).ready(function(){initNavTree('d0/d46/kohonen__som__trace_8c.html','.
|
||||
<div class="summary">
|
||||
<a href="#define-members">Macros</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">kohonen_som_trace.c File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">kohonen_som_trace.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="https://en.wikipedia.org/wiki/Self-organizing_map">Kohonen self organizing map</a> (data tracing)
|
||||
<p><a href="https://en.wikipedia.org/wiki/Self-organizing_map" target="_blank">Kohonen self organizing map</a> (data tracing)
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <math.h></code><br />
|
||||
<code>#include <stdio.h></code><br />
|
||||
@@ -111,22 +110,22 @@ Include dependency graph for kohonen_som_trace.c:</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
||||
Macros</h2></td></tr>
|
||||
<tr class="memitem:a525335710b53cb064ca56b936120431e"><td class="memItemLeft" align="right" valign="top"><a id="a525335710b53cb064ca56b936120431e"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html#a525335710b53cb064ca56b936120431e">_USE_MATH_DEFINES</a></td></tr>
|
||||
<tr class="memitem:a525335710b53cb064ca56b936120431e"><td class="memItemLeft" align="right" valign="top"><a id="a525335710b53cb064ca56b936120431e" name="a525335710b53cb064ca56b936120431e"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><b>_USE_MATH_DEFINES</b></td></tr>
|
||||
<tr class="memdesc:a525335710b53cb064ca56b936120431e"><td class="mdescLeft"> </td><td class="mdescRight">required for MS Visual C <br /></td></tr>
|
||||
<tr class="separator:a525335710b53cb064ca56b936120431e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaffe776513b24d84b39af8ab0930fef7f"><td class="memItemLeft" align="right" valign="top">
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(a, b)   (((a) > (b)) ? (a) : (b))</td></tr>
|
||||
#define </td><td class="memItemRight" valign="bottom"><b>max</b>(a, b)   (((a) > (b)) ? (a) : (b))</td></tr>
|
||||
<tr class="memdesc:gaffe776513b24d84b39af8ab0930fef7f"><td class="mdescLeft"> </td><td class="mdescRight">shorthand for maximum value <br /></td></tr>
|
||||
<tr class="separator:gaffe776513b24d84b39af8ab0930fef7f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gac6afabdc09a49a433ee19d8a9486056d"><td class="memItemLeft" align="right" valign="top">
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dcb/group__kohonen__1d.html#gac6afabdc09a49a433ee19d8a9486056d">min</a>(a, b)   (((a) < (b)) ? (a) : (b))</td></tr>
|
||||
#define </td><td class="memItemRight" valign="bottom"><b>min</b>(a, b)   (((a) < (b)) ? (a) : (b))</td></tr>
|
||||
<tr class="memdesc:gac6afabdc09a49a433ee19d8a9486056d"><td class="mdescLeft"> </td><td class="mdescRight">shorthand for minimum value <br /></td></tr>
|
||||
<tr class="separator:gac6afabdc09a49a433ee19d8a9486056d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:gaf5ce14f026d6d231bef29161bac2b485"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a> (double a, double b)</td></tr>
|
||||
<tr class="memdesc:gaf5ce14f026d6d231bef29161bac2b485"><td class="mdescLeft"> </td><td class="mdescRight">Helper function to generate a random number in a given interval. <a href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">More...</a><br /></td></tr>
|
||||
@@ -150,10 +149,10 @@ Functions</h2></td></tr>
|
||||
<tr class="memdesc:a1440a7779ac56f47a3f355ce4a8c7da0"><td class="mdescLeft"> </td><td class="mdescRight">Test that creates a random set of points distributed <em>near</em> the circumference of a circle and trains an SOM that finds that circular pattern. <a href="../../d0/d46/kohonen__som__trace_8c.html#a1440a7779ac56f47a3f355ce4a8c7da0">More...</a><br /></td></tr>
|
||||
<tr class="separator:a1440a7779ac56f47a3f355ce4a8c7da0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa2246f940155472084ee461f3685d614"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614">test_lamniscate</a> (double *const *<a class="el" href="../../df/dea/structdata.html">data</a>, int N)</td></tr>
|
||||
<tr class="memdesc:aa2246f940155472084ee461f3685d614"><td class="mdescLeft"> </td><td class="mdescRight">Creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono">Lamniscate of Gerono</a>. <a href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614">More...</a><br /></td></tr>
|
||||
<tr class="memdesc:aa2246f940155472084ee461f3685d614"><td class="mdescLeft"> </td><td class="mdescRight">Creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono" target="_blank">Lamniscate of Gerono</a>. <a href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa2246f940155472084ee461f3685d614"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0283886819c7c140a023582b7269e2d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0">test2</a> ()</td></tr>
|
||||
<tr class="memdesc:a0283886819c7c140a023582b7269e2d0"><td class="mdescLeft"> </td><td class="mdescRight">Test that creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono">Lamniscate of Gerono</a> and trains an SOM that finds that circular pattern. <a href="../../d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0">More...</a><br /></td></tr>
|
||||
<tr class="memdesc:a0283886819c7c140a023582b7269e2d0"><td class="mdescLeft"> </td><td class="mdescRight">Test that creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono" target="_blank">Lamniscate of Gerono</a> and trains an SOM that finds that circular pattern. <a href="../../d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0">More...</a><br /></td></tr>
|
||||
<tr class="separator:a0283886819c7c140a023582b7269e2d0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a41ae16442e3e5b891a58d2e5932a2cd0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0">test_3d_classes</a> (double *const *<a class="el" href="../../df/dea/structdata.html">data</a>, int N)</td></tr>
|
||||
<tr class="memdesc:a41ae16442e3e5b891a58d2e5932a2cd0"><td class="mdescLeft"> </td><td class="mdescRight">Creates a random set of points distributed in four clusters in 3D space with centroids at the points. <a href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0">More...</a><br /></td></tr>
|
||||
@@ -164,17 +163,16 @@ Functions</h2></td></tr>
|
||||
<tr class="memitem:a2256c10b16edba377b64a44b6c656908"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908">get_clock_diff</a> (clock_t start_t, clock_t end_t)</td></tr>
|
||||
<tr class="memdesc:a2256c10b16edba377b64a44b6c656908"><td class="mdescLeft"> </td><td class="mdescRight">Convert clock cycle difference to time in seconds. <a href="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2256c10b16edba377b64a44b6c656908"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memItemLeft" align="right" valign="top"><a id="a3c04138a5bfe5d72780bb7e82a18e627"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
|
||||
<tr class="memdesc:a3c04138a5bfe5d72780bb7e82a18e627"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <br /></td></tr>
|
||||
<tr class="memitem:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
|
||||
<tr class="memdesc:a3c04138a5bfe5d72780bb7e82a18e627"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d0/d46/kohonen__som__trace_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p><a href="https://en.wikipedia.org/wiki/Self-organizing_map">Kohonen self organizing map</a> (data tracing) </p>
|
||||
<p>This example implements a powerful self organizing map algorithm. The algorithm creates a connected network of weights that closely follows the given data points. This this creates a chain of nodes that resembles the given input shape. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/kvedala">Krishna Vedala</a> </dd></dl>
|
||||
<div class="textblock"><p ><a href="https://en.wikipedia.org/wiki/Self-organizing_map" target="_blank">Kohonen self organizing map</a> (data tracing) </p>
|
||||
<p >This example implements a powerful self organizing map algorithm. The algorithm creates a connected network of weights that closely follows the given data points. This this creates a chain of nodes that resembles the given input shape. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/kvedala" target="_blank">Krishna Vedala</a> </dd></dl>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/df6/kohonen__som__topology_8c.html" title="Kohonen self organizing map (topological map)">kohonen_som_topology.c</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="a2256c10b16edba377b64a44b6c656908"></a>
|
||||
<a id="a2256c10b16edba377b64a44b6c656908" name="a2256c10b16edba377b64a44b6c656908"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2256c10b16edba377b64a44b6c656908">◆ </a></span>get_clock_diff()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -209,13 +207,79 @@ int </td><td class="memItemRight" valign="bottom"><a class="el" href="../..
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>time difference in seconds </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00512"></a><span class="lineno"> 512</span> {</div>
|
||||
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <span class="keywordflow">return</span> (<span class="keywordtype">double</span>)(end_t - start_t) / (<span class="keywordtype">double</span>)CLOCKS_PER_SEC;</div>
|
||||
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00512" name="l00512"></a><span class="lineno"> 512</span>{</div>
|
||||
<div class="line"><a id="l00513" name="l00513"></a><span class="lineno"> 513</span> <span class="keywordflow">return</span> (<span class="keywordtype">double</span>)(end_t - start_t) / (<span class="keywordtype">double</span>)CLOCKS_PER_SEC;</div>
|
||||
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno"> 514</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a1440a7779ac56f47a3f355ce4a8c7da0"></a>
|
||||
<a id="a3c04138a5bfe5d72780bb7e82a18e627" name="a3c04138a5bfe5d72780bb7e82a18e627"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a3c04138a5bfe5d72780bb7e82a18e627">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>argc</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">char ** </td>
|
||||
<td class="paramname"><em>argv</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function. </p>
|
||||
<div class="fragment"><div class="line"><a id="l00518" name="l00518"></a><span class="lineno"> 518</span>{</div>
|
||||
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno"> 519</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno"> 520</span> printf(<span class="stringliteral">"Using OpenMP based parallelization\n"</span>);</div>
|
||||
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno"> 521</span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno"> 522</span> printf(<span class="stringliteral">"NOT using OpenMP based parallelization\n"</span>);</div>
|
||||
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno"> 523</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00524" name="l00524"></a><span class="lineno"> 524</span> clock_t start_clk = clock();</div>
|
||||
<div class="line"><a id="l00525" name="l00525"></a><span class="lineno"> 525</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a1440a7779ac56f47a3f355ce4a8c7da0">test1</a>();</div>
|
||||
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno"> 526</span> clock_t end_clk = clock();</div>
|
||||
<div class="line"><a id="l00527" name="l00527"></a><span class="lineno"> 527</span> printf(<span class="stringliteral">"Test 1 completed in %.4g sec\n"</span>,</div>
|
||||
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno"> 528</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908">get_clock_diff</a>(start_clk, end_clk));</div>
|
||||
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno"> 529</span> start_clk = clock();</div>
|
||||
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno"> 530</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0">test2</a>();</div>
|
||||
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno"> 531</span> end_clk = clock();</div>
|
||||
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno"> 532</span> printf(<span class="stringliteral">"Test 2 completed in %.4g sec\n"</span>,</div>
|
||||
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno"> 533</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908">get_clock_diff</a>(start_clk, end_clk));</div>
|
||||
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno"> 534</span> start_clk = clock();</div>
|
||||
<div class="line"><a id="l00535" name="l00535"></a><span class="lineno"> 535</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a6d0455dd5c30adda100e95f0423c786e">test3</a>();</div>
|
||||
<div class="line"><a id="l00536" name="l00536"></a><span class="lineno"> 536</span> end_clk = clock();</div>
|
||||
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno"> 537</span> printf(<span class="stringliteral">"Test 3 completed in %.4g sec\n"</span>,</div>
|
||||
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno"> 538</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908">get_clock_diff</a>(start_clk, end_clk));</div>
|
||||
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno"> 539</span> printf(</div>
|
||||
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno"> 540</span> <span class="stringliteral">"(Note: Calculated times include: creating test sets, training "</span></div>
|
||||
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno"> 541</span> <span class="stringliteral">"model and writing files to disk.)\n\n"</span>);</div>
|
||||
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno"> 542</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno"> 543</span>}</div>
|
||||
<div class="ttc" id="akohonen__som__trace_8c_html_a0283886819c7c140a023582b7269e2d0"><div class="ttname"><a href="../../d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0">test2</a></div><div class="ttdeci">void test2()</div><div class="ttdoc">Test that creates a random set of points distributed near the locus of the Lamniscate of Gerono and t...</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:358</div></div>
|
||||
<div class="ttc" id="akohonen__som__trace_8c_html_a1440a7779ac56f47a3f355ce4a8c7da0"><div class="ttname"><a href="../../d0/d46/kohonen__som__trace_8c.html#a1440a7779ac56f47a3f355ce4a8c7da0">test1</a></div><div class="ttdeci">void test1()</div><div class="ttdoc">Test that creates a random set of points distributed near the circumference of a circle and trains an...</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:261</div></div>
|
||||
<div class="ttc" id="akohonen__som__trace_8c_html_a2256c10b16edba377b64a44b6c656908"><div class="ttname"><a href="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908">get_clock_diff</a></div><div class="ttdeci">double get_clock_diff(clock_t start_t, clock_t end_t)</div><div class="ttdoc">Convert clock cycle difference to time in seconds.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:511</div></div>
|
||||
<div class="ttc" id="akohonen__som__trace_8c_html_a6d0455dd5c30adda100e95f0423c786e"><div class="ttname"><a href="../../d0/d46/kohonen__som__trace_8c.html#a6d0455dd5c30adda100e95f0423c786e">test3</a></div><div class="ttdeci">void test3()</div><div class="ttdoc">Test that creates a random set of points distributed in six clusters in 3D space.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:462</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d0/d46/kohonen__som__trace_8c_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.svg" width="100%" height="581"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a1440a7779ac56f47a3f355ce4a8c7da0" name="a1440a7779ac56f47a3f355ce4a8c7da0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a1440a7779ac56f47a3f355ce4a8c7da0">◆ </a></span>test1()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -231,59 +295,59 @@ int </td><td class="memItemRight" valign="bottom"><a class="el" href="../..
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test that creates a random set of points distributed <em>near</em> the circumference of a circle and trains an SOM that finds that circular pattern. </p>
|
||||
<p>The following <a href="https://en.wikipedia.org/wiki/Comma-separated_values">CSV</a> files are created to validate the execution:</p><ul>
|
||||
<p >The following <a href="https://en.wikipedia.org/wiki/Comma-separated_values" target="_blank">CSV</a> files are created to validate the execution:</p><ul>
|
||||
<li><code>test1.csv</code>: random test samples points with a circular pattern</li>
|
||||
<li><code>w11.csv</code>: initial random map</li>
|
||||
<li><code>w12.csv</code>: trained SOM map</li>
|
||||
</ul>
|
||||
<p>The outputs can be readily plotted in <a href="https:://gnuplot.info">gnuplot</a> using the following snippet </p><div class="fragment"><div class="line">set datafile separator ','</div>
|
||||
<p >The outputs can be readily plotted in <a href="https:://gnuplot.info" target="_blank">gnuplot</a> using the following snippet </p><div class="fragment"><div class="line">set datafile separator ','</div>
|
||||
<div class="line">plot "test1.csv" title "original", \</div>
|
||||
<div class="line"> "w11.csv" title "w1", \</div>
|
||||
<div class="line"> "w12.csv" title "w2"</div>
|
||||
</div><!-- fragment --><p> <img src="https://raw.githubusercontent.com/TheAlgorithms/C/docs/images/machine_learning/kohonen/test1.svg" alt="Sample execution
|
||||
output" style="pointer-events: none;" class="inline"/> </p>
|
||||
<div class="fragment"><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> {</div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordtype">int</span> j, N = 500;</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordtype">int</span> features = 2;</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordtype">int</span> num_out = 50;</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  </div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="comment">// 2D space, hence size = number of rows * 2</span></div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordtype">double</span> **X = (<span class="keywordtype">double</span> **)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(N * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  </div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="comment">// number of clusters nodes * 2</span></div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordtype">double</span> **W = (<span class="keywordtype">double</span> **)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  </div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++) <span class="comment">// loop till max(N, num_out)</span></div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  {</div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">if</span> (i < N) <span class="comment">// only add new arrays if i < N</span></div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  X[i] = (<span class="keywordtype">double</span> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordflow">if</span> (i < num_out) <span class="comment">// only add new arrays if i < num_out</span></div>
|
||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  {</div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  W[i] = (<span class="keywordtype">double</span> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="comment">// preallocate with random initial weights</span></div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">for</span> (j = 0; j < features; j++) W[i][j] = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-1, 1);</div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  }</div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  }</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  </div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <a class="code" href="../../d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8">test_circle</a>(X, N); <span class="comment">// create test data around circumference of a circle</span></div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"test1.csv"</span>, X, N, features); <span class="comment">// save test data points</span></div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w11.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  features); <span class="comment">// save initial random weights</span></div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde">kohonen_som_tracer</a>(X, W, N, features, num_out, 0.1); <span class="comment">// train the SOM</span></div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w12.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  features); <span class="comment">// save the resultant weights</span></div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  </div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  {</div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordflow">if</span> (i < N)</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X[i]);</div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keywordflow">if</span> (i < num_out)</div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W[i]);</div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  }</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span>{</div>
|
||||
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="keywordtype">int</span> j, N = 500;</div>
|
||||
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <span class="keywordtype">int</span> features = 2;</div>
|
||||
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordtype">int</span> num_out = 50;</div>
|
||||
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> </div>
|
||||
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="comment">// 2D space, hence size = number of rows * 2</span></div>
|
||||
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="keywordtype">double</span> **X = (<span class="keywordtype">double</span> **)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(N * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> </div>
|
||||
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="comment">// number of clusters nodes * 2</span></div>
|
||||
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> <span class="keywordtype">double</span> **W = (<span class="keywordtype">double</span> **)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> </div>
|
||||
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++) <span class="comment">// loop till max(N, num_out)</span></div>
|
||||
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> {</div>
|
||||
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> <span class="keywordflow">if</span> (i < N) <span class="comment">// only add new arrays if i < N</span></div>
|
||||
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> X[i] = (<span class="keywordtype">double</span> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="keywordflow">if</span> (i < num_out) <span class="comment">// only add new arrays if i < num_out</span></div>
|
||||
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> {</div>
|
||||
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> W[i] = (<span class="keywordtype">double</span> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="comment">// preallocate with random initial weights</span></div>
|
||||
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordflow">for</span> (j = 0; j < features; j++) W[i][j] = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-1, 1);</div>
|
||||
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> }</div>
|
||||
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> }</div>
|
||||
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> </div>
|
||||
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8">test_circle</a>(X, N); <span class="comment">// create test data around circumference of a circle</span></div>
|
||||
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"test1.csv"</span>, X, N, features); <span class="comment">// save test data points</span></div>
|
||||
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w11.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> features); <span class="comment">// save initial random weights</span></div>
|
||||
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde">kohonen_som_tracer</a>(X, W, N, features, num_out, 0.1); <span class="comment">// train the SOM</span></div>
|
||||
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w12.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> features); <span class="comment">// save the resultant weights</span></div>
|
||||
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> </div>
|
||||
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> {</div>
|
||||
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keywordflow">if</span> (i < N)</div>
|
||||
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X[i]);</div>
|
||||
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="keywordflow">if</span> (i < num_out)</div>
|
||||
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W[i]);</div>
|
||||
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> }</div>
|
||||
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span>}</div>
|
||||
<div class="ttc" id="agroup__kohonen__1d_html_ga7b84b14e60f47812b581d1f93057c85a"><div class="ttname"><a href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a></div><div class="ttdeci">int save_nd_data(const char *fname, double **X, int num_points, int num_features)</div><div class="ttdoc">Save a given n-dimensional data martix to file.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:70</div></div>
|
||||
<div class="ttc" id="agroup__kohonen__1d_html_gaeaeffbff2be4d5d15b0d4f10f846abde"><div class="ttname"><a href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde">kohonen_som_tracer</a></div><div class="ttdeci">void kohonen_som_tracer(double **X, double *const *W, int num_samples, int num_features, int num_out, double alpha_min)</div><div class="ttdoc">Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:179</div></div>
|
||||
<div class="ttc" id="agroup__kohonen__1d_html_gaf5ce14f026d6d231bef29161bac2b485"><div class="ttname"><a href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a></div><div class="ttdeci">double _random(double a, double b)</div><div class="ttdoc">Helper function to generate a random number in a given interval.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:54</div></div>
|
||||
@@ -294,13 +358,13 @@ output" style="pointer-events: none;" class="inline"/> </p>
|
||||
</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="../../d0/d46/kohonen__som__trace_8c_a1440a7779ac56f47a3f355ce4a8c7da0_cgraph.svg" width="663" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d0/d46/kohonen__som__trace_8c_a1440a7779ac56f47a3f355ce4a8c7da0_cgraph.svg" width="100%" height="442"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0283886819c7c140a023582b7269e2d0"></a>
|
||||
<a id="a0283886819c7c140a023582b7269e2d0" name="a0283886819c7c140a023582b7269e2d0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0283886819c7c140a023582b7269e2d0">◆ </a></span>test2()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -315,69 +379,69 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test that creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono">Lamniscate of Gerono</a> and trains an SOM that finds that circular pattern. </p>
|
||||
<p>The following <a href="https://en.wikipedia.org/wiki/Comma-separated_values">CSV</a> files are created to validate the execution:</p><ul>
|
||||
<p>Test that creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono" target="_blank">Lamniscate of Gerono</a> and trains an SOM that finds that circular pattern. </p>
|
||||
<p >The following <a href="https://en.wikipedia.org/wiki/Comma-separated_values" target="_blank">CSV</a> files are created to validate the execution:</p><ul>
|
||||
<li><code>test2.csv</code>: random test samples points with a lamniscate pattern</li>
|
||||
<li><code>w21.csv</code>: initial random map</li>
|
||||
<li><code>w22.csv</code>: trained SOM map</li>
|
||||
</ul>
|
||||
<p>The outputs can be readily plotted in <a href="https:://gnuplot.info">gnuplot</a> using the following snippet </p><div class="fragment"><div class="line">set datafile separator ','</div>
|
||||
<p >The outputs can be readily plotted in <a href="https:://gnuplot.info" target="_blank">gnuplot</a> using the following snippet </p><div class="fragment"><div class="line">set datafile separator ','</div>
|
||||
<div class="line">plot "test2.csv" title "original", \</div>
|
||||
<div class="line"> "w21.csv" title "w1", \</div>
|
||||
<div class="line"> "w22.csv" title "w2"</div>
|
||||
</div><!-- fragment --><p> <img src="https://raw.githubusercontent.com/TheAlgorithms/C/docs/images/machine_learning/kohonen/test2.svg" alt="Sample execution
|
||||
output" style="pointer-events: none;" class="inline"/> </p>
|
||||
<div class="fragment"><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> {</div>
|
||||
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordtype">int</span> j, N = 500;</div>
|
||||
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordtype">int</span> features = 2;</div>
|
||||
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordtype">int</span> num_out = 20;</div>
|
||||
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="keywordtype">double</span> **X = (<span class="keywordtype">double</span> **)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(N * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keywordtype">double</span> **W = (<span class="keywordtype">double</span> **)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  {</div>
|
||||
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keywordflow">if</span> (i < N) <span class="comment">// only add new arrays if i < N</span></div>
|
||||
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  X[i] = (<span class="keywordtype">double</span> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="keywordflow">if</span> (i < num_out) <span class="comment">// only add new arrays if i < num_out</span></div>
|
||||
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  {</div>
|
||||
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  W[i] = (<span class="keywordtype">double</span> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  </div>
|
||||
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="comment">// preallocate with random initial weights</span></div>
|
||||
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">for</span> (j = 0; j < features; j++) W[i][j] = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-1, 1);</div>
|
||||
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  }</div>
|
||||
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  }</div>
|
||||
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  </div>
|
||||
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <a class="code" href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614">test_lamniscate</a>(X, N); <span class="comment">// create test data around the lamniscate</span></div>
|
||||
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"test2.csv"</span>, X, N, features); <span class="comment">// save test data points</span></div>
|
||||
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w21.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  features); <span class="comment">// save initial random weights</span></div>
|
||||
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde">kohonen_som_tracer</a>(X, W, N, features, num_out, 0.01); <span class="comment">// train the SOM</span></div>
|
||||
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w22.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  features); <span class="comment">// save the resultant weights</span></div>
|
||||
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  </div>
|
||||
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  {</div>
|
||||
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordflow">if</span> (i < N)</div>
|
||||
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X[i]);</div>
|
||||
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordflow">if</span> (i < num_out)</div>
|
||||
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W[i]);</div>
|
||||
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  }</div>
|
||||
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X);</div>
|
||||
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W);</div>
|
||||
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span>{</div>
|
||||
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> <span class="keywordtype">int</span> j, N = 500;</div>
|
||||
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> <span class="keywordtype">int</span> features = 2;</div>
|
||||
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <span class="keywordtype">int</span> num_out = 20;</div>
|
||||
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> <span class="keywordtype">double</span> **X = (<span class="keywordtype">double</span> **)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(N * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> <span class="keywordtype">double</span> **W = (<span class="keywordtype">double</span> **)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> {</div>
|
||||
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> <span class="keywordflow">if</span> (i < N) <span class="comment">// only add new arrays if i < N</span></div>
|
||||
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> X[i] = (<span class="keywordtype">double</span> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> <span class="keywordflow">if</span> (i < num_out) <span class="comment">// only add new arrays if i < num_out</span></div>
|
||||
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> {</div>
|
||||
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> W[i] = (<span class="keywordtype">double</span> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> </div>
|
||||
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> <span class="comment">// preallocate with random initial weights</span></div>
|
||||
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> <span class="keywordflow">for</span> (j = 0; j < features; j++) W[i][j] = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-1, 1);</div>
|
||||
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> }</div>
|
||||
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> }</div>
|
||||
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> </div>
|
||||
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614">test_lamniscate</a>(X, N); <span class="comment">// create test data around the lamniscate</span></div>
|
||||
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"test2.csv"</span>, X, N, features); <span class="comment">// save test data points</span></div>
|
||||
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w21.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> features); <span class="comment">// save initial random weights</span></div>
|
||||
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde">kohonen_som_tracer</a>(X, W, N, features, num_out, 0.01); <span class="comment">// train the SOM</span></div>
|
||||
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w22.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> features); <span class="comment">// save the resultant weights</span></div>
|
||||
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> </div>
|
||||
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> {</div>
|
||||
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> <span class="keywordflow">if</span> (i < N)</div>
|
||||
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X[i]);</div>
|
||||
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"> 393</span> <span class="keywordflow">if</span> (i < num_out)</div>
|
||||
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W[i]);</div>
|
||||
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span> }</div>
|
||||
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X);</div>
|
||||
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W);</div>
|
||||
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span>}</div>
|
||||
<div class="ttc" id="akohonen__som__trace_8c_html_aa2246f940155472084ee461f3685d614"><div class="ttname"><a href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614">test_lamniscate</a></div><div class="ttdeci">void test_lamniscate(double *const *data, int N)</div><div class="ttdoc">Creates a random set of points distributed near the locus of the Lamniscate of Gerono.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:319</div></div>
|
||||
</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="../../d0/d46/kohonen__som__trace_8c_a0283886819c7c140a023582b7269e2d0_cgraph.svg" width="663" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d0/d46/kohonen__som__trace_8c_a0283886819c7c140a023582b7269e2d0_cgraph.svg" width="100%" height="442"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a6d0455dd5c30adda100e95f0423c786e"></a>
|
||||
<a id="a6d0455dd5c30adda100e95f0423c786e" name="a6d0455dd5c30adda100e95f0423c786e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6d0455dd5c30adda100e95f0423c786e">◆ </a></span>test3()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -393,68 +457,68 @@ Here is the call graph for this function:</div>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test that creates a random set of points distributed in six clusters in 3D space. </p>
|
||||
<p>The following <a href="https://en.wikipedia.org/wiki/Comma-separated_values">CSV</a> files are created to validate the execution:</p><ul>
|
||||
<p >The following <a href="https://en.wikipedia.org/wiki/Comma-separated_values" target="_blank">CSV</a> files are created to validate the execution:</p><ul>
|
||||
<li><code>test3.csv</code>: random test samples points with a circular pattern</li>
|
||||
<li><code>w31.csv</code>: initial random map</li>
|
||||
<li><code>w32.csv</code>: trained SOM map</li>
|
||||
</ul>
|
||||
<p>The outputs can be readily plotted in <a href="https:://gnuplot.info">gnuplot</a> using the following snippet </p><div class="fragment"><div class="line">set datafile separator ','</div>
|
||||
<p >The outputs can be readily plotted in <a href="https:://gnuplot.info" target="_blank">gnuplot</a> using the following snippet </p><div class="fragment"><div class="line">set datafile separator ','</div>
|
||||
<div class="line">plot "test3.csv" title "original", \</div>
|
||||
<div class="line"> "w31.csv" title "w1", \</div>
|
||||
<div class="line"> "w32.csv" title "w2"</div>
|
||||
</div><!-- fragment --><p> <img src="https://raw.githubusercontent.com/TheAlgorithms/C/docs/images/machine_learning/kohonen/test3.svg" alt="Sample execution
|
||||
output" style="pointer-events: none;" class="inline"/> </p>
|
||||
<div class="fragment"><div class="line"><a name="l00463"></a><span class="lineno"> 463</span> {</div>
|
||||
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordtype">int</span> j, N = 200;</div>
|
||||
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="keywordtype">int</span> features = 3;</div>
|
||||
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="keywordtype">int</span> num_out = 20;</div>
|
||||
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <span class="keywordtype">double</span> **X = (<span class="keywordtype">double</span> **)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(N * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keywordtype">double</span> **W = (<span class="keywordtype">double</span> **)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  {</div>
|
||||
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keywordflow">if</span> (i < N) <span class="comment">// only add new arrays if i < N</span></div>
|
||||
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  X[i] = (<span class="keywordtype">double</span> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordflow">if</span> (i < num_out) <span class="comment">// only add new arrays if i < num_out</span></div>
|
||||
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  {</div>
|
||||
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  W[i] = (<span class="keywordtype">double</span> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  </div>
|
||||
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="comment">// preallocate with random initial weights</span></div>
|
||||
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="keywordflow">for</span> (j = 0; j < features; j++) W[i][j] = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-1, 1);</div>
|
||||
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  }</div>
|
||||
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  }</div>
|
||||
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  </div>
|
||||
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <a class="code" href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0">test_3d_classes</a>(X, N); <span class="comment">// create test data around the lamniscate</span></div>
|
||||
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"test3.csv"</span>, X, N, features); <span class="comment">// save test data points</span></div>
|
||||
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w31.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  features); <span class="comment">// save initial random weights</span></div>
|
||||
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde">kohonen_som_tracer</a>(X, W, N, features, num_out, 0.01); <span class="comment">// train the SOM</span></div>
|
||||
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w32.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  features); <span class="comment">// save the resultant weights</span></div>
|
||||
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  </div>
|
||||
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  {</div>
|
||||
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keywordflow">if</span> (i < N)</div>
|
||||
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X[i]);</div>
|
||||
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="keywordflow">if</span> (i < num_out)</div>
|
||||
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W[i]);</div>
|
||||
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  }</div>
|
||||
<div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X);</div>
|
||||
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W);</div>
|
||||
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span>{</div>
|
||||
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span> <span class="keywordtype">int</span> j, N = 200;</div>
|
||||
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> <span class="keywordtype">int</span> features = 3;</div>
|
||||
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno"> 466</span> <span class="keywordtype">int</span> num_out = 20;</div>
|
||||
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"> 467</span> <span class="keywordtype">double</span> **X = (<span class="keywordtype">double</span> **)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(N * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno"> 468</span> <span class="keywordtype">double</span> **W = (<span class="keywordtype">double</span> **)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span> *));</div>
|
||||
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno"> 469</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"> 470</span> {</div>
|
||||
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"> 471</span> <span class="keywordflow">if</span> (i < N) <span class="comment">// only add new arrays if i < N</span></div>
|
||||
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span> X[i] = (<span class="keywordtype">double</span> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno"> 473</span> <span class="keywordflow">if</span> (i < num_out) <span class="comment">// only add new arrays if i < num_out</span></div>
|
||||
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno"> 474</span> {</div>
|
||||
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno"> 475</span> W[i] = (<span class="keywordtype">double</span> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(features * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno"> 476</span> </div>
|
||||
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"> 477</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"> 478</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno"> 480</span> <span class="comment">// preallocate with random initial weights</span></div>
|
||||
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"> 481</span> <span class="keywordflow">for</span> (j = 0; j < features; j++) W[i][j] = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-1, 1);</div>
|
||||
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"> 482</span> }</div>
|
||||
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno"> 483</span> }</div>
|
||||
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno"> 484</span> </div>
|
||||
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno"> 485</span> <a class="code hl_function" href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0">test_3d_classes</a>(X, N); <span class="comment">// create test data around the lamniscate</span></div>
|
||||
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno"> 486</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"test3.csv"</span>, X, N, features); <span class="comment">// save test data points</span></div>
|
||||
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno"> 487</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w31.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno"> 488</span> features); <span class="comment">// save initial random weights</span></div>
|
||||
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno"> 489</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde">kohonen_som_tracer</a>(X, W, N, features, num_out, 0.01); <span class="comment">// train the SOM</span></div>
|
||||
<div class="line"><a id="l00490" name="l00490"></a><span class="lineno"> 490</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a">save_nd_data</a>(<span class="stringliteral">"w32.csv"</span>, W, num_out,</div>
|
||||
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno"> 491</span> features); <span class="comment">// save the resultant weights</span></div>
|
||||
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno"> 492</span> </div>
|
||||
<div class="line"><a id="l00493" name="l00493"></a><span class="lineno"> 493</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(num_out, N); i++)</div>
|
||||
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno"> 494</span> {</div>
|
||||
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno"> 495</span> <span class="keywordflow">if</span> (i < N)</div>
|
||||
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno"> 496</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X[i]);</div>
|
||||
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno"> 497</span> <span class="keywordflow">if</span> (i < num_out)</div>
|
||||
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno"> 498</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W[i]);</div>
|
||||
<div class="line"><a id="l00499" name="l00499"></a><span class="lineno"> 499</span> }</div>
|
||||
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno"> 500</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(X);</div>
|
||||
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno"> 501</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(W);</div>
|
||||
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno"> 502</span>}</div>
|
||||
<div class="ttc" id="akohonen__som__trace_8c_html_a41ae16442e3e5b891a58d2e5932a2cd0"><div class="ttname"><a href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0">test_3d_classes</a></div><div class="ttdeci">void test_3d_classes(double *const *data, int N)</div><div class="ttdoc">Creates a random set of points distributed in four clusters in 3D space with centroids at the points.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:410</div></div>
|
||||
</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="../../d0/d46/kohonen__som__trace_8c_a6d0455dd5c30adda100e95f0423c786e_cgraph.svg" width="663" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d0/d46/kohonen__som__trace_8c_a6d0455dd5c30adda100e95f0423c786e_cgraph.svg" width="100%" height="442"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a41ae16442e3e5b891a58d2e5932a2cd0"></a>
|
||||
<a id="a41ae16442e3e5b891a58d2e5932a2cd0" name="a41ae16442e3e5b891a58d2e5932a2cd0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a41ae16442e3e5b891a58d2e5932a2cd0">◆ </a></span>test_3d_classes()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -494,48 +558,48 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> {</div>
|
||||
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> R = 0.1; <span class="comment">// radius of cluster</span></div>
|
||||
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordtype">int</span> i;</div>
|
||||
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> num_classes = 4;</div>
|
||||
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> centres[][3] = {</div>
|
||||
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="comment">// centres of each class cluster</span></div>
|
||||
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  {.5, .5, .5}, <span class="comment">// centre of class 1</span></div>
|
||||
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  {.5, -.5, -.5}, <span class="comment">// centre of class 2</span></div>
|
||||
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  {-.5, .5, .5}, <span class="comment">// centre of class 3</span></div>
|
||||
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  {-.5, -.5 - .5} <span class="comment">// centre of class 4</span></div>
|
||||
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  };</div>
|
||||
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  </div>
|
||||
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
|
||||
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  {</div>
|
||||
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <span class="keywordtype">int</span> <span class="keyword">class </span>=</div>
|
||||
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  rand() % num_classes; <span class="comment">// select a random class for the point</span></div>
|
||||
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  </div>
|
||||
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <span class="comment">// create random coordinates (x,y,z) around the centre of the class</span></div>
|
||||
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <a class="code" href="../../df/dea/structdata.html">data</a>[i][0] = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(centres[<span class="keyword">class</span>][0] - R, centres[<span class="keyword">class</span>][0] + R);</div>
|
||||
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <a class="code" href="../../df/dea/structdata.html">data</a>[i][1] = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(centres[<span class="keyword">class</span>][1] - R, centres[<span class="keyword">class</span>][1] + R);</div>
|
||||
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  <a class="code" href="../../df/dea/structdata.html">data</a>[i][2] = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(centres[<span class="keyword">class</span>][2] - R, centres[<span class="keyword">class</span>][2] + R);</div>
|
||||
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  </div>
|
||||
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <span class="comment">/* The follosing can also be used</span></div>
|
||||
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> <span class="comment"> for (int j = 0; j < 3; j++)</span></div>
|
||||
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> <span class="comment"> data[i][j] = _random(centres[class][j] - R, centres[class][j] + R);</span></div>
|
||||
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  }</div>
|
||||
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span>{</div>
|
||||
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span> <span class="keyword">const</span> <span class="keywordtype">double</span> R = 0.1; <span class="comment">// radius of cluster</span></div>
|
||||
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> <span class="keywordtype">int</span> i;</div>
|
||||
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span> <span class="keyword">const</span> <span class="keywordtype">int</span> num_classes = 4;</div>
|
||||
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span> <span class="keyword">const</span> <span class="keywordtype">double</span> centres[][3] = {</div>
|
||||
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> <span class="comment">// centres of each class cluster</span></div>
|
||||
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span> {.5, .5, .5}, <span class="comment">// centre of class 1</span></div>
|
||||
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"> 418</span> {.5, -.5, -.5}, <span class="comment">// centre of class 2</span></div>
|
||||
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span> {-.5, .5, .5}, <span class="comment">// centre of class 3</span></div>
|
||||
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"> 420</span> {-.5, -.5 - .5} <span class="comment">// centre of class 4</span></div>
|
||||
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> };</div>
|
||||
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> </div>
|
||||
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno"> 424</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno"> 425</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno"> 426</span> <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
|
||||
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno"> 427</span> {</div>
|
||||
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"> 428</span> <span class="keywordtype">int</span> <span class="keyword">class </span>=</div>
|
||||
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno"> 429</span> rand() % num_classes; <span class="comment">// select a random class for the point</span></div>
|
||||
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno"> 430</span> </div>
|
||||
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> <span class="comment">// create random coordinates (x,y,z) around the centre of the class</span></div>
|
||||
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> <a class="code hl_struct" href="../../df/dea/structdata.html">data</a>[i][0] = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(centres[<span class="keyword">class</span>][0] - R, centres[<span class="keyword">class</span>][0] + R);</div>
|
||||
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> <a class="code hl_struct" href="../../df/dea/structdata.html">data</a>[i][1] = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(centres[<span class="keyword">class</span>][1] - R, centres[<span class="keyword">class</span>][1] + R);</div>
|
||||
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span> <a class="code hl_struct" href="../../df/dea/structdata.html">data</a>[i][2] = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(centres[<span class="keyword">class</span>][2] - R, centres[<span class="keyword">class</span>][2] + R);</div>
|
||||
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"> 435</span> </div>
|
||||
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno"> 436</span> <span class="comment">/* The follosing can also be used</span></div>
|
||||
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno"> 437</span><span class="comment"> for (int j = 0; j < 3; j++)</span></div>
|
||||
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno"> 438</span><span class="comment"> data[i][j] = _random(centres[class][j] - R, centres[class][j] + R);</span></div>
|
||||
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno"> 439</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno"> 440</span> }</div>
|
||||
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno"> 441</span>}</div>
|
||||
<div class="ttc" id="astructdata_html"><div class="ttname"><a href="../../df/dea/structdata.html">data</a></div><div class="ttdef"><b>Definition:</b> prime_factoriziation.c:25</div></div>
|
||||
</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="../../d0/d46/kohonen__som__trace_8c_a41ae16442e3e5b891a58d2e5932a2cd0_cgraph.svg" width="248" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d46/kohonen__som__trace_8c_a41ae16442e3e5b891a58d2e5932a2cd0_cgraph.svg" width="251" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a107f00650b8041f77767927073ddddb8"></a>
|
||||
<a id="a107f00650b8041f77767927073ddddb8" name="a107f00650b8041f77767927073ddddb8"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a107f00650b8041f77767927073ddddb8">◆ </a></span>test_circle()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -562,7 +626,7 @@ Here is the call graph for this function:</div>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Creates a random set of points distributed <em>near</em> the circumference of a circle and trains an SOM that finds that circular pattern. </p>
|
||||
<p>The generating function is </p><p class="formulaDsp">
|
||||
<p >The generating function is </p><p class="formulaDsp">
|
||||
\begin{eqnarray*} r &\in& [1-\delta r, 1+\delta r)\\ \theta &\in& [0, 2\pi)\\ x &=& r\cos\theta\\ y &=& r\sin\theta \end{eqnarray*}
|
||||
</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
@@ -572,33 +636,33 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> {</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> R = 0.75, dr = 0.3;</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordtype">double</span> a_t = 0., b_t = 2.f * M_PI; <span class="comment">// theta random between 0 and 2*pi</span></div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordtype">double</span> a_r = R - dr, b_r = R + dr; <span class="comment">// radius random between R-dr and R+dr</span></div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keywordtype">int</span> i;</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  </div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  {</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordtype">double</span> r = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(a_r, b_r); <span class="comment">// random radius</span></div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordtype">double</span> theta = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(a_t, b_t); <span class="comment">// random theta</span></div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="../../df/dea/structdata.html">data</a>[i][0] = r * cos(theta); <span class="comment">// convert from polar to cartesian</span></div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <a class="code" href="../../df/dea/structdata.html">data</a>[i][1] = r * sin(theta);</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  }</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span>{</div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keyword">const</span> <span class="keywordtype">double</span> R = 0.75, dr = 0.3;</div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <span class="keywordtype">double</span> a_t = 0., b_t = 2.f * M_PI; <span class="comment">// theta random between 0 and 2*pi</span></div>
|
||||
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keywordtype">double</span> a_r = R - dr, b_r = R + dr; <span class="comment">// radius random between R-dr and R+dr</span></div>
|
||||
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keywordtype">int</span> i;</div>
|
||||
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> </div>
|
||||
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
|
||||
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> {</div>
|
||||
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="keywordtype">double</span> r = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(a_r, b_r); <span class="comment">// random radius</span></div>
|
||||
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <span class="keywordtype">double</span> theta = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(a_t, b_t); <span class="comment">// random theta</span></div>
|
||||
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <a class="code hl_struct" href="../../df/dea/structdata.html">data</a>[i][0] = r * cos(theta); <span class="comment">// convert from polar to cartesian</span></div>
|
||||
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <a class="code hl_struct" href="../../df/dea/structdata.html">data</a>[i][1] = r * sin(theta);</div>
|
||||
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> }</div>
|
||||
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span>}</div>
|
||||
</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="../../d0/d46/kohonen__som__trace_8c_a107f00650b8041f77767927073ddddb8_cgraph.svg" width="214" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d46/kohonen__som__trace_8c_a107f00650b8041f77767927073ddddb8_cgraph.svg" width="216" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa2246f940155472084ee461f3685d614"></a>
|
||||
<a id="aa2246f940155472084ee461f3685d614" name="aa2246f940155472084ee461f3685d614"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa2246f940155472084ee461f3685d614">◆ </a></span>test_lamniscate()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -624,7 +688,7 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono">Lamniscate of Gerono</a>. </p>
|
||||
<p>Creates a random set of points distributed <em>near</em> the locus of the <a href="https://en.wikipedia.org/wiki/Lemniscate_of_Gerono" target="_blank">Lamniscate of Gerono</a>. </p>
|
||||
<p class="formulaDsp">
|
||||
\begin{eqnarray*} \delta r &=& 0.2\\ \delta x &\in& [-\delta r, \delta r)\\ \delta y &\in& [-\delta r, \delta r)\\ \theta &\in& [0, \pi)\\ x &=& \delta x + \cos\theta\\ y &=& \delta y + \frac{\sin(2\theta)}{2} \end{eqnarray*}
|
||||
</p>
|
||||
@@ -635,26 +699,26 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> {</div>
|
||||
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> dr = 0.2;</div>
|
||||
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordtype">int</span> i;</div>
|
||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div>
|
||||
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
|
||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  {</div>
|
||||
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordtype">double</span> dx = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-dr, dr); <span class="comment">// random change in x</span></div>
|
||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordtype">double</span> dy = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-dr, dr); <span class="comment">// random change in y</span></div>
|
||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordtype">double</span> theta = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(0, M_PI); <span class="comment">// random theta</span></div>
|
||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <a class="code" href="../../df/dea/structdata.html">data</a>[i][0] = dx + cos(theta); <span class="comment">// convert from polar to cartesian</span></div>
|
||||
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="../../df/dea/structdata.html">data</a>[i][1] = dy + sin(2. * theta) / 2.f;</div>
|
||||
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  }</div>
|
||||
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span>{</div>
|
||||
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <span class="keyword">const</span> <span class="keywordtype">double</span> dr = 0.2;</div>
|
||||
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <span class="keywordtype">int</span> i;</div>
|
||||
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> </div>
|
||||
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> <span class="keywordflow">for</span> (i = 0; i < N; i++)</div>
|
||||
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> {</div>
|
||||
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <span class="keywordtype">double</span> dx = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-dr, dr); <span class="comment">// random change in x</span></div>
|
||||
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> <span class="keywordtype">double</span> dy = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(-dr, dr); <span class="comment">// random change in y</span></div>
|
||||
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <span class="keywordtype">double</span> theta = <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a>(0, M_PI); <span class="comment">// random theta</span></div>
|
||||
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> <a class="code hl_struct" href="../../df/dea/structdata.html">data</a>[i][0] = dx + cos(theta); <span class="comment">// convert from polar to cartesian</span></div>
|
||||
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> <a class="code hl_struct" href="../../df/dea/structdata.html">data</a>[i][1] = dy + sin(2. * theta) / 2.f;</div>
|
||||
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> }</div>
|
||||
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span>}</div>
|
||||
</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="../../d0/d46/kohonen__som__trace_8c_aa2246f940155472084ee461f3685d614_cgraph.svg" width="246" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d46/kohonen__som__trace_8c_aa2246f940155472084ee461f3685d614_cgraph.svg" width="248" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -666,7 +730,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="../../dir_3343723ae086de42ee4ca9774da3a13f.html">machine_learning</a></li><li class="navelem"><a class="el" href="../../d0/d46/kohonen__som__trace_8c.html">kohonen_som_trace.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<map id="test2" name="test2">
|
||||
<area shape="rect" id="node1" title="Test that creates a random set of points distributed near the locus of the Lamniscate of Gerono and t..." alt="" coords="5,81,56,108"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="343,107,415,133"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="104,5,247,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" title="Save a given n-dimensional data martix to file." alt="" coords="124,107,227,133"/>
|
||||
<area shape="rect" id="node7" href="$d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614" title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono." alt="" coords="118,157,233,184"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="295,5,464,32"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="512,5,657,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="348,107,423,133"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="104,5,251,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" title="Save a given n-dimensional data martix to file." alt="" coords="125,107,230,133"/>
|
||||
<area shape="rect" id="node7" href="$d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614" title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono." alt="" coords="120,157,235,184"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="299,5,472,32"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="520,5,671,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,60 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test2 Pages: 1 -->
|
||||
<svg width="497pt" height="142pt"
|
||||
viewBox="0.00 0.00 497.00 142.00" 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 138)">
|
||||
<!--zoomable 142 -->
|
||||
<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 = 507;
|
||||
var viewHeight = 142;
|
||||
var sectionId = 'dynsection-3';
|
||||
</script>
|
||||
<script xlink:href="../../svgpan.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>test2</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 493,-138 493,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 503,-138 503,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,97 +68,139 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="253.5,-38.5 253.5,-57.5 307.5,-57.5 307.5,-38.5 253.5,-38.5"/>
|
||||
<text text-anchor="middle" x="280.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
<polygon fill="white" stroke="black" points="257,-38.5 257,-57.5 313,-57.5 313,-38.5 257,-38.5"/>
|
||||
<text text-anchor="middle" x="285" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.4,-68.14C68.37,-69.73 129.52,-71.92 181,-67 201.92,-65 225,-60.67 243.56,-56.64"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="244.36,-60.05 253.36,-54.45 242.84,-53.22 244.36,-60.05"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.25,-68.11C68.59,-69.71 131.27,-71.96 184,-67 204.93,-65.03 228,-60.79 246.71,-56.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="247.59,-60.2 256.61,-54.64 246.09,-53.36 247.59,-60.2"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 181,-133.5 181,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 184,-133.5 184,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="129" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M34.85,-76.74C45.54,-83.59 60.42,-92.78 74,-100 80.63,-103.53 87.88,-107.04 94.81,-110.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="93.44,-113.48 103.99,-114.42 96.33,-107.1 93.44,-113.48"/>
|
||||
<path fill="none" stroke="midnightblue" d="M34.83,-76.78C45.51,-83.65 60.38,-92.85 74,-100 80.81,-103.57 88.26,-107.11 95.39,-110.33"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.26,-113.66 104.83,-114.49 97.09,-107.25 94.26,-113.66"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="89,-38.5 89,-57.5 166,-57.5 166,-38.5 89,-38.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
<polygon fill="white" stroke="black" points="89.5,-38.5 89.5,-57.5 168.5,-57.5 168.5,-38.5 89.5,-38.5"/>
|
||||
<text text-anchor="middle" x="129" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.07,-63.78C49.35,-61.76 64.45,-59.07 78.97,-56.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="79.65,-59.91 88.88,-54.71 78.42,-53.02 79.65,-59.91"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.78C49.66,-61.78 64.81,-59.12 79.42,-56.55"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.16,-59.97 89.4,-54.79 78.95,-53.08 80.16,-59.97"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614" target="_top" xlink:title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono.">
|
||||
<polygon fill="white" stroke="black" points="84.5,-0.5 84.5,-19.5 170.5,-19.5 170.5,-0.5 84.5,-0.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_lamniscate</text>
|
||||
<polygon fill="white" stroke="black" points="86,-0.5 86,-19.5 172,-19.5 172,-0.5 86,-0.5"/>
|
||||
<text text-anchor="middle" x="129" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_lamniscate</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.84,-57.27C42.41,-48.94 58.55,-37.05 74,-29 77.98,-26.93 82.23,-24.99 86.53,-23.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="87.89,-26.42 95.93,-19.51 85.34,-19.9 87.89,-26.42"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.83,-57.23C42.38,-48.88 58.51,-36.98 74,-29 78.03,-26.92 82.35,-24.98 86.71,-23.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.18,-26.38 96.26,-19.53 85.67,-19.84 88.18,-26.38"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="217,-114.5 217,-133.5 344,-133.5 344,-114.5 217,-114.5"/>
|
||||
<text text-anchor="middle" x="280.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
<polygon fill="white" stroke="black" points="220,-114.5 220,-133.5 350,-133.5 350,-114.5 220,-114.5"/>
|
||||
<text text-anchor="middle" x="285" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M181.31,-124C189.56,-124 198.22,-124 206.82,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="206.87,-127.5 216.87,-124 206.87,-120.5 206.87,-127.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M184.29,-124C192.57,-124 201.24,-124 209.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.92,-127.5 219.92,-124 209.92,-120.5 209.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="380,-114.5 380,-133.5 489,-133.5 489,-114.5 380,-114.5"/>
|
||||
<text text-anchor="middle" x="434.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
<polygon fill="white" stroke="black" points="386,-114.5 386,-133.5 499,-133.5 499,-114.5 386,-114.5"/>
|
||||
<text text-anchor="middle" x="442.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M344.2,-124C352.57,-124 361.17,-124 369.56,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="369.67,-127.5 379.67,-124 369.67,-120.5 369.67,-127.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M350.15,-124C358.59,-124 367.26,-124 375.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="375.94,-127.5 385.94,-124 375.94,-120.5 375.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7->Node2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M166.6,-19.59C190.2,-25.53 220.31,-33.1 243.5,-38.94"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="242.74,-42.36 253.29,-41.41 244.45,-35.57 242.74,-42.36"/>
|
||||
<path fill="none" stroke="midnightblue" d="M168.86,-19.59C192.77,-25.49 223.24,-33.01 246.82,-38.83"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="246.25,-42.29 256.8,-41.29 247.93,-35.49 246.25,-42.29"/>
|
||||
</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="kohonen__som__trace_8c_a0283886819c7c140a023582b7269e2d0_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>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,118 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test2 Pages: 1 -->
|
||||
<svg width="507pt" height="142pt"
|
||||
viewBox="0.00 0.00 507.00 142.00" 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 138)">
|
||||
<title>test2</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 503,-138 503,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Test that creates a random set of points distributed near the locus of the Lamniscate of Gerono and t...">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-57.5 0,-76.5 38,-76.5 38,-57.5 0,-57.5"/>
|
||||
<text text-anchor="middle" x="19" y="-64.5" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="257,-38.5 257,-57.5 313,-57.5 313,-38.5 257,-38.5"/>
|
||||
<text text-anchor="middle" x="285" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.25,-68.11C68.59,-69.71 131.27,-71.96 184,-67 204.93,-65.03 228,-60.79 246.71,-56.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="247.59,-60.2 256.61,-54.64 246.09,-53.36 247.59,-60.2"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 184,-133.5 184,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="129" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M34.83,-76.78C45.51,-83.65 60.38,-92.85 74,-100 80.81,-103.57 88.26,-107.11 95.39,-110.33"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.26,-113.66 104.83,-114.49 97.09,-107.25 94.26,-113.66"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="89.5,-38.5 89.5,-57.5 168.5,-57.5 168.5,-38.5 89.5,-38.5"/>
|
||||
<text text-anchor="middle" x="129" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.78C49.66,-61.78 64.81,-59.12 79.42,-56.55"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.16,-59.97 89.4,-54.79 78.95,-53.08 80.16,-59.97"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614" target="_top" xlink:title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono.">
|
||||
<polygon fill="white" stroke="black" points="86,-0.5 86,-19.5 172,-19.5 172,-0.5 86,-0.5"/>
|
||||
<text text-anchor="middle" x="129" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_lamniscate</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.83,-57.23C42.38,-48.88 58.51,-36.98 74,-29 78.03,-26.92 82.35,-24.98 86.71,-23.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.18,-26.38 96.26,-19.53 85.67,-19.84 88.18,-26.38"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="220,-114.5 220,-133.5 350,-133.5 350,-114.5 220,-114.5"/>
|
||||
<text text-anchor="middle" x="285" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M184.29,-124C192.57,-124 201.24,-124 209.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.92,-127.5 219.92,-124 209.92,-120.5 209.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="386,-114.5 386,-133.5 499,-133.5 499,-114.5 386,-114.5"/>
|
||||
<text text-anchor="middle" x="442.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M350.15,-124C358.59,-124 367.26,-124 375.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="375.94,-127.5 385.94,-124 375.94,-120.5 375.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7->Node2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M168.86,-19.59C192.77,-25.49 223.24,-33.01 246.82,-38.83"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="246.25,-42.29 256.8,-41.29 247.93,-35.49 246.25,-42.29"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@@ -1,4 +1,4 @@
|
||||
<map id="test_circle" name="test_circle">
|
||||
<area shape="rect" id="node1" title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ..." alt="" coords="5,5,88,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="136,5,208,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="136,5,211,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test_circle Pages: 1 -->
|
||||
<svg width="160pt" height="28pt"
|
||||
viewBox="0.00 0.00 160.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="162pt" height="28pt"
|
||||
viewBox="0.00 0.00 162.00 28.00" 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 24)">
|
||||
<title>test_circle</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 156,-24 156,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 158,-24 158,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,16 +22,16 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="98,-0.5 98,-19.5 152,-19.5 152,-0.5 98,-0.5"/>
|
||||
<text text-anchor="middle" x="125" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
<polygon fill="white" stroke="black" points="98,-0.5 98,-19.5 154,-19.5 154,-0.5 98,-0.5"/>
|
||||
<text text-anchor="middle" x="126" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M62.12,-10C70.32,-10 79.28,-10 87.78,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="87.83,-13.5 97.83,-10 87.83,-6.5 87.83,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M62.19,-10C70.34,-10 79.25,-10 87.73,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="87.78,-13.5 97.78,-10 87.78,-6.5 87.78,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,9 +1,9 @@
|
||||
<map id="test1" name="test1">
|
||||
<area shape="rect" id="node1" title="Test that creates a random set of points distributed near the circumference of a circle and trains an..." alt="" coords="5,81,56,108"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="343,107,415,133"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="104,5,247,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" title="Save a given n-dimensional data martix to file." alt="" coords="124,107,227,133"/>
|
||||
<area shape="rect" id="node7" href="$d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8" title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ..." alt="" coords="134,157,217,184"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="295,5,464,32"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="512,5,657,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="348,107,423,133"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="104,5,251,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" title="Save a given n-dimensional data martix to file." alt="" coords="125,107,230,133"/>
|
||||
<area shape="rect" id="node7" href="$d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8" title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ..." alt="" coords="136,157,219,184"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="299,5,472,32"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="520,5,671,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,60 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test1 Pages: 1 -->
|
||||
<svg width="497pt" height="142pt"
|
||||
viewBox="0.00 0.00 497.00 142.00" 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 138)">
|
||||
<!--zoomable 142 -->
|
||||
<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 = 507;
|
||||
var viewHeight = 142;
|
||||
var sectionId = 'dynsection-2';
|
||||
</script>
|
||||
<script xlink:href="../../svgpan.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>test1</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 493,-138 493,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 503,-138 503,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,97 +68,139 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="253.5,-38.5 253.5,-57.5 307.5,-57.5 307.5,-38.5 253.5,-38.5"/>
|
||||
<text text-anchor="middle" x="280.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
<polygon fill="white" stroke="black" points="257,-38.5 257,-57.5 313,-57.5 313,-38.5 257,-38.5"/>
|
||||
<text text-anchor="middle" x="285" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.4,-68.14C68.37,-69.73 129.52,-71.92 181,-67 201.92,-65 225,-60.67 243.56,-56.64"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="244.36,-60.05 253.36,-54.45 242.84,-53.22 244.36,-60.05"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.25,-68.11C68.59,-69.71 131.27,-71.96 184,-67 204.93,-65.03 228,-60.79 246.71,-56.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="247.59,-60.2 256.61,-54.64 246.09,-53.36 247.59,-60.2"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 181,-133.5 181,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 184,-133.5 184,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="129" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M34.85,-76.74C45.54,-83.59 60.42,-92.78 74,-100 80.63,-103.53 87.88,-107.04 94.81,-110.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="93.44,-113.48 103.99,-114.42 96.33,-107.1 93.44,-113.48"/>
|
||||
<path fill="none" stroke="midnightblue" d="M34.83,-76.78C45.51,-83.65 60.38,-92.85 74,-100 80.81,-103.57 88.26,-107.11 95.39,-110.33"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.26,-113.66 104.83,-114.49 97.09,-107.25 94.26,-113.66"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="89,-38.5 89,-57.5 166,-57.5 166,-38.5 89,-38.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
<polygon fill="white" stroke="black" points="89.5,-38.5 89.5,-57.5 168.5,-57.5 168.5,-38.5 89.5,-38.5"/>
|
||||
<text text-anchor="middle" x="129" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.07,-63.78C49.35,-61.76 64.45,-59.07 78.97,-56.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="79.65,-59.91 88.88,-54.71 78.42,-53.02 79.65,-59.91"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.78C49.66,-61.78 64.81,-59.12 79.42,-56.55"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.16,-59.97 89.4,-54.79 78.95,-53.08 80.16,-59.97"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8" target="_top" xlink:title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ...">
|
||||
<polygon fill="white" stroke="black" points="96.5,-0.5 96.5,-19.5 158.5,-19.5 158.5,-0.5 96.5,-0.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_circle</text>
|
||||
<polygon fill="white" stroke="black" points="98,-0.5 98,-19.5 160,-19.5 160,-0.5 98,-0.5"/>
|
||||
<text text-anchor="middle" x="129" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_circle</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.84,-57.27C42.41,-48.94 58.55,-37.05 74,-29 78.08,-26.88 82.44,-24.89 86.85,-23.06"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.43,-26.2 96.48,-19.31 85.89,-19.68 88.43,-26.2"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.83,-57.23C42.38,-48.88 58.51,-36.98 74,-29 78.58,-26.64 83.51,-24.46 88.47,-22.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="89.82,-25.71 97.96,-18.93 87.37,-19.16 89.82,-25.71"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="217,-114.5 217,-133.5 344,-133.5 344,-114.5 217,-114.5"/>
|
||||
<text text-anchor="middle" x="280.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
<polygon fill="white" stroke="black" points="220,-114.5 220,-133.5 350,-133.5 350,-114.5 220,-114.5"/>
|
||||
<text text-anchor="middle" x="285" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M181.31,-124C189.56,-124 198.22,-124 206.82,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="206.87,-127.5 216.87,-124 206.87,-120.5 206.87,-127.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M184.29,-124C192.57,-124 201.24,-124 209.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.92,-127.5 219.92,-124 209.92,-120.5 209.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="380,-114.5 380,-133.5 489,-133.5 489,-114.5 380,-114.5"/>
|
||||
<text text-anchor="middle" x="434.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
<polygon fill="white" stroke="black" points="386,-114.5 386,-133.5 499,-133.5 499,-114.5 386,-114.5"/>
|
||||
<text text-anchor="middle" x="442.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M344.2,-124C352.57,-124 361.17,-124 369.56,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="369.67,-127.5 379.67,-124 369.67,-120.5 369.67,-127.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M350.15,-124C358.59,-124 367.26,-124 375.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="375.94,-127.5 385.94,-124 375.94,-120.5 375.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7->Node2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M158.69,-17.6C183.16,-23.76 217.7,-32.45 243.58,-38.96"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="242.84,-42.38 253.39,-41.43 244.54,-35.59 242.84,-42.38"/>
|
||||
<path fill="none" stroke="midnightblue" d="M160.06,-17.42C184.97,-23.56 220.49,-32.33 247.12,-38.9"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="246.31,-42.3 256.85,-41.3 247.98,-35.51 246.31,-42.3"/>
|
||||
</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="kohonen__som__trace_8c_a1440a7779ac56f47a3f355ce4a8c7da0_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>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,118 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test1 Pages: 1 -->
|
||||
<svg width="507pt" height="142pt"
|
||||
viewBox="0.00 0.00 507.00 142.00" 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 138)">
|
||||
<title>test1</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 503,-138 503,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Test that creates a random set of points distributed near the circumference of a circle and trains an...">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-57.5 0,-76.5 38,-76.5 38,-57.5 0,-57.5"/>
|
||||
<text text-anchor="middle" x="19" y="-64.5" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="257,-38.5 257,-57.5 313,-57.5 313,-38.5 257,-38.5"/>
|
||||
<text text-anchor="middle" x="285" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.25,-68.11C68.59,-69.71 131.27,-71.96 184,-67 204.93,-65.03 228,-60.79 246.71,-56.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="247.59,-60.2 256.61,-54.64 246.09,-53.36 247.59,-60.2"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 184,-133.5 184,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="129" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M34.83,-76.78C45.51,-83.65 60.38,-92.85 74,-100 80.81,-103.57 88.26,-107.11 95.39,-110.33"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.26,-113.66 104.83,-114.49 97.09,-107.25 94.26,-113.66"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="89.5,-38.5 89.5,-57.5 168.5,-57.5 168.5,-38.5 89.5,-38.5"/>
|
||||
<text text-anchor="middle" x="129" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.78C49.66,-61.78 64.81,-59.12 79.42,-56.55"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.16,-59.97 89.4,-54.79 78.95,-53.08 80.16,-59.97"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8" target="_top" xlink:title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ...">
|
||||
<polygon fill="white" stroke="black" points="98,-0.5 98,-19.5 160,-19.5 160,-0.5 98,-0.5"/>
|
||||
<text text-anchor="middle" x="129" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_circle</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.83,-57.23C42.38,-48.88 58.51,-36.98 74,-29 78.58,-26.64 83.51,-24.46 88.47,-22.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="89.82,-25.71 97.96,-18.93 87.37,-19.16 89.82,-25.71"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="220,-114.5 220,-133.5 350,-133.5 350,-114.5 220,-114.5"/>
|
||||
<text text-anchor="middle" x="285" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M184.29,-124C192.57,-124 201.24,-124 209.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.92,-127.5 219.92,-124 209.92,-120.5 209.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="386,-114.5 386,-133.5 499,-133.5 499,-114.5 386,-114.5"/>
|
||||
<text text-anchor="middle" x="442.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M350.15,-124C358.59,-124 367.26,-124 375.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="375.94,-127.5 385.94,-124 375.94,-120.5 375.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7->Node2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M160.06,-17.42C184.97,-23.56 220.49,-32.33 247.12,-38.9"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="246.31,-42.3 256.85,-41.3 247.98,-35.51 246.31,-42.3"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@@ -0,0 +1,15 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,166,56,192"/>
|
||||
<area shape="rect" id="node2" href="$d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908" title="Convert clock cycle difference to time in seconds." alt="" coords="104,90,207,116"/>
|
||||
<area shape="rect" id="node3" href="$d0/d46/kohonen__som__trace_8c.html#a1440a7779ac56f47a3f355ce4a8c7da0" title="Test that creates a random set of points distributed near the circumference of a circle and trains an..." alt="" coords="130,140,181,167"/>
|
||||
<area shape="rect" id="node10" href="$d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0" title="Test that creates a random set of points distributed near the locus of the Lamniscate of Gerono and t..." alt="" coords="130,191,181,218"/>
|
||||
<area shape="rect" id="node12" href="$d0/d46/kohonen__som__trace_8c.html#a6d0455dd5c30adda100e95f0423c786e" title="Test that creates a random set of points distributed in six clusters in 3D space." alt="" coords="130,242,181,268"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="499,115,573,142"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="255,191,401,218"/>
|
||||
<area shape="rect" id="node8" href="$d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" title="Save a given n-dimensional data martix to file." alt="" coords="275,242,381,268"/>
|
||||
<area shape="rect" id="node9" href="$d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8" title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ..." alt="" coords="287,39,369,66"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="449,191,623,218"/>
|
||||
<area shape="rect" id="node7" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="671,191,821,218"/>
|
||||
<area shape="rect" id="node11" href="$d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614" title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono." alt="" coords="271,140,385,167"/>
|
||||
<area shape="rect" id="node13" href="$d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0" title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points." alt="" coords="269,343,387,370"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
e807e99466c61606f8f9a55fd8367c86
|
||||
@@ -0,0 +1,344 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<!--zoomable 281 -->
|
||||
<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 = 620;
|
||||
var viewHeight = 281;
|
||||
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,-277.32 616,-277.32 616,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,-133.5 0,-152.5 38,-152.5 38,-133.5 0,-133.5"/>
|
||||
<text text-anchor="middle" x="19" y="-140.5" 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="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908" target="_top" xlink:title="Convert clock cycle difference to time in seconds.">
|
||||
<polygon fill="white" stroke="black" points="74,-190.5 74,-209.5 151,-209.5 151,-190.5 74,-190.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">get_clock_diff</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M32.53,-152.59C43.25,-160.62 59.26,-172.14 74,-181 76.67,-182.6 79.48,-184.2 82.33,-185.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.88,-188.93 91.36,-190.47 84.12,-182.73 80.88,-188.93"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a1440a7779ac56f47a3f355ce4a8c7da0" target="_top" xlink:title="Test that creates a random set of points distributed near the circumference of a circle and trains an...">
|
||||
<polygon fill="white" stroke="black" points="93.5,-152.5 93.5,-171.5 131.5,-171.5 131.5,-152.5 93.5,-152.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.08,-146.75C50.99,-149.43 68.6,-153.09 83.34,-156.15"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="82.96,-159.65 93.46,-158.25 84.38,-152.79 82.96,-159.65"/>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0" target="_top" xlink:title="Test that creates a random set of points distributed near the locus of the Lamniscate of Gerono and t...">
|
||||
<polygon fill="white" stroke="black" points="93.5,-114.5 93.5,-133.5 131.5,-133.5 131.5,-114.5 93.5,-114.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node10 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node1->Node10</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.08,-139.25C50.99,-136.57 68.6,-132.91 83.34,-129.85"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.38,-133.21 93.46,-127.75 82.96,-126.35 84.38,-133.21"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a6d0455dd5c30adda100e95f0423c786e" target="_top" xlink:title="Test that creates a random set of points distributed in six clusters in 3D space.">
|
||||
<polygon fill="white" stroke="black" points="93.5,-76.5 93.5,-95.5 131.5,-95.5 131.5,-76.5 93.5,-76.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">test3</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node12 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>Node1->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M32.53,-133.41C43.25,-125.38 59.26,-113.86 74,-105 77.26,-103.04 80.74,-101.1 84.22,-99.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="86,-102.26 93.28,-94.57 82.79,-96.04 86,-102.26"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="370,-171.5 370,-190.5 426,-190.5 426,-171.5 370,-171.5"/>
|
||||
<text text-anchor="middle" x="398" y="-178.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.86,-168.39C138.52,-171.41 145.7,-175.56 151,-181 177.07,-207.78 155.42,-237.01 187,-257 228.31,-283.14 250.67,-272.61 297,-257 331.54,-245.37 363.6,-216.53 381.7,-197.91"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="384.25,-200.31 388.57,-190.64 379.16,-195.51 384.25,-200.31"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="187,-114.5 187,-133.5 297,-133.5 297,-114.5 187,-114.5"/>
|
||||
<text text-anchor="middle" x="242" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-156.56C149.28,-151.34 176.35,-143.27 199.16,-136.47"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="200.38,-139.76 208.97,-133.55 198.38,-133.05 200.38,-139.76"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="202.5,-76.5 202.5,-95.5 281.5,-95.5 281.5,-76.5 202.5,-76.5"/>
|
||||
<text text-anchor="middle" x="242" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node3->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.79,-154.29C138.15,-151.22 145.15,-147.36 151,-143 169.65,-129.09 167.48,-117.66 187,-105 190.1,-102.99 193.44,-101.16 196.88,-99.51"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="198.35,-102.69 206.15,-95.52 195.58,-96.26 198.35,-102.69"/>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8" target="_top" xlink:title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ...">
|
||||
<polygon fill="white" stroke="black" points="211,-228.5 211,-247.5 273,-247.5 273,-228.5 211,-228.5"/>
|
||||
<text text-anchor="middle" x="242" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_circle</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node9 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node3->Node9</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.62,-169.94C137.96,-173.04 145,-176.85 151,-181 168.85,-193.35 168.85,-202.1 187,-214 192.77,-217.78 199.22,-221.23 205.61,-224.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="204.28,-227.5 214.84,-228.39 207.15,-221.11 204.28,-227.5"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="333,-114.5 333,-133.5 463,-133.5 463,-114.5 333,-114.5"/>
|
||||
<text text-anchor="middle" x="398" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node5->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M297.29,-124C305.57,-124 314.24,-124 322.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="322.92,-127.5 332.92,-124 322.92,-120.5 322.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="499,-114.5 499,-133.5 612,-133.5 612,-114.5 499,-114.5"/>
|
||||
<text text-anchor="middle" x="555.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node6->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M463.15,-124C471.59,-124 480.26,-124 488.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="488.94,-127.5 498.94,-124 488.94,-120.5 488.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node9->Node4 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node9->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M268.78,-228.46C294.21,-219.05 333.28,-204.59 361.61,-194.1"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="362.98,-197.33 371.14,-190.57 360.55,-190.76 362.98,-197.33"/>
|
||||
</g>
|
||||
<!-- Node10->Node4 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node10->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.79,-131.71C138.15,-134.78 145.15,-138.64 151,-143 169.65,-156.91 165.63,-171.81 187,-181 243.43,-205.27 316.55,-197.59 359.94,-189.51"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="360.65,-192.94 369.78,-187.57 359.3,-186.07 360.65,-192.94"/>
|
||||
</g>
|
||||
<!-- Node10->Node5 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node10->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-124C143.74,-124 160.18,-124 176.68,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="176.91,-127.5 186.91,-124 176.91,-120.5 176.91,-127.5"/>
|
||||
</g>
|
||||
<!-- Node10->Node8 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node10->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-118.56C149.28,-113.34 176.35,-105.27 199.16,-98.47"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="200.38,-101.76 208.97,-95.55 198.38,-95.05 200.38,-101.76"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614" target="_top" xlink:title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono.">
|
||||
<polygon fill="white" stroke="black" points="199,-152.5 199,-171.5 285,-171.5 285,-152.5 199,-152.5"/>
|
||||
<text text-anchor="middle" x="242" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_lamniscate</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-129.44C149.28,-134.66 176.35,-142.73 199.16,-149.53"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="198.38,-152.95 208.97,-152.45 200.38,-146.24 198.38,-152.95"/>
|
||||
</g>
|
||||
<!-- Node11->Node4 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node11->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M285.08,-167.19C308.45,-170.08 337.27,-173.63 359.81,-176.41"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="359.65,-179.92 370,-177.67 360.5,-172.97 359.65,-179.92"/>
|
||||
</g>
|
||||
<!-- Node12->Node4 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>Node12->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.61,-77.23C166.59,-61.67 244.63,-33.86 297,-67 328.58,-86.99 307.83,-115.37 333,-143 341.84,-152.7 353.73,-160.69 364.87,-166.79"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="363.48,-170.01 373.97,-171.47 366.68,-163.78 363.48,-170.01"/>
|
||||
</g>
|
||||
<!-- Node12->Node5 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>Node12->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-91.44C149.28,-96.66 176.35,-104.73 199.16,-111.53"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="198.38,-114.95 208.97,-114.45 200.38,-108.24 198.38,-114.95"/>
|
||||
</g>
|
||||
<!-- Node12->Node8 -->
|
||||
<g id="edge19" class="edge">
|
||||
<title>Node12->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-86C147.51,-86 170.97,-86 192.12,-86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="192.27,-89.5 202.27,-86 192.27,-82.5 192.27,-89.5"/>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="node13" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_node13"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0" target="_top" xlink:title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points.">
|
||||
<polygon fill="white" stroke="black" points="198,-0.5 198,-19.5 286,-19.5 286,-0.5 198,-0.5"/>
|
||||
<text text-anchor="middle" x="242" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_3d_classes</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12->Node13 -->
|
||||
<g id="edge20" class="edge">
|
||||
<title>Node12->Node13</title>
|
||||
<path fill="none" stroke="midnightblue" d="M125.49,-76.39C139.65,-65.32 164.17,-46.98 187,-34 193.5,-30.3 200.67,-26.77 207.61,-23.6"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.11,-26.77 216.84,-19.53 206.28,-20.36 209.11,-26.77"/>
|
||||
</g>
|
||||
<!-- Node13->Node4 -->
|
||||
<g id="edge21" class="edge">
|
||||
<title>Node13->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M276.1,-19.55C283.78,-23.06 291.35,-27.76 297,-34 331.24,-71.82 301.04,-103.23 333,-143 340.97,-152.91 352.27,-160.82 363.17,-166.8"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="361.64,-169.95 372.14,-171.37 364.82,-163.72 361.64,-169.95"/>
|
||||
</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="kohonen__som__trace_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>
|
||||
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,256 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="620pt" height="281pt"
|
||||
viewBox="0.00 0.00 620.00 281.32" 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 277.32)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-277.32 616,-277.32 616,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,-133.5 0,-152.5 38,-152.5 38,-133.5 0,-133.5"/>
|
||||
<text text-anchor="middle" x="19" y="-140.5" 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="../../d0/d46/kohonen__som__trace_8c.html#a2256c10b16edba377b64a44b6c656908" target="_top" xlink:title="Convert clock cycle difference to time in seconds.">
|
||||
<polygon fill="white" stroke="black" points="74,-190.5 74,-209.5 151,-209.5 151,-190.5 74,-190.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">get_clock_diff</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M32.53,-152.59C43.25,-160.62 59.26,-172.14 74,-181 76.67,-182.6 79.48,-184.2 82.33,-185.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.88,-188.93 91.36,-190.47 84.12,-182.73 80.88,-188.93"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a1440a7779ac56f47a3f355ce4a8c7da0" target="_top" xlink:title="Test that creates a random set of points distributed near the circumference of a circle and trains an...">
|
||||
<polygon fill="white" stroke="black" points="93.5,-152.5 93.5,-171.5 131.5,-171.5 131.5,-152.5 93.5,-152.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">test1</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.08,-146.75C50.99,-149.43 68.6,-153.09 83.34,-156.15"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="82.96,-159.65 93.46,-158.25 84.38,-152.79 82.96,-159.65"/>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a0283886819c7c140a023582b7269e2d0" target="_top" xlink:title="Test that creates a random set of points distributed near the locus of the Lamniscate of Gerono and t...">
|
||||
<polygon fill="white" stroke="black" points="93.5,-114.5 93.5,-133.5 131.5,-133.5 131.5,-114.5 93.5,-114.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">test2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node10 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node1->Node10</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.08,-139.25C50.99,-136.57 68.6,-132.91 83.34,-129.85"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.38,-133.21 93.46,-127.75 82.96,-126.35 84.38,-133.21"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a6d0455dd5c30adda100e95f0423c786e" target="_top" xlink:title="Test that creates a random set of points distributed in six clusters in 3D space.">
|
||||
<polygon fill="white" stroke="black" points="93.5,-76.5 93.5,-95.5 131.5,-95.5 131.5,-76.5 93.5,-76.5"/>
|
||||
<text text-anchor="middle" x="112.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">test3</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node12 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>Node1->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M32.53,-133.41C43.25,-125.38 59.26,-113.86 74,-105 77.26,-103.04 80.74,-101.1 84.22,-99.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="86,-102.26 93.28,-94.57 82.79,-96.04 86,-102.26"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="370,-171.5 370,-190.5 426,-190.5 426,-171.5 370,-171.5"/>
|
||||
<text text-anchor="middle" x="398" y="-178.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.86,-168.39C138.52,-171.41 145.7,-175.56 151,-181 177.07,-207.78 155.42,-237.01 187,-257 228.31,-283.14 250.67,-272.61 297,-257 331.54,-245.37 363.6,-216.53 381.7,-197.91"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="384.25,-200.31 388.57,-190.64 379.16,-195.51 384.25,-200.31"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="187,-114.5 187,-133.5 297,-133.5 297,-114.5 187,-114.5"/>
|
||||
<text text-anchor="middle" x="242" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-156.56C149.28,-151.34 176.35,-143.27 199.16,-136.47"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="200.38,-139.76 208.97,-133.55 198.38,-133.05 200.38,-139.76"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="202.5,-76.5 202.5,-95.5 281.5,-95.5 281.5,-76.5 202.5,-76.5"/>
|
||||
<text text-anchor="middle" x="242" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node3->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.79,-154.29C138.15,-151.22 145.15,-147.36 151,-143 169.65,-129.09 167.48,-117.66 187,-105 190.1,-102.99 193.44,-101.16 196.88,-99.51"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="198.35,-102.69 206.15,-95.52 195.58,-96.26 198.35,-102.69"/>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a107f00650b8041f77767927073ddddb8" target="_top" xlink:title="Creates a random set of points distributed near the circumference of a circle and trains an SOM that ...">
|
||||
<polygon fill="white" stroke="black" points="211,-228.5 211,-247.5 273,-247.5 273,-228.5 211,-228.5"/>
|
||||
<text text-anchor="middle" x="242" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_circle</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node9 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node3->Node9</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.62,-169.94C137.96,-173.04 145,-176.85 151,-181 168.85,-193.35 168.85,-202.1 187,-214 192.77,-217.78 199.22,-221.23 205.61,-224.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="204.28,-227.5 214.84,-228.39 207.15,-221.11 204.28,-227.5"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="333,-114.5 333,-133.5 463,-133.5 463,-114.5 333,-114.5"/>
|
||||
<text text-anchor="middle" x="398" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node5->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M297.29,-124C305.57,-124 314.24,-124 322.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="322.92,-127.5 332.92,-124 322.92,-120.5 322.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="499,-114.5 499,-133.5 612,-133.5 612,-114.5 499,-114.5"/>
|
||||
<text text-anchor="middle" x="555.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node6->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M463.15,-124C471.59,-124 480.26,-124 488.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="488.94,-127.5 498.94,-124 488.94,-120.5 488.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node9->Node4 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node9->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M268.78,-228.46C294.21,-219.05 333.28,-204.59 361.61,-194.1"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="362.98,-197.33 371.14,-190.57 360.55,-190.76 362.98,-197.33"/>
|
||||
</g>
|
||||
<!-- Node10->Node4 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node10->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.79,-131.71C138.15,-134.78 145.15,-138.64 151,-143 169.65,-156.91 165.63,-171.81 187,-181 243.43,-205.27 316.55,-197.59 359.94,-189.51"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="360.65,-192.94 369.78,-187.57 359.3,-186.07 360.65,-192.94"/>
|
||||
</g>
|
||||
<!-- Node10->Node5 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node10->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-124C143.74,-124 160.18,-124 176.68,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="176.91,-127.5 186.91,-124 176.91,-120.5 176.91,-127.5"/>
|
||||
</g>
|
||||
<!-- Node10->Node8 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node10->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-118.56C149.28,-113.34 176.35,-105.27 199.16,-98.47"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="200.38,-101.76 208.97,-95.55 198.38,-95.05 200.38,-101.76"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#aa2246f940155472084ee461f3685d614" target="_top" xlink:title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono.">
|
||||
<polygon fill="white" stroke="black" points="199,-152.5 199,-171.5 285,-171.5 285,-152.5 199,-152.5"/>
|
||||
<text text-anchor="middle" x="242" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_lamniscate</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-129.44C149.28,-134.66 176.35,-142.73 199.16,-149.53"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="198.38,-152.95 208.97,-152.45 200.38,-146.24 198.38,-152.95"/>
|
||||
</g>
|
||||
<!-- Node11->Node4 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node11->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M285.08,-167.19C308.45,-170.08 337.27,-173.63 359.81,-176.41"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="359.65,-179.92 370,-177.67 360.5,-172.97 359.65,-179.92"/>
|
||||
</g>
|
||||
<!-- Node12->Node4 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>Node12->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.61,-77.23C166.59,-61.67 244.63,-33.86 297,-67 328.58,-86.99 307.83,-115.37 333,-143 341.84,-152.7 353.73,-160.69 364.87,-166.79"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="363.48,-170.01 373.97,-171.47 366.68,-163.78 363.48,-170.01"/>
|
||||
</g>
|
||||
<!-- Node12->Node5 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>Node12->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-91.44C149.28,-96.66 176.35,-104.73 199.16,-111.53"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="198.38,-114.95 208.97,-114.45 200.38,-108.24 198.38,-114.95"/>
|
||||
</g>
|
||||
<!-- Node12->Node8 -->
|
||||
<g id="edge19" class="edge">
|
||||
<title>Node12->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M131.77,-86C147.51,-86 170.97,-86 192.12,-86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="192.27,-89.5 202.27,-86 192.27,-82.5 192.27,-89.5"/>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="node13" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_node13"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0" target="_top" xlink:title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points.">
|
||||
<polygon fill="white" stroke="black" points="198,-0.5 198,-19.5 286,-19.5 286,-0.5 198,-0.5"/>
|
||||
<text text-anchor="middle" x="242" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_3d_classes</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12->Node13 -->
|
||||
<g id="edge20" class="edge">
|
||||
<title>Node12->Node13</title>
|
||||
<path fill="none" stroke="midnightblue" d="M125.49,-76.39C139.65,-65.32 164.17,-46.98 187,-34 193.5,-30.3 200.67,-26.77 207.61,-23.6"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.11,-26.77 216.84,-19.53 206.28,-20.36 209.11,-26.77"/>
|
||||
</g>
|
||||
<!-- Node13->Node4 -->
|
||||
<g id="edge21" class="edge">
|
||||
<title>Node13->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M276.1,-19.55C283.78,-23.06 291.35,-27.76 297,-34 331.24,-71.82 301.04,-103.23 333,-143 340.97,-152.91 352.27,-160.82 363.17,-166.8"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="361.64,-169.95 372.14,-171.37 364.82,-163.72 361.64,-169.95"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 14 KiB |
@@ -1,4 +1,4 @@
|
||||
<map id="test_3d_classes" name="test_3d_classes">
|
||||
<area shape="rect" id="node1" title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points." alt="" coords="5,5,123,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="171,5,243,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="171,5,245,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test_3d_classes Pages: 1 -->
|
||||
<svg width="186pt" height="28pt"
|
||||
viewBox="0.00 0.00 186.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="188pt" height="28pt"
|
||||
viewBox="0.00 0.00 188.00 28.00" 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 24)">
|
||||
<title>test_3d_classes</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 182,-24 182,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 184,-24 184,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,16 +22,16 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="124,-0.5 124,-19.5 178,-19.5 178,-0.5 124,-0.5"/>
|
||||
<text text-anchor="middle" x="151" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
<polygon fill="white" stroke="black" points="124,-0.5 124,-19.5 180,-19.5 180,-0.5 124,-0.5"/>
|
||||
<text text-anchor="middle" x="152" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M88.01,-10C96.53,-10 105.4,-10 113.67,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="113.76,-13.5 123.76,-10 113.76,-6.5 113.76,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M88.11,-10C96.58,-10 105.39,-10 113.65,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="113.74,-13.5 123.74,-10 113.74,-6.5 113.74,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,9 +1,9 @@
|
||||
<map id="test3" name="test3">
|
||||
<area shape="rect" id="node1" title="Test that creates a random set of points distributed in six clusters in 3D space." alt="" coords="5,81,56,108"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="343,107,415,133"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="104,5,247,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" title="Save a given n-dimensional data martix to file." alt="" coords="124,107,227,133"/>
|
||||
<area shape="rect" id="node7" href="$d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0" title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points." alt="" coords="117,157,234,184"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="295,5,464,32"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="512,5,657,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="348,107,423,133"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="104,5,251,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" title="Save a given n-dimensional data martix to file." alt="" coords="125,107,230,133"/>
|
||||
<area shape="rect" id="node7" href="$d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0" title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points." alt="" coords="119,157,236,184"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="299,5,472,32"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="520,5,671,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,60 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test3 Pages: 1 -->
|
||||
<svg width="497pt" height="142pt"
|
||||
viewBox="0.00 0.00 497.00 142.00" 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 138)">
|
||||
<!--zoomable 142 -->
|
||||
<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 = 507;
|
||||
var viewHeight = 142;
|
||||
var sectionId = 'dynsection-4';
|
||||
</script>
|
||||
<script xlink:href="../../svgpan.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>test3</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 493,-138 493,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 503,-138 503,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,97 +68,139 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="253.5,-38.5 253.5,-57.5 307.5,-57.5 307.5,-38.5 253.5,-38.5"/>
|
||||
<text text-anchor="middle" x="280.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
<polygon fill="white" stroke="black" points="257,-38.5 257,-57.5 313,-57.5 313,-38.5 257,-38.5"/>
|
||||
<text text-anchor="middle" x="285" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.4,-68.14C68.37,-69.73 129.52,-71.92 181,-67 201.92,-65 225,-60.67 243.56,-56.64"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="244.36,-60.05 253.36,-54.45 242.84,-53.22 244.36,-60.05"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.25,-68.11C68.59,-69.71 131.27,-71.96 184,-67 204.93,-65.03 228,-60.79 246.71,-56.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="247.59,-60.2 256.61,-54.64 246.09,-53.36 247.59,-60.2"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 181,-133.5 181,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 184,-133.5 184,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="129" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M34.85,-76.74C45.54,-83.59 60.42,-92.78 74,-100 80.63,-103.53 87.88,-107.04 94.81,-110.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="93.44,-113.48 103.99,-114.42 96.33,-107.1 93.44,-113.48"/>
|
||||
<path fill="none" stroke="midnightblue" d="M34.83,-76.78C45.51,-83.65 60.38,-92.85 74,-100 80.81,-103.57 88.26,-107.11 95.39,-110.33"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.26,-113.66 104.83,-114.49 97.09,-107.25 94.26,-113.66"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="89,-38.5 89,-57.5 166,-57.5 166,-38.5 89,-38.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
<polygon fill="white" stroke="black" points="89.5,-38.5 89.5,-57.5 168.5,-57.5 168.5,-38.5 89.5,-38.5"/>
|
||||
<text text-anchor="middle" x="129" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.07,-63.78C49.35,-61.76 64.45,-59.07 78.97,-56.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="79.65,-59.91 88.88,-54.71 78.42,-53.02 79.65,-59.91"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.78C49.66,-61.78 64.81,-59.12 79.42,-56.55"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.16,-59.97 89.4,-54.79 78.95,-53.08 80.16,-59.97"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0" target="_top" xlink:title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points.">
|
||||
<polygon fill="white" stroke="black" points="83.5,-0.5 83.5,-19.5 171.5,-19.5 171.5,-0.5 83.5,-0.5"/>
|
||||
<text text-anchor="middle" x="127.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_3d_classes</text>
|
||||
<polygon fill="white" stroke="black" points="85,-0.5 85,-19.5 173,-19.5 173,-0.5 85,-0.5"/>
|
||||
<text text-anchor="middle" x="129" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_3d_classes</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.84,-57.27C42.41,-48.94 58.55,-37.05 74,-29 77.98,-26.93 82.23,-24.99 86.53,-23.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="87.89,-26.42 95.93,-19.51 85.34,-19.9 87.89,-26.42"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.83,-57.23C42.38,-48.88 58.51,-36.98 74,-29 78.03,-26.92 82.35,-24.98 86.71,-23.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.18,-26.38 96.26,-19.53 85.67,-19.84 88.18,-26.38"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="217,-114.5 217,-133.5 344,-133.5 344,-114.5 217,-114.5"/>
|
||||
<text text-anchor="middle" x="280.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
<polygon fill="white" stroke="black" points="220,-114.5 220,-133.5 350,-133.5 350,-114.5 220,-114.5"/>
|
||||
<text text-anchor="middle" x="285" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M181.31,-124C189.56,-124 198.22,-124 206.82,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="206.87,-127.5 216.87,-124 206.87,-120.5 206.87,-127.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M184.29,-124C192.57,-124 201.24,-124 209.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.92,-127.5 219.92,-124 209.92,-120.5 209.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="380,-114.5 380,-133.5 489,-133.5 489,-114.5 380,-114.5"/>
|
||||
<text text-anchor="middle" x="434.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
<polygon fill="white" stroke="black" points="386,-114.5 386,-133.5 499,-133.5 499,-114.5 386,-114.5"/>
|
||||
<text text-anchor="middle" x="442.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M344.2,-124C352.57,-124 361.17,-124 369.56,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="369.67,-127.5 379.67,-124 369.67,-120.5 369.67,-127.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M350.15,-124C358.59,-124 367.26,-124 375.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="375.94,-127.5 385.94,-124 375.94,-120.5 375.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7->Node2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M166.6,-19.59C190.2,-25.53 220.31,-33.1 243.5,-38.94"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="242.74,-42.36 253.29,-41.41 244.45,-35.57 242.74,-42.36"/>
|
||||
<path fill="none" stroke="midnightblue" d="M168.86,-19.59C192.77,-25.49 223.24,-33.01 246.82,-38.83"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="246.25,-42.29 256.8,-41.29 247.93,-35.49 246.25,-42.29"/>
|
||||
</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="kohonen__som__trace_8c_a6d0455dd5c30adda100e95f0423c786e_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>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,118 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test3 Pages: 1 -->
|
||||
<svg width="507pt" height="142pt"
|
||||
viewBox="0.00 0.00 507.00 142.00" 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 138)">
|
||||
<title>test3</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 503,-138 503,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Test that creates a random set of points distributed in six clusters in 3D space.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-57.5 0,-76.5 38,-76.5 38,-57.5 0,-57.5"/>
|
||||
<text text-anchor="middle" x="19" y="-64.5" font-family="Helvetica,sans-Serif" font-size="10.00">test3</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="257,-38.5 257,-57.5 313,-57.5 313,-38.5 257,-38.5"/>
|
||||
<text text-anchor="middle" x="285" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.25,-68.11C68.59,-69.71 131.27,-71.96 184,-67 204.93,-65.03 228,-60.79 246.71,-56.81"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="247.59,-60.2 256.61,-54.64 246.09,-53.36 247.59,-60.2"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaeaeffbff2be4d5d15b0d4f10f846abde" target="_top" xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 184,-133.5 184,-114.5 74,-114.5"/>
|
||||
<text text-anchor="middle" x="129" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M34.83,-76.78C45.51,-83.65 60.38,-92.85 74,-100 80.81,-103.57 88.26,-107.11 95.39,-110.33"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="94.26,-113.66 104.83,-114.49 97.09,-107.25 94.26,-113.66"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga7b84b14e60f47812b581d1f93057c85a" target="_top" xlink:title="Save a given n-dimensional data martix to file.">
|
||||
<polygon fill="white" stroke="black" points="89.5,-38.5 89.5,-57.5 168.5,-57.5 168.5,-38.5 89.5,-38.5"/>
|
||||
<text text-anchor="middle" x="129" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">save_nd_data</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.78C49.66,-61.78 64.81,-59.12 79.42,-56.55"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="80.16,-59.97 89.4,-54.79 78.95,-53.08 80.16,-59.97"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d0/d46/kohonen__som__trace_8c.html#a41ae16442e3e5b891a58d2e5932a2cd0" target="_top" xlink:title="Creates a random set of points distributed in four clusters in 3D space with centroids at the points.">
|
||||
<polygon fill="white" stroke="black" points="85,-0.5 85,-19.5 173,-19.5 173,-0.5 85,-0.5"/>
|
||||
<text text-anchor="middle" x="129" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_3d_classes</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.83,-57.23C42.38,-48.88 58.51,-36.98 74,-29 78.03,-26.92 82.35,-24.98 86.71,-23.19"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.18,-26.38 96.26,-19.53 85.67,-19.84 88.18,-26.38"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="220,-114.5 220,-133.5 350,-133.5 350,-114.5 220,-114.5"/>
|
||||
<text text-anchor="middle" x="285" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M184.29,-124C192.57,-124 201.24,-124 209.85,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.92,-127.5 219.92,-124 209.92,-120.5 209.92,-127.5"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="386,-114.5 386,-133.5 499,-133.5 499,-114.5 386,-114.5"/>
|
||||
<text text-anchor="middle" x="442.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M350.15,-124C358.59,-124 367.26,-124 375.73,-124"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="375.94,-127.5 385.94,-124 375.94,-120.5 375.94,-127.5"/>
|
||||
</g>
|
||||
<!-- Node7->Node2 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M168.86,-19.59C192.77,-25.49 223.24,-33.01 246.82,-38.83"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="246.25,-42.29 256.8,-41.29 247.93,-35.49 246.25,-42.29"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@@ -1,4 +1,4 @@
|
||||
<map id="test_lamniscate" name="test_lamniscate">
|
||||
<area shape="rect" id="node1" title="Creates a random set of points distributed near the locus of the Lamniscate of Gerono." alt="" coords="5,5,120,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="168,5,240,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" title="Helper function to generate a random number in a given interval." alt="" coords="168,5,243,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test_lamniscate Pages: 1 -->
|
||||
<svg width="184pt" height="28pt"
|
||||
viewBox="0.00 0.00 184.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="186pt" height="28pt"
|
||||
viewBox="0.00 0.00 186.00 28.00" 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 24)">
|
||||
<title>test_lamniscate</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 180,-24 180,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 182,-24 182,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,16 +22,16 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485" target="_top" xlink:title="Helper function to generate a random number in a given interval.">
|
||||
<polygon fill="white" stroke="black" points="122,-0.5 122,-19.5 176,-19.5 176,-0.5 122,-0.5"/>
|
||||
<text text-anchor="middle" x="149" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
<polygon fill="white" stroke="black" points="122,-0.5 122,-19.5 178,-19.5 178,-0.5 122,-0.5"/>
|
||||
<text text-anchor="middle" x="150" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_random</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M86,-10C94.48,-10 103.34,-10 111.61,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="111.7,-13.5 121.7,-10 111.7,-6.5 111.7,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M86.1,-10C94.61,-10 103.49,-10 111.81,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="111.98,-13.5 121.98,-10 111.98,-6.5 111.98,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="project_euler/problem_5/sol1.c" name="project_euler/problem_5/sol1.c">
|
||||
<area shape="rect" id="node1" title="Problem 5 solution - Naive algorithm (slowest)" alt="" coords="5,5,152,47"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,95,67,121"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="91,95,155,121"/>
|
||||
<area shape="rect" id="node1" title="Problem 5 solution - Naive algorithm (slowest)" alt="" coords="5,5,156,47"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="7,95,69,121"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="93,95,157,121"/>
|
||||
</map>
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: project_euler/problem_5/sol1.c Pages: 1 -->
|
||||
<svg width="120pt" height="95pt"
|
||||
viewBox="0.00 0.00 120.00 95.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="122pt" height="95pt"
|
||||
viewBox="0.00 0.00 121.50 95.00" 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 91)">
|
||||
<title>project_euler/problem_5/sol1.c</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-91 116,-91 116,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-91 117.5,-91 117.5,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Problem 5 solution - Naive algorithm (slowest)">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-86.5 110,-86.5 110,-56.5 0,-56.5"/>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-86.5 113,-86.5 113,-56.5 0,-56.5"/>
|
||||
<text text-anchor="start" x="8" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">project_euler/problem</text>
|
||||
<text text-anchor="middle" x="55" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_5/sol1.c</text>
|
||||
<text text-anchor="middle" x="56.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_5/sol1.c</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -23,31 +23,31 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="0,-0.5 0,-19.5 46,-19.5 46,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="23" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="1.5,-0.5 1.5,-19.5 47.5,-19.5 47.5,-0.5 1.5,-0.5"/>
|
||||
<text text-anchor="middle" x="24.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M47.42,-56.4C42.96,-48.11 37.28,-37.55 32.52,-28.71"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="35.48,-26.81 27.66,-19.66 29.31,-30.12 35.48,-26.81"/>
|
||||
<path fill="none" stroke="midnightblue" d="M48.92,-56.4C44.46,-48.11 38.78,-37.55 34.02,-28.71"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="36.98,-26.81 29.16,-19.66 30.81,-30.12 36.98,-26.81"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="64,-0.5 64,-19.5 112,-19.5 112,-0.5 64,-0.5"/>
|
||||
<text text-anchor="middle" x="88" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdlib.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="65.5,-0.5 65.5,-19.5 113.5,-19.5 113.5,-0.5 65.5,-0.5"/>
|
||||
<text text-anchor="middle" x="89.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdlib.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M62.82,-56.4C67.47,-48.02 73.4,-37.33 78.34,-28.42"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="81.41,-30.1 83.2,-19.66 75.29,-26.71 81.41,-30.1"/>
|
||||
<path fill="none" stroke="midnightblue" d="M64.32,-56.4C68.97,-48.02 74.9,-37.33 79.84,-28.42"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="82.91,-30.1 84.7,-19.66 76.79,-26.71 82.91,-30.1"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: hash/hash_xor8.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d57/hash__xor8_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,12 +92,11 @@ $(document).ready(function(){initNavTree('d0/d57/hash__xor8_8c.html','../../');
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">hash_xor8.c File Reference<div class="ingroups"><a class="el" href="../../d7/d3b/group__hash.html">Hash algorithms</a></div></div> </div>
|
||||
<div class="headertitle"><div class="title">hash_xor8.c File Reference<div class="ingroups"><a class="el" href="../../d7/d3b/group__hash.html">Hash algorithms</a></div></div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>8-bit <a href="https://en.wikipedia.org/wiki/XOR_cipher">XOR hash</a> algorithm for ASCII characters
|
||||
<p>8-bit <a href="https://en.wikipedia.org/wiki/XOR_cipher" target="_blank">XOR hash</a> algorithm for ASCII characters
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <assert.h></code><br />
|
||||
<code>#include <inttypes.h></code><br />
|
||||
@@ -109,7 +108,7 @@ Include dependency graph for hash_xor8.c:</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:gae4836b42b998b336298f3b19dcc9cdeb"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/group__hash.html#gae4836b42b998b336298f3b19dcc9cdeb">xor8</a> (const char *s)</td></tr>
|
||||
<tr class="memdesc:gae4836b42b998b336298f3b19dcc9cdeb"><td class="mdescLeft"> </td><td class="mdescRight">8-bit XOR algorithm implementation <a href="../../d7/d3b/group__hash.html#gae4836b42b998b336298f3b19dcc9cdeb">More...</a><br /></td></tr>
|
||||
@@ -117,21 +116,52 @@ Functions</h2></td></tr>
|
||||
<tr class="memitem:ga39d4c16427acbf8bbe744f6d8ed61dc0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/group__hash.html#ga39d4c16427acbf8bbe744f6d8ed61dc0">test_xor8</a> ()</td></tr>
|
||||
<tr class="memdesc:ga39d4c16427acbf8bbe744f6d8ed61dc0"><td class="mdescLeft"> </td><td class="mdescRight">Test function for <a class="el" href="../../d7/d3b/group__hash.html#gae4836b42b998b336298f3b19dcc9cdeb" title="8-bit XOR algorithm implementation">xor8</a>. <a href="../../d7/d3b/group__hash.html#ga39d4c16427acbf8bbe744f6d8ed61dc0">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga39d4c16427acbf8bbe744f6d8ed61dc0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top"><a id="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d57/hash__xor8_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <br /></td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d57/hash__xor8_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d0/d57/hash__xor8_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>8-bit <a href="https://en.wikipedia.org/wiki/XOR_cipher">XOR hash</a> algorithm for ASCII characters </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/christianbender">Christian Bender</a> </dd></dl>
|
||||
</div></div><!-- contents -->
|
||||
<div class="textblock"><p >8-bit <a href="https://en.wikipedia.org/wiki/XOR_cipher" target="_blank">XOR hash</a> algorithm for ASCII characters </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/christianbender" target="_blank">Christian Bender</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">void </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function. </p>
|
||||
<div class="fragment"><div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>{</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_function" href="../../d7/d3b/group__hash.html#ga39d4c16427acbf8bbe744f6d8ed61dc0">test_xor8</a>();</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>}</div>
|
||||
<div class="ttc" id="agroup__hash_html_ga39d4c16427acbf8bbe744f6d8ed61dc0"><div class="ttname"><a href="../../d7/d3b/group__hash.html#ga39d4c16427acbf8bbe744f6d8ed61dc0">test_xor8</a></div><div class="ttdeci">void test_xor8()</div><div class="ttdoc">Test function for xor8.</div><div class="ttdef"><b>Definition:</b> hash_xor8.c:35</div></div>
|
||||
</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="../../d0/d57/hash__xor8_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="283" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_72aaf47615111200018c039a56ef48be.html">hash</a></li><li class="navelem"><a class="el" href="../../d0/d57/hash__xor8_8c.html">hash_xor8.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,5,56,32"/>
|
||||
<area shape="rect" id="node2" href="$d7/d3b/group__hash.html#ga39d4c16427acbf8bbe744f6d8ed61dc0" title="Test function for xor8." alt="" coords="104,5,181,32"/>
|
||||
<area shape="rect" id="node3" href="$d7/d3b/group__hash.html#gae4836b42b998b336298f3b19dcc9cdeb" title="8-bit XOR algorithm implementation" alt="" coords="229,5,277,32"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
e1a7052fce33c8f9e1c3df3629c67665
|
||||
@@ -0,0 +1,52 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="212pt" height="28pt"
|
||||
viewBox="0.00 0.00 212.00 28.00" 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 24)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 208,-24 208,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,-0.5 0,-19.5 38,-19.5 38,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="19" y="-7.5" 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="../../d7/d3b/group__hash.html#ga39d4c16427acbf8bbe744f6d8ed61dc0" target="_top" xlink:title="Test function for xor8.">
|
||||
<polygon fill="white" stroke="black" points="74,-0.5 74,-19.5 132,-19.5 132,-0.5 74,-0.5"/>
|
||||
<text text-anchor="middle" x="103" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_xor8</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.2,-10C45.73,-10 54.76,-10 63.63,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.86,-13.5 73.86,-10 63.86,-6.5 63.86,-13.5"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d7/d3b/group__hash.html#gae4836b42b998b336298f3b19dcc9cdeb" target="_top" xlink:title="8-bit XOR algorithm implementation">
|
||||
<polygon fill="white" stroke="black" points="168,-0.5 168,-19.5 204,-19.5 204,-0.5 168,-0.5"/>
|
||||
<text text-anchor="middle" x="186" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">xor8</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M132.33,-10C140.58,-10 149.57,-10 157.75,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="157.9,-13.5 167.9,-10 157.9,-6.5 157.9,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="project_euler/problem_9/sol2.c" name="project_euler/problem_9/sol2.c">
|
||||
<area shape="rect" id="node1" title="Problem 9 solution" alt="" coords="5,5,152,47"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,95,67,121"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="91,95,155,121"/>
|
||||
<area shape="rect" id="node1" title="Problem 9 solution" alt="" coords="5,5,156,47"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="7,95,69,121"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="93,95,157,121"/>
|
||||
</map>
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: project_euler/problem_9/sol2.c Pages: 1 -->
|
||||
<svg width="120pt" height="95pt"
|
||||
viewBox="0.00 0.00 120.00 95.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="122pt" height="95pt"
|
||||
viewBox="0.00 0.00 121.50 95.00" 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 91)">
|
||||
<title>project_euler/problem_9/sol2.c</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-91 116,-91 116,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-91 117.5,-91 117.5,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Problem 9 solution">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-86.5 110,-86.5 110,-56.5 0,-56.5"/>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-86.5 113,-86.5 113,-56.5 0,-56.5"/>
|
||||
<text text-anchor="start" x="8" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">project_euler/problem</text>
|
||||
<text text-anchor="middle" x="55" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_9/sol2.c</text>
|
||||
<text text-anchor="middle" x="56.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_9/sol2.c</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -23,31 +23,31 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="0,-0.5 0,-19.5 46,-19.5 46,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="23" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="1.5,-0.5 1.5,-19.5 47.5,-19.5 47.5,-0.5 1.5,-0.5"/>
|
||||
<text text-anchor="middle" x="24.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M47.42,-56.4C42.96,-48.11 37.28,-37.55 32.52,-28.71"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="35.48,-26.81 27.66,-19.66 29.31,-30.12 35.48,-26.81"/>
|
||||
<path fill="none" stroke="midnightblue" d="M48.92,-56.4C44.46,-48.11 38.78,-37.55 34.02,-28.71"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="36.98,-26.81 29.16,-19.66 30.81,-30.12 36.98,-26.81"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="64,-0.5 64,-19.5 112,-19.5 112,-0.5 64,-0.5"/>
|
||||
<text text-anchor="middle" x="88" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdlib.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="65.5,-0.5 65.5,-19.5 113.5,-19.5 113.5,-0.5 65.5,-0.5"/>
|
||||
<text text-anchor="middle" x="89.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdlib.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M62.82,-56.4C67.47,-48.02 73.4,-37.33 78.34,-28.42"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="81.41,-30.1 83.2,-19.66 75.29,-26.71 81.41,-30.1"/>
|
||||
<path fill="none" stroke="midnightblue" d="M64.32,-56.4C68.97,-48.02 74.9,-37.33 79.84,-28.42"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="82.91,-30.1 84.7,-19.66 76.79,-26.71 82.91,-30.1"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: elem Struct Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d6b/structelem.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,8 +92,7 @@ $(document).ready(function(){initNavTree('d0/d6b/structelem.html','../../'); ini
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-attribs">Data Fields</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">elem Struct Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">elem Struct Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="dynheader">
|
||||
@@ -103,12 +102,12 @@ Collaboration diagram for elem:</div>
|
||||
</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 name="pub-attribs"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
||||
Data Fields</h2></td></tr>
|
||||
<tr class="memitem:a738173725677dc7ccc8529cc8537c50d"><td class="memItemLeft" align="right" valign="top"><a id="a738173725677dc7ccc8529cc8537c50d"></a>
|
||||
<tr class="memitem:a738173725677dc7ccc8529cc8537c50d"><td class="memItemLeft" align="right" valign="top"><a id="a738173725677dc7ccc8529cc8537c50d" name="a738173725677dc7ccc8529cc8537c50d"></a>
|
||||
void * </td><td class="memItemRight" valign="bottom"><b>val</b></td></tr>
|
||||
<tr class="separator:a738173725677dc7ccc8529cc8537c50d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab9cf5c2e1c9a0ec2938275b90d39d5ca"><td class="memItemLeft" align="right" valign="top"><a id="ab9cf5c2e1c9a0ec2938275b90d39d5ca"></a>
|
||||
<tr class="memitem:ab9cf5c2e1c9a0ec2938275b90d39d5ca"><td class="memItemLeft" align="right" valign="top"><a id="ab9cf5c2e1c9a0ec2938275b90d39d5ca" name="ab9cf5c2e1c9a0ec2938275b90d39d5ca"></a>
|
||||
struct <a class="el" href="../../d0/d6b/structelem.html">elem</a> * </td><td class="memItemRight" valign="bottom"><b>next</b></td></tr>
|
||||
<tr class="separator:ab9cf5c2e1c9a0ec2938275b90d39d5ca"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
@@ -121,7 +120,7 @@ struct <a class="el" href="../../d0/d6b/structelem.html">elem</a> * </td><t
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d0/d6b/structelem.html">elem</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
var structelem =
|
||||
[
|
||||
[ "next", "d0/d6b/structelem.html#ab9cf5c2e1c9a0ec2938275b90d39d5ca", null ],
|
||||
[ "val", "d0/d6b/structelem.html#a738173725677dc7ccc8529cc8537c50d", null ]
|
||||
];
|
||||
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: project_euler/problem_4/sol.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d6c/problem__4_2sol_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,35 +92,33 @@ $(document).ready(function(){initNavTree('d0/d6c/problem__4_2sol_8c.html','../..
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">sol.c File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">sol.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="https://projecteuler.net/problem=4">Problem 4</a> solution
|
||||
<p><a href="https://projecteuler.net/problem=4" target="_blank">Problem 4</a> solution
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <stdio.h></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for sol.c:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../db/d50/problem__4_2sol_8c__incl.svg" width="158" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../db/d50/problem__4_2sol_8c__incl.svg" width="162" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:adf9bea8d35848959bde5b3f277edf0c4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6c/problem__4_2sol_8c.html#adf9bea8d35848959bde5b3f277edf0c4">is_palindromic</a> (unsigned int n)</td></tr>
|
||||
<tr class="memdesc:adf9bea8d35848959bde5b3f277edf0c4"><td class="mdescLeft"> </td><td class="mdescRight">Check if number is palindromic. <a href="../../d0/d6c/problem__4_2sol_8c.html#adf9bea8d35848959bde5b3f277edf0c4">More...</a><br /></td></tr>
|
||||
<tr class="separator:adf9bea8d35848959bde5b3f277edf0c4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top"><a id="a840291bc02cba5474a4cb46a9b9566fe"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6c/problem__4_2sol_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
|
||||
<tr class="memdesc:a840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <br /></td></tr>
|
||||
<tr class="memitem:a840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6c/problem__4_2sol_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
|
||||
<tr class="memdesc:a840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d0/d6c/problem__4_2sol_8c.html#a840291bc02cba5474a4cb46a9b9566fe">More...</a><br /></td></tr>
|
||||
<tr class="separator:a840291bc02cba5474a4cb46a9b9566fe"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p><a href="https://projecteuler.net/problem=4">Problem 4</a> solution </p>
|
||||
<div class="textblock"><p ><a href="https://projecteuler.net/problem=4" target="_blank">Problem 4</a> solution </p>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="adf9bea8d35848959bde5b3f277edf0c4"></a>
|
||||
<a id="adf9bea8d35848959bde5b3f277edf0c4" name="adf9bea8d35848959bde5b3f277edf0c4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#adf9bea8d35848959bde5b3f277edf0c4">◆ </a></span>is_palindromic()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -146,17 +144,61 @@ int </td><td class="memItemRight" valign="bottom"><a class="el" href="../..
|
||||
<dl class="section return"><dt>Returns</dt><dd>1 if palindromic </dd>
|
||||
<dd>
|
||||
0 if not palindromic </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reversed = 0, t = n;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordflow">while</span> (t > 0)</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  {</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  reversed = 10 * reversed + (t % 10);</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  t /= 10;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  }</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">return</span> reversed == n;</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span>{</div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reversed = 0, t = n;</div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keywordflow">while</span> (t > 0)</div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> {</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> reversed = 10 * reversed + (t % 10);</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> t /= 10;</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> }</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordflow">return</span> reversed == n;</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a840291bc02cba5474a4cb46a9b9566fe" name="a840291bc02cba5474a4cb46a9b9566fe"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a840291bc02cba5474a4cb46a9b9566fe">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">void </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function. </p>
|
||||
<div class="fragment"><div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span>{</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i, j, <a class="code hl_define" href="../../d1/d6b/group__kohonen__2d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a> = 0;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keywordflow">for</span> (i = 100; i <= 999; i++)</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> {</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordflow">for</span> (j = 100; j <= 999; j++)</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> {</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> p = i * j;</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="../../d0/d6c/problem__4_2sol_8c.html#adf9bea8d35848959bde5b3f277edf0c4">is_palindromic</a>(p) && p > <a class="code hl_define" href="../../d1/d6b/group__kohonen__2d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>)</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> {</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_define" href="../../d1/d6b/group__kohonen__2d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a> = p;</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> }</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> }</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> }</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> printf(<span class="stringliteral">"%u\n"</span>, <a class="code hl_define" href="../../d1/d6b/group__kohonen__2d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>);</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>}</div>
|
||||
<div class="ttc" id="agroup__kohonen__2d_html_gaffe776513b24d84b39af8ab0930fef7f"><div class="ttname"><a href="../../d1/d6b/group__kohonen__2d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a></div><div class="ttdeci">#define max(a, b)</div><div class="ttdoc">shorthand for maximum value</div><div class="ttdef"><b>Definition:</b> kohonen_som_topology.c:39</div></div>
|
||||
<div class="ttc" id="aproblem__4_2sol_8c_html_adf9bea8d35848959bde5b3f277edf0c4"><div class="ttname"><a href="../../d0/d6c/problem__4_2sol_8c.html#adf9bea8d35848959bde5b3f277edf0c4">is_palindromic</a></div><div class="ttdeci">int is_palindromic(unsigned int n)</div><div class="ttdoc">Check if number is palindromic.</div><div class="ttdef"><b>Definition:</b> sol.c:12</div></div>
|
||||
</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="../../d0/d6c/problem__4_2sol_8c_a840291bc02cba5474a4cb46a9b9566fe_cgraph.svg" width="216" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
@@ -165,7 +207,7 @@ int </td><td class="memItemRight" valign="bottom"><a class="el" href="../..
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_b3d331eabd4234f247030c297aaf021c.html">project_euler</a></li><li class="navelem"><a class="el" href="../../dir_1833eb69ceee7a265ffba4c38c8243d2.html">problem_4</a></li><li class="navelem"><a class="el" href="../../d0/d6c/problem__4_2sol_8c.html">sol.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,5,56,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d6c/problem__4_2sol_8c.html#adf9bea8d35848959bde5b3f277edf0c4" title="Check if number is palindromic." alt="" coords="104,5,211,32"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
5ae48647fd17a3bb28d55141ca83d187
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="162pt" height="28pt"
|
||||
viewBox="0.00 0.00 162.00 28.00" 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 24)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 158,-24 158,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,-0.5 0,-19.5 38,-19.5 38,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="19" y="-7.5" 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="../../d0/d6c/problem__4_2sol_8c.html#adf9bea8d35848959bde5b3f277edf0c4" target="_top" xlink:title="Check if number is palindromic.">
|
||||
<polygon fill="white" stroke="black" points="74,-0.5 74,-19.5 154,-19.5 154,-0.5 74,-0.5"/>
|
||||
<text text-anchor="middle" x="114" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">is_palindromic</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.37,-10C45.76,-10 54.66,-10 63.7,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.9,-13.5 73.9,-10 63.9,-6.5 63.9,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: project_euler/problem_10/sol1.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d6d/problem__10_2sol1_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,12 +92,11 @@ $(document).ready(function(){initNavTree('d0/d6d/problem__10_2sol1_8c.html','../
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">sol1.c File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">sol1.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="https://projecteuler.net/problem=10">Problem 10</a> solution
|
||||
<p><a href="https://projecteuler.net/problem=10" target="_blank">Problem 10</a> solution
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <math.h></code><br />
|
||||
<code>#include <stdio.h></code><br />
|
||||
@@ -109,31 +108,139 @@ Include dependency graph for sol1.c:</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:acc871ab6bfead702e983a7f9c412915f"><td class="memItemLeft" align="right" valign="top"><a id="acc871ab6bfead702e983a7f9c412915f"></a>
|
||||
char </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f">is_prime</a> (unsigned long n)</td></tr>
|
||||
<tr class="memdesc:acc871ab6bfead702e983a7f9c412915f"><td class="mdescLeft"> </td><td class="mdescRight">Function to check if a number is prime. <br /></td></tr>
|
||||
<tr class="memitem:acc871ab6bfead702e983a7f9c412915f"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f">is_prime</a> (unsigned long n)</td></tr>
|
||||
<tr class="memdesc:acc871ab6bfead702e983a7f9c412915f"><td class="mdescLeft"> </td><td class="mdescRight">Function to check if a number is prime. <a href="../../d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f">More...</a><br /></td></tr>
|
||||
<tr class="separator:acc871ab6bfead702e983a7f9c412915f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae3d987cb2ad0ddb0c3caa4c2506a20e5"><td class="memItemLeft" align="right" valign="top"><a id="ae3d987cb2ad0ddb0c3caa4c2506a20e5"></a>
|
||||
unsigned long long </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6d/problem__10_2sol1_8c.html#ae3d987cb2ad0ddb0c3caa4c2506a20e5">sum_of_primes</a> (unsigned long N)</td></tr>
|
||||
<tr class="memdesc:ae3d987cb2ad0ddb0c3caa4c2506a20e5"><td class="mdescLeft"> </td><td class="mdescRight">Computes sum of prime numbers less than N. <br /></td></tr>
|
||||
<tr class="memitem:ae3d987cb2ad0ddb0c3caa4c2506a20e5"><td class="memItemLeft" align="right" valign="top">unsigned long long </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6d/problem__10_2sol1_8c.html#ae3d987cb2ad0ddb0c3caa4c2506a20e5">sum_of_primes</a> (unsigned long N)</td></tr>
|
||||
<tr class="memdesc:ae3d987cb2ad0ddb0c3caa4c2506a20e5"><td class="mdescLeft"> </td><td class="mdescRight">Computes sum of prime numbers less than N. <a href="../../d0/d6d/problem__10_2sol1_8c.html#ae3d987cb2ad0ddb0c3caa4c2506a20e5">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae3d987cb2ad0ddb0c3caa4c2506a20e5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top"><a id="a0ddf1224851353fc92bfbff6f499fa97"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6d/problem__10_2sol1_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
|
||||
<tr class="memdesc:a0ddf1224851353fc92bfbff6f499fa97"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <br /></td></tr>
|
||||
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d6d/problem__10_2sol1_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
|
||||
<tr class="memdesc:a0ddf1224851353fc92bfbff6f499fa97"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d0/d6d/problem__10_2sol1_8c.html#a0ddf1224851353fc92bfbff6f499fa97">More...</a><br /></td></tr>
|
||||
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p><a href="https://projecteuler.net/problem=10">Problem 10</a> solution </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/kvedala">Krishna Vedala</a> </dd></dl>
|
||||
</div></div><!-- contents -->
|
||||
<div class="textblock"><p ><a href="https://projecteuler.net/problem=10" target="_blank">Problem 10</a> solution </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/kvedala" target="_blank">Krishna Vedala</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="acc871ab6bfead702e983a7f9c412915f" name="acc871ab6bfead702e983a7f9c412915f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#acc871ab6bfead702e983a7f9c412915f">◆ </a></span>is_prime()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">char is_prime </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">unsigned long </td>
|
||||
<td class="paramname"><em>n</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Function to check if a number is prime. </p>
|
||||
<div class="fragment"><div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span>{</div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 2; i < sqrtl(n) + 1; i++)</div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <span class="keywordflow">if</span> (n % i == 0)</div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordflow">return</span> 1;</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0ddf1224851353fc92bfbff6f499fa97" name="a0ddf1224851353fc92bfbff6f499fa97"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0ddf1224851353fc92bfbff6f499fa97">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>argc</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">char * </td>
|
||||
<td class="paramname"><em>argv</em>[] </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function. </p>
|
||||
<div class="fragment"><div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span>{</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> n = 100;</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">if</span> (argc == 2) <span class="comment">/* if command line argument is provided */</span></div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> n = atol(argv[1]); <span class="comment">/* use that as the upper limit */</span></div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> printf(<span class="stringliteral">"%ld: %llu\n"</span>, n, <a class="code hl_function" href="../../d0/d6d/problem__10_2sol1_8c.html#ae3d987cb2ad0ddb0c3caa4c2506a20e5">sum_of_primes</a>(n));</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span>}</div>
|
||||
<div class="ttc" id="aproblem__10_2sol1_8c_html_ae3d987cb2ad0ddb0c3caa4c2506a20e5"><div class="ttname"><a href="../../d0/d6d/problem__10_2sol1_8c.html#ae3d987cb2ad0ddb0c3caa4c2506a20e5">sum_of_primes</a></div><div class="ttdeci">unsigned long long sum_of_primes(unsigned long N)</div><div class="ttdoc">Computes sum of prime numbers less than N.</div><div class="ttdef"><b>Definition:</b> sol1.c:21</div></div>
|
||||
</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="../../d0/d6d/problem__10_2sol1_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph.svg" width="343" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae3d987cb2ad0ddb0c3caa4c2506a20e5" name="ae3d987cb2ad0ddb0c3caa4c2506a20e5"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae3d987cb2ad0ddb0c3caa4c2506a20e5">◆ </a></span>sum_of_primes()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">unsigned long long sum_of_primes </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">unsigned long </td>
|
||||
<td class="paramname"><em>N</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Computes sum of prime numbers less than N. </p>
|
||||
<div class="fragment"><div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span>{</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> sum = 2;</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keywordflow">for</span> (<span class="keywordtype">long</span> i = 3; i < N; i += 2) <span class="comment">/* skip even numbers */</span></div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="../../d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f">is_prime</a>(i))</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> sum += i;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">return</span> sum;</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>}</div>
|
||||
<div class="ttc" id="aproblem__10_2sol1_8c_html_acc871ab6bfead702e983a7f9c412915f"><div class="ttname"><a href="../../d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f">is_prime</a></div><div class="ttdeci">char is_prime(unsigned long n)</div><div class="ttdoc">Function to check if a number is prime.</div><div class="ttdef"><b>Definition:</b> sol1.c:11</div></div>
|
||||
</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="../../d0/d6d/problem__10_2sol1_8c_ae3d987cb2ad0ddb0c3caa4c2506a20e5_cgraph.svg" width="244" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_b3d331eabd4234f247030c297aaf021c.html">project_euler</a></li><li class="navelem"><a class="el" href="../../dir_16b947d8e9a05fe119d0675493324331.html">problem_10</a></li><li class="navelem"><a class="el" href="../../d0/d6d/problem__10_2sol1_8c.html">sol1.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,5,56,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d6d/problem__10_2sol1_8c.html#ae3d987cb2ad0ddb0c3caa4c2506a20e5" title="Computes sum of prime numbers less than N." alt="" coords="104,5,217,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f" title="Function to check if a number is prime." alt="" coords="265,5,337,32"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
1494692a35e6af4481fb3b6e21201019
|
||||
@@ -0,0 +1,52 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="257pt" height="28pt"
|
||||
viewBox="0.00 0.00 257.00 28.00" 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 24)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 253,-24 253,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,-0.5 0,-19.5 38,-19.5 38,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="19" y="-7.5" 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="../../d0/d6d/problem__10_2sol1_8c.html#ae3d987cb2ad0ddb0c3caa4c2506a20e5" target="_top" xlink:title="Computes sum of prime numbers less than N.">
|
||||
<polygon fill="white" stroke="black" points="74,-0.5 74,-19.5 159,-19.5 159,-0.5 74,-0.5"/>
|
||||
<text text-anchor="middle" x="116.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">sum_of_primes</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.41,-10C45.74,-10 54.57,-10 63.59,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.8,-13.5 73.8,-10 63.8,-6.5 63.8,-13.5"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f" target="_top" xlink:title="Function to check if a number is prime.">
|
||||
<polygon fill="white" stroke="black" points="195,-0.5 195,-19.5 249,-19.5 249,-0.5 195,-0.5"/>
|
||||
<text text-anchor="middle" x="222" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">is_prime</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M159,-10C167.54,-10 176.47,-10 184.81,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="184.97,-13.5 194.97,-10 184.97,-6.5 184.97,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,4 @@
|
||||
<map id="sum_of_primes" name="sum_of_primes">
|
||||
<area shape="rect" id="node1" title="Computes sum of prime numbers less than N." alt="" coords="5,5,119,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f" title="Function to check if a number is prime." alt="" coords="167,5,239,32"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
c0c14aacd265297e08e10766b8c71ebf
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: sum_of_primes Pages: 1 -->
|
||||
<svg width="183pt" height="28pt"
|
||||
viewBox="0.00 0.00 183.00 28.00" 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 24)">
|
||||
<title>sum_of_primes</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 179,-24 179,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Computes sum of prime numbers less than N.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 85,-19.5 85,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="42.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">sum_of_primes</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/d6d/problem__10_2sol1_8c.html#acc871ab6bfead702e983a7f9c412915f" target="_top" xlink:title="Function to check if a number is prime.">
|
||||
<polygon fill="white" stroke="black" points="121,-0.5 121,-19.5 175,-19.5 175,-0.5 121,-0.5"/>
|
||||
<text text-anchor="middle" x="148" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">is_prime</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M85,-10C93.54,-10 102.47,-10 110.81,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="110.97,-13.5 120.97,-10 110.97,-6.5 110.97,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: project_euler/problem_2/so1.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d7f/so1_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,39 +92,78 @@ $(document).ready(function(){initNavTree('d0/d7f/so1_8c.html','../../'); initRes
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">so1.c File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">so1.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="https://projecteuler.net/problem=2">Problem 2</a> solution
|
||||
<p><a href="https://projecteuler.net/problem=2" target="_blank">Problem 2</a> solution
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <stdio.h></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for so1.c:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d77/so1_8c__incl.svg" width="158" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d77/so1_8c__incl.svg" width="162" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top"><a id="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d7f/so1_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <br /></td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d7f/so1_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d0/d7f/so1_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p><a href="https://projecteuler.net/problem=2">Problem 2</a> solution </p>
|
||||
<p>Problem:</p>
|
||||
<p>Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: <code>1,2,3,5,8,13,21,34,55,89,..</code> By considering the terms in the Fibonacci sequence whose values do not exceed n, find the sum of the even-valued terms. e.g. for n=10, we have {2,8}, sum is 10. </p>
|
||||
</div></div><!-- contents -->
|
||||
<div class="textblock"><p ><a href="https://projecteuler.net/problem=2" target="_blank">Problem 2</a> solution </p>
|
||||
<p >Problem:</p>
|
||||
<p >Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: <code>1,2,3,5,8,13,21,34,55,89,..</code> By considering the terms in the Fibonacci sequence whose values do not exceed n, find the sum of the even-valued terms. e.g. for n=10, we have {2,8}, sum is 10. </p>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">void </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function. </p>
|
||||
<div class="fragment"><div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span>{</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordtype">int</span> n = 0;</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordtype">int</span> sum = 0;</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordtype">int</span> i = 1;</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordtype">int</span> j = 2;</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keywordtype">int</span> temp;</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> scanf(<span class="stringliteral">"%d"</span>, &n);</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">while</span> (j <= n)</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> {</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keywordflow">if</span> ((j & 1) == 0) <span class="comment">// can also use(j%2 == 0)</span></div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> sum += j;</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> temp = i;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> i = j;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> j = temp + i;</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> }</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> printf(<span class="stringliteral">"%d\n"</span>, sum);</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_b3d331eabd4234f247030c297aaf021c.html">project_euler</a></li><li class="navelem"><a class="el" href="../../dir_eeeea13e3a5e5edad3499183767ce312.html">problem_2</a></li><li class="navelem"><a class="el" href="../../d0/d7f/so1_8c.html">so1.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: conversions/octal_to_hexadecimal.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d8a/octal__to__hexadecimal_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,8 +92,7 @@ $(document).ready(function(){initNavTree('d0/d8a/octal__to__hexadecimal_8c.html'
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">octal_to_hexadecimal.c File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">octal_to_hexadecimal.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
@@ -111,14 +110,14 @@ Include dependency graph for octal_to_hexadecimal.c:</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a86a4edb605c2a03d9175c59de679347d"><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d">octalToDecimal</a> (long octalValue)</td></tr>
|
||||
<tr class="memdesc:a86a4edb605c2a03d9175c59de679347d"><td class="mdescLeft"> </td><td class="mdescRight">Convert octal number to decimal number. <a href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a86a4edb605c2a03d9175c59de679347d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a042035b4ba7b92974f0edf6eb1b0cbe1"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1">octalToHexadecimal</a> (long octalValue)</td></tr>
|
||||
<tr class="memdesc:a042035b4ba7b92974f0edf6eb1b0cbe1"><td class="mdescLeft"> </td><td class="mdescRight">Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the calling the function free. <a href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1">More...</a><br /></td></tr>
|
||||
<tr class="separator:a042035b4ba7b92974f0edf6eb1b0cbe1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a823ef5170955cfef40e07d9a4d2e87e2"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2">octalToHexadecimal</a> (long octalValue)</td></tr>
|
||||
<tr class="memdesc:a823ef5170955cfef40e07d9a4d2e87e2"><td class="mdescLeft"> </td><td class="mdescRight">Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the calling the function free. <a href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2">More...</a><br /></td></tr>
|
||||
<tr class="separator:a823ef5170955cfef40e07d9a4d2e87e2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
|
||||
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft"> </td><td class="mdescRight">Test function. <a href="../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa8dca7b867074164d5f45b0f3851269d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
@@ -127,10 +126,10 @@ Functions</h2></td></tr>
|
||||
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Octal to hexadecimal conversion by scanning user input. </p>
|
||||
<p>The octalToHexadecimal function take the octal number as long return a string hexadecimal value after conversion </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/rachitbhalla">Rachit Bhalla</a> </dd></dl>
|
||||
<div class="textblock"><p >Octal to hexadecimal conversion by scanning user input. </p>
|
||||
<p >The octalToHexadecimal function take the octal number as long return a string hexadecimal value after conversion </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/rachitbhalla" target="_blank">Rachit Bhalla</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -148,38 +147,38 @@ Functions</h2></td></tr>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> {</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="comment">// execute the tests</span></div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d">test</a>();</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// get the value of octal number as input</span></div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">int</span> octalValue;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  printf(<span class="stringliteral">"Enter an octal number: "</span>);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  scanf(<span class="stringliteral">"%d"</span>, &octalValue);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// call the function octalToHexadecimal and print the hexadecimal value</span></div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">char</span> *hexadecimalValue = <a class="code" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1">octalToHexadecimal</a>(octalValue);</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  printf(<span class="stringliteral">"Equivalent hexadecimal number is: %s"</span>, hexadecimalValue);</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// free the memory allocated dynamically in function octalToHexadecimal</span></div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(hexadecimalValue);</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// return 0 and exit</span></div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>{</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// execute the tests</span></div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <a class="code hl_function" href="../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d">test</a>();</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="comment">// get the value of octal number as input</span></div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordtype">int</span> octalValue;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> printf(<span class="stringliteral">"Enter an octal number: "</span>);</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> scanf(<span class="stringliteral">"%d"</span>, &octalValue);</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// call the function octalToHexadecimal and print the hexadecimal value</span></div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordtype">char</span> *hexadecimalValue = <a class="code hl_function" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2">octalToHexadecimal</a>(octalValue);</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> printf(<span class="stringliteral">"Equivalent hexadecimal number is: %s"</span>, hexadecimalValue);</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="comment">// free the memory allocated dynamically in function octalToHexadecimal</span></div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(hexadecimalValue);</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="comment">// return 0 and exit</span></div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span>}</div>
|
||||
<div class="ttc" id="amalloc__dbg_8h_html_a9cc854374299a1dd933bf62029761768"><div class="ttname"><a href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a></div><div class="ttdeci">#define free(ptr)</div><div class="ttdoc">This macro replace the standard free function with free_dbg.</div><div class="ttdef"><b>Definition:</b> malloc_dbg.h:26</div></div>
|
||||
<div class="ttc" id="aoctal__to__hexadecimal_8c_html_a042035b4ba7b92974f0edf6eb1b0cbe1"><div class="ttname"><a href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1">octalToHexadecimal</a></div><div class="ttdeci">char * octalToHexadecimal(long octalValue)</div><div class="ttdoc">Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...</div><div class="ttdef"><b>Definition:</b> octal_to_hexadecimal.c:38</div></div>
|
||||
<div class="ttc" id="aoctal__to__hexadecimal_8c_html_a823ef5170955cfef40e07d9a4d2e87e2"><div class="ttname"><a href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2">octalToHexadecimal</a></div><div class="ttdeci">char * octalToHexadecimal(long octalValue)</div><div class="ttdoc">Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...</div><div class="ttdef"><b>Definition:</b> octal_to_hexadecimal.c:38</div></div>
|
||||
<div class="ttc" id="aoctal__to__hexadecimal_8c_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Test function.</div><div class="ttdef"><b>Definition:</b> octal_to_hexadecimal.c:48</div></div>
|
||||
</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="../../d0/d8a/octal__to__hexadecimal_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="502" height="63"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d8a/octal__to__hexadecimal_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="503" height="63"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a86a4edb605c2a03d9175c59de679347d"></a>
|
||||
<a id="a86a4edb605c2a03d9175c59de679347d" name="a86a4edb605c2a03d9175c59de679347d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a86a4edb605c2a03d9175c59de679347d">◆ </a></span>octalToDecimal()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -203,28 +202,28 @@ Here is the call graph for this function:</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>a decimal number after conversion </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  {</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordtype">long</span> decimalValue = 0;</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordtype">int</span> i = 0;</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">while</span> (octalValue) {</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="comment">// Extracts right-most digit, multiplies it with 8^i, and increment i by 1</span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  decimalValue += (long)(octalValue % 10) * pow(8, i++);</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="comment">// Shift right in base 10</span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  octalValue /= 10;</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  }</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">return</span> decimalValue;</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> {</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordtype">long</span> decimalValue = 0;</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordtype">int</span> i = 0;</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keywordflow">while</span> (octalValue) {</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// Extracts right-most digit, multiplies it with 8^i, and increment i by 1</span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> decimalValue += (long)(octalValue % 10) * pow(8, i++);</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// Shift right in base 10</span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> octalValue /= 10;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> }</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">return</span> decimalValue;</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a042035b4ba7b92974f0edf6eb1b0cbe1"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a042035b4ba7b92974f0edf6eb1b0cbe1">◆ </a></span>octalToHexadecimal()</h2>
|
||||
<a id="a823ef5170955cfef40e07d9a4d2e87e2" name="a823ef5170955cfef40e07d9a4d2e87e2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a823ef5170955cfef40e07d9a4d2e87e2">◆ </a></span>octalToHexadecimal()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">char* octalToHexadecimal </td>
|
||||
<td class="memname">char * octalToHexadecimal </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">long </td>
|
||||
<td class="paramname"><em>octalValue</em></td><td>)</td>
|
||||
@@ -241,23 +240,23 @@ Here is the call graph for this function:</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>a hexadecimal value as a string after conversion </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">char</span> *hexadecimalValue = <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(256 * <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  sprintf(hexadecimalValue, <span class="stringliteral">"%lX"</span>, <a class="code" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d">octalToDecimal</a>(octalValue));</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> hexadecimalValue;</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> {</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">char</span> *hexadecimalValue = <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(256 * <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>));</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> sprintf(hexadecimalValue, <span class="stringliteral">"%lX"</span>, <a class="code hl_function" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d">octalToDecimal</a>(octalValue));</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">return</span> hexadecimalValue;</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>}</div>
|
||||
<div class="ttc" id="amalloc__dbg_8h_html_a725f50ecaf1959d96de79b36b4788fee"><div class="ttname"><a href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a></div><div class="ttdeci">#define malloc(bytes)</div><div class="ttdoc">This macro replace the standard malloc function with malloc_dbg.</div><div class="ttdef"><b>Definition:</b> malloc_dbg.h:18</div></div>
|
||||
<div class="ttc" id="aoctal__to__hexadecimal_8c_html_a86a4edb605c2a03d9175c59de679347d"><div class="ttname"><a href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d">octalToDecimal</a></div><div class="ttdeci">long octalToDecimal(long octalValue)</div><div class="ttdoc">Convert octal number to decimal number.</div><div class="ttdef"><b>Definition:</b> octal_to_hexadecimal.c:20</div></div>
|
||||
</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="../../d0/d8a/octal__to__hexadecimal_8c_a042035b4ba7b92974f0edf6eb1b0cbe1_cgraph.svg" width="311" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d8a/octal__to__hexadecimal_8c_a823ef5170955cfef40e07d9a4d2e87e2_cgraph.svg" width="312" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa8dca7b867074164d5f45b0f3851269d"></a>
|
||||
<a id="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa8dca7b867074164d5f45b0f3851269d">◆ </a></span>test()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -283,17 +282,17 @@ Here is the call graph for this function:</div>
|
||||
|
||||
<p>Test function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">/* test that hexadecimal value of octal number 213 is 8B */</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  assert(strcmp(<a class="code" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1">octalToHexadecimal</a>(213), <span class="stringliteral">"8B"</span>) == 0);</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="comment">/* test that hexadecimal value of octal number 174 is 7C */</span></div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  assert(strcmp(<a class="code" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1">octalToHexadecimal</a>(174), <span class="stringliteral">"7C"</span>) == 0);</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> {</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="comment">/* test that hexadecimal value of octal number 213 is 8B */</span></div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> assert(strcmp(<a class="code hl_function" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2">octalToHexadecimal</a>(213), <span class="stringliteral">"8B"</span>) == 0);</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="comment">/* test that hexadecimal value of octal number 174 is 7C */</span></div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> assert(strcmp(<a class="code hl_function" href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2">octalToHexadecimal</a>(174), <span class="stringliteral">"7C"</span>) == 0);</div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span>}</div>
|
||||
</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="../../d0/d8a/octal__to__hexadecimal_8c_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="403" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d8a/octal__to__hexadecimal_8c_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="404" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -305,7 +304,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="../../dir_9babc524d57e25f3d9f4179cabc3599e.html">conversions</a></li><li class="navelem"><a class="el" href="../../d0/d8a/octal__to__hexadecimal_8c.html">octal_to_hexadecimal.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -2,6 +2,6 @@ var octal__to__hexadecimal_8c =
|
||||
[
|
||||
[ "main", "d0/d8a/octal__to__hexadecimal_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
|
||||
[ "octalToDecimal", "d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d", null ],
|
||||
[ "octalToHexadecimal", "d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1", null ],
|
||||
[ "octalToHexadecimal", "d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2", null ],
|
||||
[ "test", "d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d", null ]
|
||||
];
|
||||
@@ -1,4 +1,4 @@
|
||||
<map id="octalToHexadecimal" name="octalToHexadecimal">
|
||||
<area shape="rect" id="node1" title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call..." alt="" coords="5,5,145,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" title="Convert octal number to decimal number." alt="" coords="193,5,305,32"/>
|
||||
<area shape="rect" id="node1" title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call..." alt="" coords="5,5,147,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" title="Convert octal number to decimal number." alt="" coords="195,5,307,32"/>
|
||||
</map>
|
||||
@@ -1,20 +1,20 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: octalToHexadecimal Pages: 1 -->
|
||||
<svg width="233pt" height="28pt"
|
||||
viewBox="0.00 0.00 233.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="234pt" height="28pt"
|
||||
viewBox="0.00 0.00 234.00 28.00" 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 24)">
|
||||
<title>octalToHexadecimal</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 229,-24 229,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 230,-24 230,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 105,-19.5 105,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="52.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToHexadecimal</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 106,-19.5 106,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="53" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToHexadecimal</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -22,16 +22,16 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" target="_top" xlink:title="Convert octal number to decimal number.">
|
||||
<polygon fill="white" stroke="black" points="141,-0.5 141,-19.5 225,-19.5 225,-0.5 141,-0.5"/>
|
||||
<text text-anchor="middle" x="183" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToDecimal</text>
|
||||
<polygon fill="white" stroke="black" points="142,-0.5 142,-19.5 226,-19.5 226,-0.5 142,-0.5"/>
|
||||
<text text-anchor="middle" x="184" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToDecimal</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M105.03,-10C113.46,-10 122.21,-10 130.64,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="130.74,-13.5 140.74,-10 130.74,-6.5 130.74,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M106.1,-10C114.55,-10 123.3,-10 131.73,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="131.81,-13.5 141.81,-10 131.81,-6.5 131.81,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="test" name="test">
|
||||
<area shape="rect" id="node1" title="Test function." alt="" coords="5,5,49,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1" title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call..." alt="" coords="97,5,237,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" title="Convert octal number to decimal number." alt="" coords="285,5,397,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call..." alt="" coords="97,5,239,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" title="Convert octal number to decimal number." alt="" coords="287,5,399,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
94ca6007a16192605829c0e9175bd489
|
||||
c3cdaefac70dbde53bb5af7d3d73bce0
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test Pages: 1 -->
|
||||
<svg width="302pt" height="28pt"
|
||||
viewBox="0.00 0.00 302.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="303pt" height="28pt"
|
||||
viewBox="0.00 0.00 303.00 28.00" 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 24)">
|
||||
<title>test</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 298,-24 298,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 299,-24 299,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -21,32 +21,32 @@
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1" target="_top" xlink:title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...">
|
||||
<polygon fill="white" stroke="black" points="69,-0.5 69,-19.5 174,-19.5 174,-0.5 69,-0.5"/>
|
||||
<text text-anchor="middle" x="121.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToHexadecimal</text>
|
||||
<g id="a_node2"><a xlink:href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" target="_top" xlink:title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...">
|
||||
<polygon fill="white" stroke="black" points="69,-0.5 69,-19.5 175,-19.5 175,-0.5 69,-0.5"/>
|
||||
<text text-anchor="middle" x="122" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToHexadecimal</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M33.14,-10C40.33,-10 49.36,-10 58.87,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="58.9,-13.5 68.9,-10 58.9,-6.5 58.9,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M33.22,-10C40.28,-10 49.12,-10 58.44,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="58.69,-13.5 68.69,-10 58.69,-6.5 58.69,-13.5"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" target="_top" xlink:title="Convert octal number to decimal number.">
|
||||
<polygon fill="white" stroke="black" points="210,-0.5 210,-19.5 294,-19.5 294,-0.5 210,-0.5"/>
|
||||
<text text-anchor="middle" x="252" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToDecimal</text>
|
||||
<polygon fill="white" stroke="black" points="211,-0.5 211,-19.5 295,-19.5 295,-0.5 211,-0.5"/>
|
||||
<text text-anchor="middle" x="253" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToDecimal</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M174.03,-10C182.46,-10 191.21,-10 199.64,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="199.74,-13.5 209.74,-10 199.74,-6.5 199.74,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M175.1,-10C183.55,-10 192.3,-10 200.73,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="200.81,-13.5 210.81,-10 200.81,-6.5 200.81,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -1,6 +1,6 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,5,56,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1" title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call..." alt="" coords="196,5,336,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call..." alt="" coords="196,5,337,32"/>
|
||||
<area shape="rect" id="node4" href="$d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d" title="Test function." alt="" coords="104,31,148,57"/>
|
||||
<area shape="rect" id="node3" href="$d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" title="Convert octal number to decimal number." alt="" coords="384,5,496,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" title="Convert octal number to decimal number." alt="" coords="385,5,497,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
a9759acd9602b7176b50a7c5c094ac8f
|
||||
0a029a42587c06dcbfbc71bf33c15e12
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="376pt" height="47pt"
|
||||
viewBox="0.00 0.00 376.00 47.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="377pt" height="47pt"
|
||||
viewBox="0.00 0.00 377.00 47.00" 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 43)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-43 372,-43 372,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-43 373,-43 373,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -21,17 +21,17 @@
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/d8a/octal__to__hexadecimal_8c.html#a042035b4ba7b92974f0edf6eb1b0cbe1" target="_top" xlink:title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...">
|
||||
<polygon fill="white" stroke="black" points="143,-19.5 143,-38.5 248,-38.5 248,-19.5 143,-19.5"/>
|
||||
<text text-anchor="middle" x="195.5" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToHexadecimal</text>
|
||||
<g id="a_node2"><a xlink:href="../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" target="_top" xlink:title="Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...">
|
||||
<polygon fill="white" stroke="black" points="143,-19.5 143,-38.5 249,-38.5 249,-19.5 143,-19.5"/>
|
||||
<text text-anchor="middle" x="196" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToHexadecimal</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.02,-29C60.19,-29 99.02,-29 132.45,-29"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="132.63,-32.5 142.63,-29 132.63,-25.5 132.63,-32.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.07,-29C60.31,-29 99.25,-29 132.77,-29"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="132.98,-32.5 142.98,-29 132.98,-25.5 132.98,-32.5"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
@@ -52,22 +52,22 @@
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" target="_top" xlink:title="Convert octal number to decimal number.">
|
||||
<polygon fill="white" stroke="black" points="284,-19.5 284,-38.5 368,-38.5 368,-19.5 284,-19.5"/>
|
||||
<text text-anchor="middle" x="326" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToDecimal</text>
|
||||
<polygon fill="white" stroke="black" points="285,-19.5 285,-38.5 369,-38.5 369,-19.5 285,-19.5"/>
|
||||
<text text-anchor="middle" x="327" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">octalToDecimal</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M248.03,-29C256.46,-29 265.21,-29 273.64,-29"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="273.74,-32.5 283.74,-29 273.74,-25.5 273.74,-32.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M249.1,-29C257.55,-29 266.3,-29 274.73,-29"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="274.81,-32.5 284.81,-29 274.81,-25.5 274.81,-32.5"/>
|
||||
</g>
|
||||
<!-- Node4->Node2 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node4->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M107.14,-12.89C114.33,-14.21 123.36,-15.88 132.87,-17.63"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="132.43,-21.11 142.9,-19.48 133.7,-14.23 132.43,-21.11"/>
|
||||
<path fill="none" stroke="midnightblue" d="M107.22,-12.89C114.44,-14.21 123.51,-15.88 133.07,-17.63"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="132.68,-21.12 143.15,-19.48 133.95,-14.23 132.68,-21.12"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: max_heap Struct Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d8a/structmax__heap.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,24 +92,29 @@ $(document).ready(function(){initNavTree('d0/d8a/structmax__heap.html','../../')
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-attribs">Data Fields</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">max_heap Struct Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">max_heap Struct Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>for INT_MIN
|
||||
<a href="../../d0/d8a/structmax__heap.html#details">More...</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
||||
Data Fields</h2></td></tr>
|
||||
<tr class="memitem:a1b632c34e7304f9e0720834200696340"><td class="memItemLeft" align="right" valign="top"><a id="a1b632c34e7304f9e0720834200696340"></a>
|
||||
<tr class="memitem:a1b632c34e7304f9e0720834200696340"><td class="memItemLeft" align="right" valign="top"><a id="a1b632c34e7304f9e0720834200696340" name="a1b632c34e7304f9e0720834200696340"></a>
|
||||
int * </td><td class="memItemRight" valign="bottom"><b>p</b></td></tr>
|
||||
<tr class="separator:a1b632c34e7304f9e0720834200696340"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac4d520821651b109fd2ba2a99c6c6015"><td class="memItemLeft" align="right" valign="top"><a id="ac4d520821651b109fd2ba2a99c6c6015"></a>
|
||||
<tr class="memitem:ac4d520821651b109fd2ba2a99c6c6015"><td class="memItemLeft" align="right" valign="top"><a id="ac4d520821651b109fd2ba2a99c6c6015" name="ac4d520821651b109fd2ba2a99c6c6015"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><b>size</b></td></tr>
|
||||
<tr class="separator:ac4d520821651b109fd2ba2a99c6c6015"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a917b63797e1857ce994dd5e6cfcebf1e"><td class="memItemLeft" align="right" valign="top"><a id="a917b63797e1857ce994dd5e6cfcebf1e"></a>
|
||||
<tr class="memitem:a917b63797e1857ce994dd5e6cfcebf1e"><td class="memItemLeft" align="right" valign="top"><a id="a917b63797e1857ce994dd5e6cfcebf1e" name="a917b63797e1857ce994dd5e6cfcebf1e"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><b>count</b></td></tr>
|
||||
<tr class="separator:a917b63797e1857ce994dd5e6cfcebf1e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<hr/>The documentation for this struct was generated from the following file:<ul>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p >for INT_MIN </p>
|
||||
<p >for IO operations for dynamic memory allocation </p>
|
||||
</div><hr/>The documentation for this struct was generated from the following file:<ul>
|
||||
<li>data_structures/heap/max_heap.c</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
@@ -118,7 +123,7 @@ int </td><td class="memItemRight" valign="bottom"><b>count</b></td></tr>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d0/d8a/structmax__heap.html">max_heap</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
var structmax__heap =
|
||||
[
|
||||
[ "count", "d0/d8a/structmax__heap.html#a917b63797e1857ce994dd5e6cfcebf1e", null ],
|
||||
[ "p", "d0/d8a/structmax__heap.html#a1b632c34e7304f9e0720834200696340", null ],
|
||||
[ "size", "d0/d8a/structmax__heap.html#ac4d520821651b109fd2ba2a99c6c6015", null ]
|
||||
];
|
||||
@@ -1,5 +1,5 @@
|
||||
<map id="searching/binary_search.c" name="searching/binary_search.c">
|
||||
<area shape="rect" id="node1" title="Program to perform binary search of a target value in a given sorted array." alt="" coords="5,5,180,32"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="14,80,83,107"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="107,80,169,107"/>
|
||||
<area shape="rect" id="node1" title="Program to perform binary search of a target value in a given sorted array." alt="" coords="5,5,183,32"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="15,80,85,107"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="109,80,170,107"/>
|
||||
</map>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: searching/binary_search.c Pages: 1 -->
|
||||
<svg width="139pt" height="84pt"
|
||||
viewBox="0.00 0.00 139.00 84.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="141pt" height="84pt"
|
||||
viewBox="0.00 0.00 141.00 84.00" 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 80)">
|
||||
<title>searching/binary_search.c</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-80 135,-80 135,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-80 137,-80 137,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Program to perform binary search of a target value in a given sorted array.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-75.5 131,-75.5 131,-56.5 0,-56.5"/>
|
||||
<text text-anchor="middle" x="65.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">searching/binary_search.c</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-75.5 133,-75.5 133,-56.5 0,-56.5"/>
|
||||
<text text-anchor="middle" x="66.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">searching/binary_search.c</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -22,31 +22,31 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="6.5,-0.5 6.5,-19.5 58.5,-19.5 58.5,-0.5 6.5,-0.5"/>
|
||||
<text text-anchor="middle" x="32.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">assert.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="7.5,-0.5 7.5,-19.5 59.5,-19.5 59.5,-0.5 7.5,-0.5"/>
|
||||
<text text-anchor="middle" x="33.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">assert.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M60.05,-56.08C55.49,-48.61 48.83,-37.72 43.21,-28.52"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="46.05,-26.46 37.85,-19.75 40.08,-30.11 46.05,-26.46"/>
|
||||
<path fill="none" stroke="midnightblue" d="M61.05,-56.08C56.49,-48.61 49.83,-37.72 44.21,-28.52"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="47.05,-26.46 38.85,-19.75 41.08,-30.11 47.05,-26.46"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="76.5,-0.5 76.5,-19.5 122.5,-19.5 122.5,-0.5 76.5,-0.5"/>
|
||||
<text text-anchor="middle" x="99.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="77.5,-0.5 77.5,-19.5 123.5,-19.5 123.5,-0.5 77.5,-0.5"/>
|
||||
<text text-anchor="middle" x="100.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M71.11,-56.08C75.87,-48.53 82.82,-37.49 88.65,-28.23"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="91.62,-30.08 93.99,-19.75 85.7,-26.35 91.62,-30.08"/>
|
||||
<path fill="none" stroke="midnightblue" d="M72.11,-56.08C76.87,-48.53 83.82,-37.49 89.65,-28.23"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="92.62,-30.08 94.99,-19.75 86.7,-26.35 92.62,-30.08"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="conversions/c_atoi_str_to_integer.c" name="conversions/c_atoi_str_to_integer.c">
|
||||
<area shape="rect" id="node1" title="Recoding the original atoi function in stdlib.h." alt="" coords="107,5,237,47"/>
|
||||
<area shape="rect" id="node1" title="Recoding the original atoi function in stdlib.h." alt="" coords="106,5,238,47"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,95,75,121"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="99,95,160,121"/>
|
||||
<area shape="rect" id="node4" title=" " alt="" coords="184,95,248,121"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: conversions/c_atoi_str_to_integer.c Pages: 1 -->
|
||||
<svg width="258pt" height="95pt"
|
||||
@@ -13,8 +13,8 @@
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Recoding the original atoi function in stdlib.h.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="76,-56.5 76,-86.5 174,-86.5 174,-56.5 76,-56.5"/>
|
||||
<text text-anchor="start" x="84" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">conversions/c_atoi</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="75.5,-56.5 75.5,-86.5 174.5,-86.5 174.5,-56.5 75.5,-56.5"/>
|
||||
<text text-anchor="start" x="83.5" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">conversions/c_atoi</text>
|
||||
<text text-anchor="middle" x="125" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_str_to_integer.c</text>
|
||||
</a>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="misc/collatz.c" name="misc/collatz.c">
|
||||
<area shape="rect" id="node1" title="Implementation of Collatz' conjecture" alt="" coords="27,5,130,32"/>
|
||||
<area shape="rect" id="node1" title="Implementation of Collatz' conjecture" alt="" coords="28,5,129,32"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,80,67,107"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="91,80,155,107"/>
|
||||
</map>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: misc/collatz.c Pages: 1 -->
|
||||
<svg width="120pt" height="84pt"
|
||||
@@ -13,7 +13,7 @@
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Implementation of Collatz' conjecture">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="16.5,-56.5 16.5,-75.5 93.5,-75.5 93.5,-56.5 16.5,-56.5"/>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="17,-56.5 17,-75.5 93,-75.5 93,-56.5 17,-56.5"/>
|
||||
<text text-anchor="middle" x="55" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">misc/collatz.c</text>
|
||||
</a>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: geometry/geometry_datatypes.h File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/dc7/geometry__datatypes_8h.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -94,8 +94,7 @@ $(document).ready(function(){initNavTree('d0/dc7/geometry__datatypes_8h.html','.
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#define-members">Macros</a> |
|
||||
<a href="#typedef-members">Typedefs</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">geometry_datatypes.h File Reference<div class="ingroups"><a class="el" href="../../de/d5a/group__quaternions.html">Library for 3D Vectors & Quaternions</a></div></div> </div>
|
||||
<div class="headertitle"><div class="title">geometry_datatypes.h File Reference<div class="ingroups"><a class="el" href="../../de/d5a/group__quaternions.html">Library for 3D Vectors & Quaternions</a></div></div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
@@ -104,13 +103,13 @@ $(document).ready(function(){initNavTree('d0/dc7/geometry__datatypes_8h.html','.
|
||||
<div class="textblock"><div class="dynheader">
|
||||
This graph shows which files directly or indirectly include this file:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dc/d41/geometry__datatypes_8h__dep__incl.svg" width="350" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dc/d41/geometry__datatypes_8h__dep__incl.svg" width="355" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="../../d0/dc7/geometry__datatypes_8h_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/db4/structvec__3d__.html">vec_3d_</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">3D vector type <a href="../../d5/db4/structvec__3d__.html#details">More...</a><br /></td></tr>
|
||||
@@ -128,37 +127,37 @@ Data Structures</h2></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">a dual quaternion type <a href="../../d7/dfd/structdual__quat__.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
||||
Macros</h2></td></tr>
|
||||
<tr class="memitem:ga002b2f4894492820fe708b1b7e7c5e70"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d5a/group__quaternions.html#ga002b2f4894492820fe708b1b7e7c5e70">EPSILON</a>   1e-9</td></tr>
|
||||
<tr class="memdesc:ga002b2f4894492820fe708b1b7e7c5e70"><td class="mdescLeft"> </td><td class="mdescRight">Minimum recognizable value. <a href="../../de/d5a/group__quaternions.html#ga002b2f4894492820fe708b1b7e7c5e70">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga002b2f4894492820fe708b1b7e7c5e70"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:gaf9ee870d4922e488bdd3e7262485c270"><td class="memItemLeft" align="right" valign="top">
|
||||
typedef struct <a class="el" href="../../d5/db4/structvec__3d__.html">vec_3d_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7b/group__vec__3d.html#gaf9ee870d4922e488bdd3e7262485c270">vec_3d</a></td></tr>
|
||||
typedef struct <a class="el" href="../../d5/db4/structvec__3d__.html">vec_3d_</a> </td><td class="memItemRight" valign="bottom"><b>vec_3d</b></td></tr>
|
||||
<tr class="memdesc:gaf9ee870d4922e488bdd3e7262485c270"><td class="mdescLeft"> </td><td class="mdescRight">3D vector type <br /></td></tr>
|
||||
<tr class="separator:gaf9ee870d4922e488bdd3e7262485c270"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga9f844010cb96591fa94c9d533a500ab7"><td class="memItemLeft" align="right" valign="top">
|
||||
typedef struct <a class="el" href="../../d9/d8b/structmat__3x3__.html">mat_3x3_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d7a/group__matrix.html#ga9f844010cb96591fa94c9d533a500ab7">mat_3x3</a></td></tr>
|
||||
typedef struct <a class="el" href="../../d9/d8b/structmat__3x3__.html">mat_3x3_</a> </td><td class="memItemRight" valign="bottom"><b>mat_3x3</b></td></tr>
|
||||
<tr class="memdesc:ga9f844010cb96591fa94c9d533a500ab7"><td class="mdescLeft"> </td><td class="mdescRight">A 3x3 Matrix type definition. <br /></td></tr>
|
||||
<tr class="separator:ga9f844010cb96591fa94c9d533a500ab7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaacd70a16b61dd47a19eb5fb729c2669b"><td class="memItemLeft" align="right" valign="top">
|
||||
typedef struct <a class="el" href="../../de/d58/structquaternion__.html">quaternion_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d9a/group__quats.html#gaacd70a16b61dd47a19eb5fb729c2669b">quaternion</a></td></tr>
|
||||
typedef struct <a class="el" href="../../de/d58/structquaternion__.html">quaternion_</a> </td><td class="memItemRight" valign="bottom"><b>quaternion</b></td></tr>
|
||||
<tr class="memdesc:gaacd70a16b61dd47a19eb5fb729c2669b"><td class="mdescLeft"> </td><td class="mdescRight">a Quaternion type represented using a scalar \(w\) or \(q_0\) and a 3D vector \(\left(q_1,q_2,q_3\right)\) <br /></td></tr>
|
||||
<tr class="separator:gaacd70a16b61dd47a19eb5fb729c2669b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga8cc5e5b7a5fa492423ecf034c8bb52bd"><td class="memItemLeft" align="right" valign="top">
|
||||
typedef struct <a class="el" href="../../d2/de8/structeuler__.html">euler_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d9a/group__quats.html#ga8cc5e5b7a5fa492423ecf034c8bb52bd">euler</a></td></tr>
|
||||
typedef struct <a class="el" href="../../d2/de8/structeuler__.html">euler_</a> </td><td class="memItemRight" valign="bottom"><b>euler</b></td></tr>
|
||||
<tr class="memdesc:ga8cc5e5b7a5fa492423ecf034c8bb52bd"><td class="mdescLeft"> </td><td class="mdescRight">3D Euler or Tait-Bryan angles (in radian) <br /></td></tr>
|
||||
<tr class="separator:ga8cc5e5b7a5fa492423ecf034c8bb52bd"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga27005601c47e5bb7aafe77659e76c88f"><td class="memItemLeft" align="right" valign="top">
|
||||
typedef struct <a class="el" href="../../d7/dfd/structdual__quat__.html">dual_quat_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d69/group__dual__quats.html#ga27005601c47e5bb7aafe77659e76c88f">dual_quat</a></td></tr>
|
||||
typedef struct <a class="el" href="../../d7/dfd/structdual__quat__.html">dual_quat_</a> </td><td class="memItemRight" valign="bottom"><b>dual_quat</b></td></tr>
|
||||
<tr class="memdesc:ga27005601c47e5bb7aafe77659e76c88f"><td class="mdescLeft"> </td><td class="mdescRight">a dual quaternion type <br /></td></tr>
|
||||
<tr class="separator:ga27005601c47e5bb7aafe77659e76c88f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Generic header that provides data types for 3D vectors and quaternions. </p>
|
||||
<div class="textblock"><p >Generic header that provides data types for 3D vectors and quaternions. </p>
|
||||
<dl class="section author"><dt>Author</dt><dd>Krishna Vedala </dd></dl>
|
||||
</div></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
@@ -166,7 +165,7 @@ typedef struct <a class="el" href="../../d7/dfd/structdual__quat__.html">dual_qu
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_e3380d2178455503f266746fb14246a5.html">geometry</a></li><li class="navelem"><a class="el" href="../../d0/dc7/geometry__datatypes_8h.html">geometry_datatypes.h</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: geometry/geometry_datatypes.h Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/dc7/geometry__datatypes_8h_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -90,125 +90,124 @@ $(document).ready(function(){initNavTree('d0/dc7/geometry__datatypes_8h_source.h
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">geometry_datatypes.h</div> </div>
|
||||
<div class="headertitle"><div class="title">geometry_datatypes.h</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d0/dc7/geometry__datatypes_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/**</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * @addtogroup quaternions Library for 3D Vectors & Quaternions</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * @{</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * @file</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * @brief Generic header that provides data types for 3D vectors and quaternions</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * @author Krishna Vedala</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#ifndef __LIBQUAT_H_</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#define __LIBQUAT_H_</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">/** Minimum recognizable value. Any value less than this is considered to be</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * @f$=0@f$ */</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="../../de/d5a/group__quaternions.html#ga002b2f4894492820fe708b1b7e7c5e70"> 14</a></span> <span class="preprocessor">#define EPSILON 1e-9</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">/**</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * @addtogroup vec_3d 3D Vector operations</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * @{</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">/** 3D vector type */</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html"> 21</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d5/db4/structvec__3d__.html">vec_3d_</a></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> {</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html#a53462a5a195c9e16fb584f73fd66c3d0"> 23</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d5/db4/structvec__3d__.html#a53462a5a195c9e16fb584f73fd66c3d0">x</a>; <span class="comment">/**< X co-ordinate */</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html#a76098d39a382838df3b4b48c3443413b"> 24</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d5/db4/structvec__3d__.html#a76098d39a382838df3b4b48c3443413b">y</a>; <span class="comment">/**< Y co-ordinate */</span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html#a3339a40de7385fa55bee30be81c098c6"> 25</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d5/db4/structvec__3d__.html#a3339a40de7385fa55bee30be81c098c6">z</a>; <span class="comment">/**< Z co-ordinate */</span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="../../de/d7b/group__vec__3d.html#gaf9ee870d4922e488bdd3e7262485c270"> 26</a></span> } <a class="code" href="../../de/d7b/group__vec__3d.html#gaf9ee870d4922e488bdd3e7262485c270">vec_3d</a>;<span class="comment"></span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">/**</span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * @addtogroup matrix Matrix operations</span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> * @{</span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">/** A 3x3 Matrix type definition */</span></div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html"> 34</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d9/d8b/structmat__3x3__.html">mat_3x3_</a></div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  { <span class="comment">/**< 3 element row 1 */</span></div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html#ac74f33a2e1ad1f6db74d94807cf1f64e"> 38</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d9/d8b/structmat__3x3__.html#ac74f33a2e1ad1f6db74d94807cf1f64e">row1</a>[3];</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="../../d5/db4/structvec__3d__.html">vec_3d</a> vec1;</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  };</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  { <span class="comment">/**< 3 element row 2 */</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html#a8d7ae8fbcc408e3c30e9d64bbd28feaf"> 43</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d9/d8b/structmat__3x3__.html#a8d7ae8fbcc408e3c30e9d64bbd28feaf">row2</a>[3];</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="../../d5/db4/structvec__3d__.html">vec_3d</a> vec2;</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  };</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  { <span class="comment">/**< 3 element row 3 */</span></div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html#a490bb6be52ea95b333b55b236af41563"> 48</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d9/d8b/structmat__3x3__.html#a490bb6be52ea95b333b55b236af41563">row3</a>[3];</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="../../d5/db4/structvec__3d__.html">vec_3d</a> vec3;</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  };</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../dd/d7a/group__matrix.html#ga9f844010cb96591fa94c9d533a500ab7"> 51</a></span> } <a class="code" href="../../dd/d7a/group__matrix.html#ga9f844010cb96591fa94c9d533a500ab7">mat_3x3</a>;<span class="comment"></span></div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">/** @addtogroup quats 3D Quaternion operations</span></div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"> * @{</span></div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment">/** a Quaternion type represented using a scalar \f$w\f$ or \f$q_0\f$ and a</span></div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> * 3D vector \f$\left(q_1,q_2,q_3\right)\f$</span></div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html"> 60</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../de/d58/structquaternion__.html">quaternion_</a></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> {</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html#a835e2ba72517fbb29d0d4e3cb4c2914f"> 64</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../de/d58/structquaternion__.html#a835e2ba72517fbb29d0d4e3cb4c2914f">w</a>; <span class="comment">/**< real part of quaternion */</span></div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html#a37819eb7d76c65c37a9c2a63f01f65b2"> 65</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../de/d58/structquaternion__.html#a37819eb7d76c65c37a9c2a63f01f65b2">q0</a>; <span class="comment">/**< real part of quaternion */</span></div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  };<span class="comment"></span></div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"> /**< dual part of quaternion */</span></div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html#a596abbab688731119c1f23b26a7ac17a"> 70</a></span>  <a class="code" href="../../d5/db4/structvec__3d__.html">vec_3d</a> <a class="code" href="../../de/d58/structquaternion__.html#a596abbab688731119c1f23b26a7ac17a">dual</a>; <span class="comment">/**< can be a 3D vector */</span><span class="comment"></span></div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> /** or individual values */</span></div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">struct</span></div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  {</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">float</span> q1, q2, q3;</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  };</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  };</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../dc/d9a/group__quats.html#gaacd70a16b61dd47a19eb5fb729c2669b"> 77</a></span> } <a class="code" href="../../dc/d9a/group__quats.html#gaacd70a16b61dd47a19eb5fb729c2669b">quaternion</a>;</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment">/** 3D Euler or Tait-Bryan angles (in radian) */</span></div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html"> 80</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d2/de8/structeuler__.html">euler_</a></div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> {</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#a3f1b77e489be443a8d84a84082b8092e"> 84</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d2/de8/structeuler__.html#a3f1b77e489be443a8d84a84082b8092e">roll</a>; <span class="comment">/**< or bank \f$\phi\f$ = rotation about X axis */</span></div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#a34941b75b9bb747cd68d28315fa9691a"> 85</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d2/de8/structeuler__.html#a34941b75b9bb747cd68d28315fa9691a">bank</a>; <span class="comment">/**< or roll \f$\phi\f$ = rotation about X axis */</span></div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  };</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#aa71f9aa6dfa32d8014b2d54ab8410e0b"> 89</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d2/de8/structeuler__.html#aa71f9aa6dfa32d8014b2d54ab8410e0b">pitch</a>; <span class="comment">/**< or elevation \f$\theta\f$ = rotation about Y axis */</span></div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#abbbf12f0a960faf783d219f9012cdce6"> 90</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d2/de8/structeuler__.html#abbbf12f0a960faf783d219f9012cdce6">elevation</a>; <span class="comment">/**< or pitch \f$\theta\f$ = rotation about Y axis */</span></div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  };</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">union</span></div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  {</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#aad52507cc423ec49847471f6f15dd9d7"> 94</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d2/de8/structeuler__.html#aad52507cc423ec49847471f6f15dd9d7">yaw</a>; <span class="comment">/**< or heading \f$\psi\f$ = rotation about Z axis */</span></div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#a899572e1b6a43387128de3a402a0a5f8"> 95</a></span>  <span class="keywordtype">float</span> <a class="code" href="../../d2/de8/structeuler__.html#a899572e1b6a43387128de3a402a0a5f8">heading</a>; <span class="comment">/**< or yaw \f$\psi\f$ = rotation about Z axis */</span></div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  };</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="../../dc/d9a/group__quats.html#ga8cc5e5b7a5fa492423ecf034c8bb52bd"> 97</a></span> } <a class="code" href="../../dc/d9a/group__quats.html#ga8cc5e5b7a5fa492423ecf034c8bb52bd">euler</a>;</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment">/** @addtogroup dual_quats 3D Dual-Quaternion operations</span></div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> * @{</span></div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment">/** a dual quaternion type */</span></div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../d7/dfd/structdual__quat__.html"> 105</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d7/dfd/structdual__quat__.html">dual_quat_</a></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="../../d7/dfd/structdual__quat__.html#ad663036ace6a586f90a2f89386f7731a"> 107</a></span>  <a class="code" href="../../de/d58/structquaternion__.html">quaternion</a> <a class="code" href="../../d7/dfd/structdual__quat__.html#ad663036ace6a586f90a2f89386f7731a">real</a>; <span class="comment">/**< real part of dual quaternion */</span></div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../d7/dfd/structdual__quat__.html#a1b05fbc4135e4f9b731423f26527543d"> 108</a></span>  <a class="code" href="../../de/d58/structquaternion__.html">quaternion</a> <a class="code" href="../../d7/dfd/structdual__quat__.html#a1b05fbc4135e4f9b731423f26527543d">dual</a>; <span class="comment">/**< dual part of dual quaternion */</span></div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="../../d4/d69/group__dual__quats.html#ga27005601c47e5bb7aafe77659e76c88f"> 109</a></span> } <a class="code" href="../../d4/d69/group__dual__quats.html#ga27005601c47e5bb7aafe77659e76c88f">dual_quat</a>;</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#endif </span><span class="comment">// __LIBQUAT_H_</span></div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment">/** @} */</span></div>
|
||||
<a href="../../d0/dc7/geometry__datatypes_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/**</span></div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * @addtogroup quaternions Library for 3D Vectors & Quaternions</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * @{</span></div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * @file</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * @brief Generic header that provides data types for 3D vectors and quaternions</span></div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * @author Krishna Vedala</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#ifndef __LIBQUAT_H_</span></div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#define __LIBQUAT_H_</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">/** Minimum recognizable value. Any value less than this is considered to be</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * @f$=0@f$ */</span></div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="../../de/d5a/group__quaternions.html#ga002b2f4894492820fe708b1b7e7c5e70"> 14</a></span><span class="preprocessor">#define EPSILON 1e-9</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">/**</span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * @addtogroup vec_3d 3D Vector operations</span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> * @{</span></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="comment">/** 3D vector type */</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html"> 21</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../d5/db4/structvec__3d__.html">vec_3d_</a></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span>{</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html#a53462a5a195c9e16fb584f73fd66c3d0"> 23</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d5/db4/structvec__3d__.html#a53462a5a195c9e16fb584f73fd66c3d0">x</a>; <span class="comment">/**< X co-ordinate */</span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html#a76098d39a382838df3b4b48c3443413b"> 24</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d5/db4/structvec__3d__.html#a76098d39a382838df3b4b48c3443413b">y</a>; <span class="comment">/**< Y co-ordinate */</span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d5/db4/structvec__3d__.html#a3339a40de7385fa55bee30be81c098c6"> 25</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d5/db4/structvec__3d__.html#a3339a40de7385fa55bee30be81c098c6">z</a>; <span class="comment">/**< Z co-ordinate */</span></div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="../../de/d7b/group__vec__3d.html#gaf9ee870d4922e488bdd3e7262485c270"> 26</a></span>} <a class="code hl_typedef" href="../../de/d7b/group__vec__3d.html#gaf9ee870d4922e488bdd3e7262485c270">vec_3d</a>;<span class="comment"></span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="comment">/**</span></div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="comment"> * @addtogroup matrix Matrix operations</span></div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="comment"> * @{</span></div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment">/** A 3x3 Matrix type definition */</span></div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html"> 34</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../d9/d8b/structmat__3x3__.html">mat_3x3_</a></div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span>{</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> { <span class="comment">/**< 3 element row 1 */</span></div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html#ac74f33a2e1ad1f6db74d94807cf1f64e"> 38</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d9/d8b/structmat__3x3__.html#ac74f33a2e1ad1f6db74d94807cf1f64e">row1</a>[3];</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_struct" href="../../d5/db4/structvec__3d__.html">vec_3d</a> vec1;</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> };</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> { <span class="comment">/**< 3 element row 2 */</span></div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html#a8d7ae8fbcc408e3c30e9d64bbd28feaf"> 43</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d9/d8b/structmat__3x3__.html#a8d7ae8fbcc408e3c30e9d64bbd28feaf">row2</a>[3];</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_struct" href="../../d5/db4/structvec__3d__.html">vec_3d</a> vec2;</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> };</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> { <span class="comment">/**< 3 element row 3 */</span></div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="../../d9/d8b/structmat__3x3__.html#a490bb6be52ea95b333b55b236af41563"> 48</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d9/d8b/structmat__3x3__.html#a490bb6be52ea95b333b55b236af41563">row3</a>[3];</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_struct" href="../../d5/db4/structvec__3d__.html">vec_3d</a> vec3;</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> };</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="../../dd/d7a/group__matrix.html#ga9f844010cb96591fa94c9d533a500ab7"> 51</a></span>} <a class="code hl_typedef" href="../../dd/d7a/group__matrix.html#ga9f844010cb96591fa94c9d533a500ab7">mat_3x3</a>;<span class="comment"></span></div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="comment">/** @addtogroup quats 3D Quaternion operations</span></div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="comment"> * @{</span></div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="comment">/** a Quaternion type represented using a scalar \f$w\f$ or \f$q_0\f$ and a</span></div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="comment"> * 3D vector \f$\left(q_1,q_2,q_3\right)\f$</span></div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html"> 60</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../de/d58/structquaternion__.html">quaternion_</a></div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>{</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> {</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html#a835e2ba72517fbb29d0d4e3cb4c2914f"> 64</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../de/d58/structquaternion__.html#a835e2ba72517fbb29d0d4e3cb4c2914f">w</a>; <span class="comment">/**< real part of quaternion */</span></div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html#a37819eb7d76c65c37a9c2a63f01f65b2"> 65</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../de/d58/structquaternion__.html#a37819eb7d76c65c37a9c2a63f01f65b2">q0</a>; <span class="comment">/**< real part of quaternion */</span></div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> };<span class="comment"></span></div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="comment"> /**< dual part of quaternion */</span></div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> {</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="../../de/d58/structquaternion__.html#a596abbab688731119c1f23b26a7ac17a"> 70</a></span> <a class="code hl_struct" href="../../d5/db4/structvec__3d__.html">vec_3d</a> <a class="code hl_variable" href="../../de/d58/structquaternion__.html#a596abbab688731119c1f23b26a7ac17a">dual</a>; <span class="comment">/**< can be a 3D vector */</span><span class="comment"></span></div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="comment"> /** or individual values */</span></div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keyword">struct</span></div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> {</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordtype">float</span> q1, q2, q3;</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> };</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> };</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="../../dc/d9a/group__quats.html#gaacd70a16b61dd47a19eb5fb729c2669b"> 77</a></span>} <a class="code hl_typedef" href="../../dc/d9a/group__quats.html#gaacd70a16b61dd47a19eb5fb729c2669b">quaternion</a>;</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="comment">/** 3D Euler or Tait-Bryan angles (in radian) */</span></div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html"> 80</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../d2/de8/structeuler__.html">euler_</a></div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span>{</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> {</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#a3f1b77e489be443a8d84a84082b8092e"> 84</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d2/de8/structeuler__.html#a3f1b77e489be443a8d84a84082b8092e">roll</a>; <span class="comment">/**< or bank \f$\phi\f$ = rotation about X axis */</span></div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#a34941b75b9bb747cd68d28315fa9691a"> 85</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d2/de8/structeuler__.html#a34941b75b9bb747cd68d28315fa9691a">bank</a>; <span class="comment">/**< or roll \f$\phi\f$ = rotation about X axis */</span></div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> };</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> {</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#aa71f9aa6dfa32d8014b2d54ab8410e0b"> 89</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d2/de8/structeuler__.html#aa71f9aa6dfa32d8014b2d54ab8410e0b">pitch</a>; <span class="comment">/**< or elevation \f$\theta\f$ = rotation about Y axis */</span></div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#abbbf12f0a960faf783d219f9012cdce6"> 90</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d2/de8/structeuler__.html#abbbf12f0a960faf783d219f9012cdce6">elevation</a>; <span class="comment">/**< or pitch \f$\theta\f$ = rotation about Y axis */</span></div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> };</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keyword">union</span></div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#aad52507cc423ec49847471f6f15dd9d7"> 94</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d2/de8/structeuler__.html#aad52507cc423ec49847471f6f15dd9d7">yaw</a>; <span class="comment">/**< or heading \f$\psi\f$ = rotation about Z axis */</span></div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="../../d2/de8/structeuler__.html#a899572e1b6a43387128de3a402a0a5f8"> 95</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../d2/de8/structeuler__.html#a899572e1b6a43387128de3a402a0a5f8">heading</a>; <span class="comment">/**< or yaw \f$\psi\f$ = rotation about Z axis */</span></div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> };</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="../../dc/d9a/group__quats.html#ga8cc5e5b7a5fa492423ecf034c8bb52bd"> 97</a></span>} <a class="code hl_typedef" href="../../dc/d9a/group__quats.html#ga8cc5e5b7a5fa492423ecf034c8bb52bd">euler</a>;</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span><span class="comment">/** @addtogroup dual_quats 3D Dual-Quaternion operations</span></div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><span class="comment"> * @{</span></div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span><span class="comment"> */</span><span class="comment"></span></div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="comment">/** a dual quaternion type */</span></div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="../../d7/dfd/structdual__quat__.html"> 105</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../d7/dfd/structdual__quat__.html">dual_quat_</a></div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span>{</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="../../d7/dfd/structdual__quat__.html#ad663036ace6a586f90a2f89386f7731a"> 107</a></span> <a class="code hl_struct" href="../../de/d58/structquaternion__.html">quaternion</a> <a class="code hl_variable" href="../../d7/dfd/structdual__quat__.html#ad663036ace6a586f90a2f89386f7731a">real</a>; <span class="comment">/**< real part of dual quaternion */</span></div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="../../d7/dfd/structdual__quat__.html#a1b05fbc4135e4f9b731423f26527543d"> 108</a></span> <a class="code hl_struct" href="../../de/d58/structquaternion__.html">quaternion</a> <a class="code hl_variable" href="../../d7/dfd/structdual__quat__.html#a1b05fbc4135e4f9b731423f26527543d">dual</a>; <span class="comment">/**< dual part of dual quaternion */</span></div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="../../d4/d69/group__dual__quats.html#ga27005601c47e5bb7aafe77659e76c88f"> 109</a></span>} <a class="code hl_typedef" href="../../d4/d69/group__dual__quats.html#ga27005601c47e5bb7aafe77659e76c88f">dual_quat</a>;</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span><span class="comment">/** @} */</span></div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span><span class="preprocessor">#endif </span><span class="comment">// __LIBQUAT_H_</span></div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span><span class="comment">/** @} */</span></div>
|
||||
<div class="ttc" id="agroup__dual__quats_html_ga27005601c47e5bb7aafe77659e76c88f"><div class="ttname"><a href="../../d4/d69/group__dual__quats.html#ga27005601c47e5bb7aafe77659e76c88f">dual_quat</a></div><div class="ttdeci">struct dual_quat_ dual_quat</div><div class="ttdoc">a dual quaternion type</div></div>
|
||||
<div class="ttc" id="agroup__matrix_html_ga9f844010cb96591fa94c9d533a500ab7"><div class="ttname"><a href="../../dd/d7a/group__matrix.html#ga9f844010cb96591fa94c9d533a500ab7">mat_3x3</a></div><div class="ttdeci">struct mat_3x3_ mat_3x3</div><div class="ttdoc">A 3x3 Matrix type definition.</div></div>
|
||||
<div class="ttc" id="agroup__quats_html_ga8cc5e5b7a5fa492423ecf034c8bb52bd"><div class="ttname"><a href="../../dc/d9a/group__quats.html#ga8cc5e5b7a5fa492423ecf034c8bb52bd">euler</a></div><div class="ttdeci">struct euler_ euler</div><div class="ttdoc">3D Euler or Tait-Bryan angles (in radian)</div></div>
|
||||
@@ -242,7 +241,7 @@ $(document).ready(function(){initNavTree('d0/dc7/geometry__datatypes_8h_source.h
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_e3380d2178455503f266746fb14246a5.html">geometry</a></li><li class="navelem"><a class="el" href="../../d0/dc7/geometry__datatypes_8h.html">geometry_datatypes.h</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: Kohonen SOM trace/chain algorithm</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/dcb/group__kohonen__1d.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -93,29 +93,28 @@ $(document).ready(function(){initNavTree('d0/dcb/group__kohonen__1d.html','../..
|
||||
<div class="summary">
|
||||
<a href="#define-members">Macros</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Kohonen SOM trace/chain algorithm<div class="ingroups"><a class="el" href="../../d9/d66/group__machine__learning.html">Machine learning algorithms</a></div></div> </div>
|
||||
<div class="headertitle"><div class="title">Kohonen SOM trace/chain algorithm<div class="ingroups"><a class="el" href="../../d9/d66/group__machine__learning.html">Machine learning algorithms</a></div></div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for Kohonen SOM trace/chain algorithm:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/group__kohonen__1d.svg" width="418" height="51"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/group__kohonen__1d.svg" width="427" height="51"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
||||
Macros</h2></td></tr>
|
||||
<tr class="memitem:gaffe776513b24d84b39af8ab0930fef7f"><td class="memItemLeft" align="right" valign="top"><a id="gaffe776513b24d84b39af8ab0930fef7f"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(a, b)   (((a) > (b)) ? (a) : (b))</td></tr>
|
||||
<tr class="memitem:gaffe776513b24d84b39af8ab0930fef7f"><td class="memItemLeft" align="right" valign="top"><a id="gaffe776513b24d84b39af8ab0930fef7f" name="gaffe776513b24d84b39af8ab0930fef7f"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><b>max</b>(a, b)   (((a) > (b)) ? (a) : (b))</td></tr>
|
||||
<tr class="memdesc:gaffe776513b24d84b39af8ab0930fef7f"><td class="mdescLeft"> </td><td class="mdescRight">shorthand for maximum value <br /></td></tr>
|
||||
<tr class="separator:gaffe776513b24d84b39af8ab0930fef7f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gac6afabdc09a49a433ee19d8a9486056d"><td class="memItemLeft" align="right" valign="top"><a id="gac6afabdc09a49a433ee19d8a9486056d"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dcb/group__kohonen__1d.html#gac6afabdc09a49a433ee19d8a9486056d">min</a>(a, b)   (((a) < (b)) ? (a) : (b))</td></tr>
|
||||
<tr class="memitem:gac6afabdc09a49a433ee19d8a9486056d"><td class="memItemLeft" align="right" valign="top"><a id="gac6afabdc09a49a433ee19d8a9486056d" name="gac6afabdc09a49a433ee19d8a9486056d"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><b>min</b>(a, b)   (((a) < (b)) ? (a) : (b))</td></tr>
|
||||
<tr class="memdesc:gac6afabdc09a49a433ee19d8a9486056d"><td class="mdescLeft"> </td><td class="mdescRight">shorthand for minimum value <br /></td></tr>
|
||||
<tr class="separator:gac6afabdc09a49a433ee19d8a9486056d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:gaf5ce14f026d6d231bef29161bac2b485"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">_random</a> (double a, double b)</td></tr>
|
||||
<tr class="memdesc:gaf5ce14f026d6d231bef29161bac2b485"><td class="mdescLeft"> </td><td class="mdescRight">Helper function to generate a random number in a given interval. <a href="../../d0/dcb/group__kohonen__1d.html#gaf5ce14f026d6d231bef29161bac2b485">More...</a><br /></td></tr>
|
||||
@@ -135,7 +134,7 @@ Functions</h2></td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="gaf5ce14f026d6d231bef29161bac2b485"></a>
|
||||
<a id="gaf5ce14f026d6d231bef29161bac2b485" name="gaf5ce14f026d6d231bef29161bac2b485"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#gaf5ce14f026d6d231bef29161bac2b485">◆ </a></span>_random()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -162,7 +161,7 @@ Functions</h2></td></tr>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Helper function to generate a random number in a given interval. </p>
|
||||
<p><br />
|
||||
<p ><br />
|
||||
Steps:</p><ol type="1">
|
||||
<li><code>r1 = rand() % 100</code> gets a random number between 0 and 99</li>
|
||||
<li><code>r2 = r1 / 100</code> converts random number to be between 0 and 0.99</li>
|
||||
@@ -179,14 +178,14 @@ Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>random number in the range \([a,b)\) </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> {</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">int</span> r = rand() % 100;</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">return</span> ((b - a) * r / 100.f) + a;</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span>{</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">int</span> r = rand() % 100;</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">return</span> ((b - a) * r / 100.f) + a;</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ga4a57a413a3cef286a7da6d4666575586"></a>
|
||||
<a id="ga4a57a413a3cef286a7da6d4666575586" name="ga4a57a413a3cef286a7da6d4666575586"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ga4a57a413a3cef286a7da6d4666575586">◆ </a></span>kohonen_get_min_1d()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -234,22 +233,22 @@ Functions</h2></td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> {</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  val[0] = INFINITY; <span class="comment">// initial min value</span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < N; i++) <span class="comment">// check each value</span></div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">if</span> (X[i] < val[0]) <span class="comment">// if a lower value is found</span></div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  { <span class="comment">// save the value and its index</span></div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  idx[0] = i;</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  val[0] = X[i];</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span>{</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> val[0] = INFINITY; <span class="comment">// initial min value</span></div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < N; i++) <span class="comment">// check each value</span></div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> {</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keywordflow">if</span> (X[i] < val[0]) <span class="comment">// if a lower value is found</span></div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> { <span class="comment">// save the value and its index</span></div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> idx[0] = i;</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> val[0] = X[i];</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> }</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="gaeaeffbff2be4d5d15b0d4f10f846abde"></a>
|
||||
<a id="gaeaeffbff2be4d5d15b0d4f10f846abde" name="gaeaeffbff2be4d5d15b0d4f10f846abde"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#gaeaeffbff2be4d5d15b0d4f10f846abde">◆ </a></span>kohonen_som_tracer()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -311,42 +310,42 @@ Functions</h2></td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> {</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordtype">int</span> R = num_out >> 2, iter = 0;</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordtype">double</span> alpha = 1.f;</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordtype">double</span> *D = (<span class="keywordtype">double</span> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="comment">// Loop alpha from 1 to alpha_min</span></div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">for</span> (; alpha > alpha_min; alpha -= 0.01, iter++)</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  {</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="comment">// Loop for each sample pattern in the data set</span></div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> sample = 0; sample < num_samples; sample++)</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  {</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> *x = X[sample];</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="comment">// update weights for the current input pattern sample</span></div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f">kohonen_update_weights</a>(x, W, D, num_out, num_features, alpha, R);</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  }</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// every 10th iteration, reduce the neighborhood range</span></div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">if</span> (iter % 10 == 0 && R > 1)</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  R--;</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  }</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(D);</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span>{</div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="keywordtype">int</span> R = num_out >> 2, iter = 0;</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keywordtype">double</span> alpha = 1.f;</div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keywordtype">double</span> *D = (<span class="keywordtype">double</span> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(num_out * <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="comment">// Loop alpha from 1 to alpha_min</span></div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordflow">for</span> (; alpha > alpha_min; alpha -= 0.01, iter++)</div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> {</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="comment">// Loop for each sample pattern in the data set</span></div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> sample = 0; sample < num_samples; sample++)</div>
|
||||
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> {</div>
|
||||
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="keyword">const</span> <span class="keywordtype">double</span> *x = X[sample];</div>
|
||||
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="comment">// update weights for the current input pattern sample</span></div>
|
||||
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f">kohonen_update_weights</a>(x, W, D, num_out, num_features, alpha, R);</div>
|
||||
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> }</div>
|
||||
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
|
||||
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="comment">// every 10th iteration, reduce the neighborhood range</span></div>
|
||||
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keywordflow">if</span> (iter % 10 == 0 && R > 1)</div>
|
||||
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> R--;</div>
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> }</div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> </div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(D);</div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span>}</div>
|
||||
<div class="ttc" id="agroup__kohonen__1d_html_gae334493a0917a24736fe5ba82aa6f81f"><div class="ttname"><a href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f">kohonen_update_weights</a></div><div class="ttdeci">void kohonen_update_weights(double const *x, double *const *W, double *D, int num_out, int num_features, double alpha, int R)</div><div class="ttdoc">Update weights of the SOM using Kohonen algorithm.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:129</div></div>
|
||||
<div class="ttc" id="amalloc__dbg_8h_html_a725f50ecaf1959d96de79b36b4788fee"><div class="ttname"><a href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a></div><div class="ttdeci">#define malloc(bytes)</div><div class="ttdoc">This macro replace the standard malloc function with malloc_dbg.</div><div class="ttdef"><b>Definition:</b> malloc_dbg.h:18</div></div>
|
||||
<div class="ttc" id="amalloc__dbg_8h_html_a9cc854374299a1dd933bf62029761768"><div class="ttname"><a href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a></div><div class="ttdeci">#define free(ptr)</div><div class="ttdoc">This macro replace the standard free function with free_dbg.</div><div class="ttdef"><b>Definition:</b> malloc_dbg.h:26</div></div>
|
||||
</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="../../d0/dcb/group__kohonen__1d_gaeaeffbff2be4d5d15b0d4f10f846abde_cgraph.svg" width="564" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/group__kohonen__1d_gaeaeffbff2be4d5d15b0d4f10f846abde_cgraph.svg" width="578" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="gae334493a0917a24736fe5ba82aa6f81f"></a>
|
||||
<a id="gae334493a0917a24736fe5ba82aa6f81f" name="gae334493a0917a24736fe5ba82aa6f81f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#gae334493a0917a24736fe5ba82aa6f81f">◆ </a></span>kohonen_update_weights()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -415,55 +414,55 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> {</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordtype">int</span> j, k;</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="comment">// step 1: for each output point</span></div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">for</span> (j = 0; j < num_out; j++)</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  {</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  D[j] = 0.f;</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// compute Euclidian distance of each output</span></div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">// point from the current sample</span></div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">for</span> (k = 0; k < num_features; k++)</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  D[j] += (W[j][k] - x[k]) * (W[j][k] - x[k]);</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  }</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="comment">// step 2: get closest node i.e., node with smallest Euclidian distance to</span></div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">// the current pattern</span></div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordtype">int</span> d_min_idx;</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordtype">double</span> d_min;</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586">kohonen_get_min_1d</a>(D, num_out, &d_min, &d_min_idx);</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="comment">// step 3a: get the neighborhood range</span></div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">int</span> from_node = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(0, d_min_idx - R);</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordtype">int</span> to_node = <a class="code" href="../../d0/dcb/group__kohonen__1d.html#gac6afabdc09a49a433ee19d8a9486056d">min</a>(num_out, d_min_idx + R + 1);</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// step 3b: update the weights of nodes in the</span></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="comment">// neighborhood</span></div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">for</span> (j = from_node; j < to_node; j++)</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">for</span> (k = 0; k < num_features; k++)</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="comment">// update weights of nodes in the neighborhood</span></div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  W[j][k] += alpha * (x[k] - W[j][k]);</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span>{</div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">int</span> j, k;</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="comment">// step 1: for each output point</span></div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordflow">for</span> (j = 0; j < num_out; j++)</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> {</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> D[j] = 0.f;</div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="comment">// compute Euclidian distance of each output</span></div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// point from the current sample</span></div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">for</span> (k = 0; k < num_features; k++)</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> D[j] += (W[j][k] - x[k]) * (W[j][k] - x[k]);</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> }</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="comment">// step 2: get closest node i.e., node with smallest Euclidian distance to</span></div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="comment">// the current pattern</span></div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <span class="keywordtype">int</span> d_min_idx;</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordtype">double</span> d_min;</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_function" href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586">kohonen_get_min_1d</a>(D, num_out, &d_min, &d_min_idx);</div>
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="comment">// step 3a: get the neighborhood range</span></div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="keywordtype">int</span> from_node = <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a>(0, d_min_idx - R);</div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordtype">int</span> to_node = <a class="code hl_define" href="../../d0/dcb/group__kohonen__1d.html#gac6afabdc09a49a433ee19d8a9486056d">min</a>(num_out, d_min_idx + R + 1);</div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="comment">// step 3b: update the weights of nodes in the</span></div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// neighborhood</span></div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span><span class="preprocessor">#ifdef _OPENMP</span></div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span><span class="preprocessor">#pragma omp for</span></div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keywordflow">for</span> (j = from_node; j < to_node; j++)</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordflow">for</span> (k = 0; k < num_features; k++)</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// update weights of nodes in the neighborhood</span></div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> W[j][k] += alpha * (x[k] - W[j][k]);</div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span>}</div>
|
||||
<div class="ttc" id="agroup__kohonen__1d_html_ga4a57a413a3cef286a7da6d4666575586"><div class="ttname"><a href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586">kohonen_get_min_1d</a></div><div class="ttdeci">void kohonen_get_min_1d(double const *X, int N, double *val, int *idx)</div><div class="ttdoc">Get minimum value and index of the value in a vector.</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:104</div></div>
|
||||
<div class="ttc" id="agroup__kohonen__1d_html_gac6afabdc09a49a433ee19d8a9486056d"><div class="ttname"><a href="../../d0/dcb/group__kohonen__1d.html#gac6afabdc09a49a433ee19d8a9486056d">min</a></div><div class="ttdeci">#define min(a, b)</div><div class="ttdoc">shorthand for minimum value</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:36</div></div>
|
||||
<div class="ttc" id="agroup__kohonen__1d_html_gaffe776513b24d84b39af8ab0930fef7f"><div class="ttname"><a href="../../d0/dcb/group__kohonen__1d.html#gaffe776513b24d84b39af8ab0930fef7f">max</a></div><div class="ttdeci">#define max(a, b)</div><div class="ttdoc">shorthand for maximum value</div><div class="ttdef"><b>Definition:</b> kohonen_som_trace.c:32</div></div>
|
||||
</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="../../d0/dcb/group__kohonen__1d_gae334493a0917a24736fe5ba82aa6f81f_cgraph.svg" width="374" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/group__kohonen__1d_gae334493a0917a24736fe5ba82aa6f81f_cgraph.svg" width="383" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ga7b84b14e60f47812b581d1f93057c85a"></a>
|
||||
<a id="ga7b84b14e60f47812b581d1f93057c85a" name="ga7b84b14e60f47812b581d1f93057c85a"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ga7b84b14e60f47812b581d1f93057c85a">◆ </a></span>save_nd_data()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -514,30 +513,30 @@ Here is the call graph for this function:</div>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 if all ok </dd>
|
||||
<dd>
|
||||
-1 if file creation failed </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  FILE *fp = fopen(fname, <span class="stringliteral">"wt"</span>);</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">if</span> (!fp) <span class="comment">// error with fopen</span></div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">char</span> msg[120];</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  sprintf(msg, <span class="stringliteral">"File error (%s): "</span>, fname);</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  perror(msg);</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> -1;</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < num_points; i++) <span class="comment">// for each point in the array</span></div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < num_features; j++) <span class="comment">// for each feature in the array</span></div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  fprintf(fp, <span class="stringliteral">"%.4g"</span>, X[i][j]); <span class="comment">// print the feature value</span></div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">if</span> (j < num_features - 1) <span class="comment">// if not the last feature</span></div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  fprintf(fp, <span class="stringliteral">","</span>); <span class="comment">// suffix comma</span></div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (i < num_points - 1) <span class="comment">// if not the last row</span></div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  fprintf(fp, <span class="stringliteral">"\n"</span>); <span class="comment">// start a new line</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  fclose(fp);</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span>{</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> FILE *fp = fopen(fname, <span class="stringliteral">"wt"</span>);</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">if</span> (!fp) <span class="comment">// error with fopen</span></div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> {</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">char</span> msg[120];</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> sprintf(msg, <span class="stringliteral">"File error (%s): "</span>, fname);</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> perror(msg);</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> -1;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < num_points; i++) <span class="comment">// for each point in the array</span></div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> {</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < num_features; j++) <span class="comment">// for each feature in the array</span></div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> {</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> fprintf(fp, <span class="stringliteral">"%.4g"</span>, X[i][j]); <span class="comment">// print the feature value</span></div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">if</span> (j < num_features - 1) <span class="comment">// if not the last feature</span></div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> fprintf(fp, <span class="stringliteral">","</span>); <span class="comment">// suffix comma</span></div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> }</div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">if</span> (i < num_points - 1) <span class="comment">// if not the last row</span></div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> fprintf(fp, <span class="stringliteral">"\n"</span>); <span class="comment">// start a new line</span></div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> fclose(fp);</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -546,7 +545,7 @@ Here is the call graph for this function:</div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<map id="Kohonen SOM trace/chain algorithm" name="Kohonen SOM trace/chain algorithm">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="237,5,412,45"/>
|
||||
<area shape="rect" id="node2" href="$d9/d66/group__machine__learning.html" title=" " alt="" coords="5,13,189,38"/>
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="243,5,421,45"/>
|
||||
<area shape="rect" id="node2" href="$d9/d66/group__machine__learning.html" title=" " alt="" coords="5,13,195,38"/>
|
||||
</map>
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: Kohonen SOM trace/chain algorithm Pages: 1 -->
|
||||
<svg width="313pt" height="38pt"
|
||||
viewBox="0.00 0.00 313.00 38.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="320pt" height="38pt"
|
||||
viewBox="0.00 0.00 320.00 38.00" 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 34)">
|
||||
<title>Kohonen SOM trace/chain algorithm</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-34 309,-34 309,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-34 316,-34 316,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title=" ">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="305,-30 174,-30 174,0 305,0 305,-30"/>
|
||||
<text text-anchor="start" x="182" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">Kohonen SOM trace/chain</text>
|
||||
<text text-anchor="middle" x="239.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00"> algorithm</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="312,-30 178,-30 178,0 312,0 312,-30"/>
|
||||
<text text-anchor="start" x="186" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">Kohonen SOM trace/chain</text>
|
||||
<text text-anchor="middle" x="245" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00"> algorithm</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -23,16 +23,16 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d9/d66/group__machine__learning.html" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="138,-24.5 0,-24.5 0,-5.5 138,-5.5 138,-24.5"/>
|
||||
<text text-anchor="middle" x="69" y="-12.5" font-family="Helvetica,sans-Serif" font-size="10.00">Machine learning algorithms</text>
|
||||
<polygon fill="white" stroke="black" points="142,-24.5 0,-24.5 0,-5.5 142,-5.5 142,-24.5"/>
|
||||
<text text-anchor="middle" x="71" y="-12.5" font-family="Helvetica,sans-Serif" font-size="10.00">Machine learning algorithms</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node2->Node1</title>
|
||||
<path fill="none" stroke="black" d="M148.07,-15C156.67,-15 165.34,-15 173.75,-15"/>
|
||||
<polygon fill="black" stroke="black" points="148.05,-11.5 138.05,-15 148.05,-18.5 148.05,-11.5"/>
|
||||
<path fill="none" stroke="black" d="M152.67,-15C161.09,-15 169.58,-15 177.81,-15"/>
|
||||
<polygon fill="black" stroke="black" points="152.46,-11.5 142.46,-15 152.46,-18.5 152.46,-11.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -1,4 +1,4 @@
|
||||
<map id="kohonen_update_weights" name="kohonen_update_weights">
|
||||
<area shape="rect" id="node1" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="5,5,175,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="223,5,368,32"/>
|
||||
<area shape="rect" id="node1" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="5,5,179,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="227,5,377,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: kohonen_update_weights Pages: 1 -->
|
||||
<svg width="280pt" height="28pt"
|
||||
viewBox="0.00 0.00 280.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="287pt" height="28pt"
|
||||
viewBox="0.00 0.00 287.00 28.00" 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 24)">
|
||||
<title>kohonen_update_weights</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 276,-24 276,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 283,-24 283,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 127,-19.5 127,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="63.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 130,-19.5 130,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="65" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -22,16 +22,16 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="163,-0.5 163,-19.5 272,-19.5 272,-0.5 163,-0.5"/>
|
||||
<text text-anchor="middle" x="217.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
<polygon fill="white" stroke="black" points="166,-0.5 166,-19.5 279,-19.5 279,-0.5 166,-0.5"/>
|
||||
<text text-anchor="middle" x="222.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M127.2,-10C135.57,-10 144.17,-10 152.56,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="152.67,-13.5 162.67,-10 152.67,-6.5 152.67,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M130.15,-10C138.59,-10 147.26,-10 155.73,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="155.94,-13.5 165.94,-10 155.94,-6.5 155.94,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="kohonen_som_tracer" name="kohonen_som_tracer">
|
||||
<area shape="rect" id="node1" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="5,5,148,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="196,5,365,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="413,5,559,32"/>
|
||||
<area shape="rect" id="node1" title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given..." alt="" coords="5,5,152,32"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" title="Update weights of the SOM using Kohonen algorithm." alt="" coords="200,5,373,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" title="Get minimum value and index of the value in a vector." alt="" coords="421,5,572,32"/>
|
||||
</map>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: kohonen_som_tracer Pages: 1 -->
|
||||
<svg width="423pt" height="28pt"
|
||||
viewBox="0.00 0.00 423.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="433pt" height="28pt"
|
||||
viewBox="0.00 0.00 433.00 28.00" 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 24)">
|
||||
<title>kohonen_som_tracer</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 419,-24 419,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 429,-24 429,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Apply incremental algorithm with updating neighborhood and learning rates on all samples in the given...">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 107,-19.5 107,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="53.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 110,-19.5 110,-0.5 0,-0.5"/>
|
||||
<text text-anchor="middle" x="55" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_som_tracer</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -22,31 +22,31 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#gae334493a0917a24736fe5ba82aa6f81f" target="_top" xlink:title="Update weights of the SOM using Kohonen algorithm.">
|
||||
<polygon fill="white" stroke="black" points="143,-0.5 143,-19.5 270,-19.5 270,-0.5 143,-0.5"/>
|
||||
<text text-anchor="middle" x="206.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
<polygon fill="white" stroke="black" points="146,-0.5 146,-19.5 276,-19.5 276,-0.5 146,-0.5"/>
|
||||
<text text-anchor="middle" x="211" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_update_weights</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M107.31,-10C115.56,-10 124.22,-10 132.82,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="132.87,-13.5 142.87,-10 132.87,-6.5 132.87,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M110.29,-10C118.57,-10 127.24,-10 135.85,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="135.92,-13.5 145.92,-10 135.92,-6.5 135.92,-13.5"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/group__kohonen__1d.html#ga4a57a413a3cef286a7da6d4666575586" target="_top" xlink:title="Get minimum value and index of the value in a vector.">
|
||||
<polygon fill="white" stroke="black" points="306,-0.5 306,-19.5 415,-19.5 415,-0.5 306,-0.5"/>
|
||||
<text text-anchor="middle" x="360.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
<polygon fill="white" stroke="black" points="312,-0.5 312,-19.5 425,-19.5 425,-0.5 312,-0.5"/>
|
||||
<text text-anchor="middle" x="368.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">kohonen_get_min_1d</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M270.2,-10C278.57,-10 287.17,-10 295.56,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="295.67,-13.5 305.67,-10 295.67,-6.5 295.67,-13.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M276.15,-10C284.59,-10 293.26,-10 301.73,-10"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="301.94,-13.5 311.94,-10 301.94,-6.5 301.94,-13.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: misc/poly_add.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/dcb/poly__add_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -93,12 +93,11 @@ $(document).ready(function(){initNavTree('d0/dcb/poly__add_8c.html','../../'); i
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">poly_add.c File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">poly_add.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Implementation of <a href="https://en.wikipedia.org/wiki/Polynomial#Addition">Addition of two polynomials</a>
|
||||
<p>Implementation of <a href="https://en.wikipedia.org/wiki/Polynomial#Addition" target="_blank">Addition of two polynomials</a>
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <stdio.h></code><br />
|
||||
<code>#include <stdlib.h></code><br />
|
||||
@@ -109,13 +108,13 @@ Include dependency graph for poly_add.c:</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d86/structterm.html">term</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">identifier for single-variable polynomial coefficients as a linked list <a href="../../df/d86/structterm.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a5a103fff33166d6e4d975b8b63c6e895"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a> (struct <a class="el" href="../../df/d86/structterm.html">term</a> *poly)</td></tr>
|
||||
<tr class="memdesc:a5a103fff33166d6e4d975b8b63c6e895"><td class="mdescLeft"> </td><td class="mdescRight">Frees memory space. <a href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">More...</a><br /></td></tr>
|
||||
@@ -143,11 +142,11 @@ Functions</h2></td></tr>
|
||||
<tr class="separator:a840291bc02cba5474a4cb46a9b9566fe"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Implementation of <a href="https://en.wikipedia.org/wiki/Polynomial#Addition">Addition of two polynomials</a> </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/Ankita19ms0010">Ankita Roy Chowdhury</a></dd></dl>
|
||||
<div class="textblock"><p >Implementation of <a href="https://en.wikipedia.org/wiki/Polynomial#Addition" target="_blank">Addition of two polynomials</a> </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/Ankita19ms0010" target="_blank">Ankita Roy Chowdhury</a></dd></dl>
|
||||
<p>This code takes two polynomials as input and prints their sum using linked list. The polynomials must be in increasing or decreasing order of degree. Degree must be positive. </p>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="a29eace09ec1373a92003075f1c2f6d9d"></a>
|
||||
<a id="a29eace09ec1373a92003075f1c2f6d9d" name="a29eace09ec1373a92003075f1c2f6d9d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a29eace09ec1373a92003075f1c2f6d9d">◆ </a></span>create_polynomial()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -189,34 +188,34 @@ Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>none </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> {</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// Creating the polynomial using temporary linked lists</span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *temp1, *temp2;</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  temp1 = *poly; <span class="comment">// Contains the null pointer</span></div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// Initiating first term</span></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">if</span> (temp1 == NULL)</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  temp2 = (<span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  temp2-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a> = <a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  temp2-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> = <a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// Updating the null pointer with the address of the first node of the</span></div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// polynomial just created</span></div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  *poly = temp2;</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  temp2-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a> = NULL; <span class="comment">// Increasing the pointer temp2</span></div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">// Creating the rest of the nodes</span></div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  {</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  temp2-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a> = (<span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  temp2 = temp2-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>; <span class="comment">// Increasing the pointer temp2</span></div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  temp2-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a> = <a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  temp2-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> = <a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  temp2-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a> = NULL;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span>{</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// Creating the polynomial using temporary linked lists</span></div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *temp1, *temp2;</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> temp1 = *poly; <span class="comment">// Contains the null pointer</span></div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// Initiating first term</span></div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">if</span> (temp1 == NULL)</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> {</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> temp2 = (<span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code hl_struct" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a> = <a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> = <a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// Updating the null pointer with the address of the first node of the</span></div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// polynomial just created</span></div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> *poly = temp2;</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a> = NULL; <span class="comment">// Increasing the pointer temp2</span></div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> }</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// Creating the rest of the nodes</span></div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> {</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a> = (<span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code hl_struct" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> temp2 = temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>; <span class="comment">// Increasing the pointer temp2</span></div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a> = <a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> = <a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> temp2-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a> = NULL;</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> }</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span>}</div>
|
||||
<div class="ttc" id="amalloc__dbg_8h_html_a725f50ecaf1959d96de79b36b4788fee"><div class="ttname"><a href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a></div><div class="ttdeci">#define malloc(bytes)</div><div class="ttdoc">This macro replace the standard malloc function with malloc_dbg.</div><div class="ttdef"><b>Definition:</b> malloc_dbg.h:18</div></div>
|
||||
<div class="ttc" id="astructterm_html"><div class="ttname"><a href="../../df/d86/structterm.html">term</a></div><div class="ttdoc">identifier for single-variable polynomial coefficients as a linked list</div><div class="ttdef"><b>Definition:</b> poly_add.c:20</div></div>
|
||||
<div class="ttc" id="astructterm_html_a057f161d279d856d11786aa96fc87f74"><div class="ttname"><a href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">term::pow</a></div><div class="ttdeci">int pow</div><div class="ttdoc">power of the polynomial term</div><div class="ttdef"><b>Definition:</b> poly_add.c:22</div></div>
|
||||
@@ -225,7 +224,7 @@ Functions</h2></td></tr>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab9b9bedcb99f279d491d1b856791a36d"></a>
|
||||
<a id="ab9b9bedcb99f279d491d1b856791a36d" name="ab9b9bedcb99f279d491d1b856791a36d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab9b9bedcb99f279d491d1b856791a36d">◆ </a></span>display_polynomial()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -249,21 +248,21 @@ Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>none </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> {</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">while</span> (poly != NULL)</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  {</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  printf(<span class="stringliteral">"%d x^%d"</span>, poly-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>, poly-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>);</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  poly = poly-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">if</span> (poly != NULL)</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  {</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  printf(<span class="stringliteral">" + "</span>);</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  }</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span>{</div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keywordflow">while</span> (poly != NULL)</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> {</div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> printf(<span class="stringliteral">"%d x^%d"</span>, poly-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>, poly-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>);</div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> poly = poly-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordflow">if</span> (poly != NULL)</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> {</div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> printf(<span class="stringliteral">" + "</span>);</div>
|
||||
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> }</div>
|
||||
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> }</div>
|
||||
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a5a103fff33166d6e4d975b8b63c6e895"></a>
|
||||
<a id="a5a103fff33166d6e4d975b8b63c6e895" name="a5a103fff33166d6e4d975b8b63c6e895"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a5a103fff33166d6e4d975b8b63c6e895">◆ </a></span>free_poly()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -287,25 +286,25 @@ Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">if</span> (!poly)</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  {</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span>; <span class="comment">// NULL pointer does not need delete</span></div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">while</span> (!poly-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>)</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  {</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(poly-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>); <span class="comment">// Deletes next term</span></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(poly); <span class="comment">// delete the current term</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>{</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordflow">if</span> (!poly)</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> {</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordflow">return</span>; <span class="comment">// NULL pointer does not need delete</span></div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> }</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> {</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">while</span> (!poly-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>)</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> {</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(poly-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>); <span class="comment">// Deletes next term</span></div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a>(poly); <span class="comment">// delete the current term</span></div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span>}</div>
|
||||
<div class="ttc" id="amalloc__dbg_8h_html_a9cc854374299a1dd933bf62029761768"><div class="ttname"><a href="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a></div><div class="ttdeci">#define free(ptr)</div><div class="ttdoc">This macro replace the standard free function with free_dbg.</div><div class="ttdef"><b>Definition:</b> malloc_dbg.h:26</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a840291bc02cba5474a4cb46a9b9566fe"></a>
|
||||
<a id="a840291bc02cba5474a4cb46a9b9566fe" name="a840291bc02cba5474a4cb46a9b9566fe"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a840291bc02cba5474a4cb46a9b9566fe">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -323,27 +322,27 @@ Functions</h2></td></tr>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> {</div>
|
||||
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *poly1 = NULL, *poly2 = NULL, *poly3 = NULL;</div>
|
||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab215107dbb50c7efa811a687ce9b95af">test1</a>(poly1, poly2, poly3);</div>
|
||||
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a0c5173884bd798a6ca6f437b9b932409">test2</a>(poly1, poly2, poly3);</div>
|
||||
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab138609c765e2fd8b89e9c107cd40d57">test3</a>(poly1, poly2, poly3);</div>
|
||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div>
|
||||
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span>{</div>
|
||||
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *poly1 = NULL, *poly2 = NULL, *poly3 = NULL;</div>
|
||||
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab215107dbb50c7efa811a687ce9b95af">test1</a>(poly1, poly2, poly3);</div>
|
||||
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a0c5173884bd798a6ca6f437b9b932409">test2</a>(poly1, poly2, poly3);</div>
|
||||
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab138609c765e2fd8b89e9c107cd40d57">test3</a>(poly1, poly2, poly3);</div>
|
||||
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> </div>
|
||||
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span>}</div>
|
||||
<div class="ttc" id="apoly__add_8c_html_a0c5173884bd798a6ca6f437b9b932409"><div class="ttname"><a href="../../d0/dcb/poly__add_8c.html#a0c5173884bd798a6ca6f437b9b932409">test2</a></div><div class="ttdeci">static void test2(struct term *poly1, struct term *poly2, struct term *poly3)</div><div class="ttdoc">Test function 2.</div><div class="ttdef"><b>Definition:</b> poly_add.c:239</div></div>
|
||||
<div class="ttc" id="apoly__add_8c_html_ab138609c765e2fd8b89e9c107cd40d57"><div class="ttname"><a href="../../d0/dcb/poly__add_8c.html#ab138609c765e2fd8b89e9c107cd40d57">test3</a></div><div class="ttdeci">static void test3(struct term *poly1, struct term *poly2, struct term *poly3)</div><div class="ttdoc">Test function 3.</div><div class="ttdef"><b>Definition:</b> poly_add.c:279</div></div>
|
||||
<div class="ttc" id="apoly__add_8c_html_ab215107dbb50c7efa811a687ce9b95af"><div class="ttname"><a href="../../d0/dcb/poly__add_8c.html#ab215107dbb50c7efa811a687ce9b95af">test1</a></div><div class="ttdeci">static void test1(struct term *poly1, struct term *poly2, struct term *poly3)</div><div class="ttdoc">Test function 1.</div><div class="ttdef"><b>Definition:</b> poly_add.c:204</div></div>
|
||||
</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="../../d0/dcb/poly__add_8c_a840291bc02cba5474a4cb46a9b9566fe_cgraph.svg" width="340" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/poly__add_8c_a840291bc02cba5474a4cb46a9b9566fe_cgraph.svg" width="343" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a6ff38afe4720527c9513139cbab460af"></a>
|
||||
<a id="a6ff38afe4720527c9513139cbab460af" name="a6ff38afe4720527c9513139cbab460af"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6ff38afe4720527c9513139cbab460af">◆ </a></span>poly_add()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -384,94 +383,94 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> {</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// Creating a temporary linked list to store the resultant polynomial</span></div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *temp = (<span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(<span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="../../df/d86/structterm.html">term</a>));</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  temp->next = NULL;</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  *pol =</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  temp; <span class="comment">//*pol always points to the 1st node of the resultant polynomial</span></div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// Comparing the powers of the nodes of both the polynomials</span></div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// until one gets exhausted</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">while</span> (poly1 && poly2)</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">/* If the power of the first polynomial is greater than the power of the</span></div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> second one place the power and coefficient of that node of the first</span></div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> polynomial in temp and increase the pointer poly1</span></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">if</span> (poly1-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> > poly2-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>)</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  {</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  temp->coef = poly1-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  temp->pow = poly1-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  poly1 = poly1-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  }</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">/* If the power of the second polynomial is greater than the power of</span></div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> the first one place the power and coefficient of that node of the</span></div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"> second polynomial in temp and increase the pointer poly2</span></div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (poly1-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> < poly2-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>)</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  {</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  temp->coef = poly2-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  temp->pow = poly2-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  poly2 = poly2-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  }</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="comment">/* If both of them have same power then sum the coefficients</span></div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"> place both the summed coefficient and the power in temp</span></div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"> increase both the pointers poly1 and poly2</span></div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  {</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  temp->coef = poly1-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a> + poly2-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  temp->pow = poly1-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  poly1 = poly1-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  poly2 = poly2-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">/* If none of the polynomials are exhausted</span></div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> dynamically create a node in temp</span></div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (poly1 && poly2)</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  {</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  temp->next = (<span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  temp = temp->next; <span class="comment">// Increase the pointer temp</span></div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  temp->next = NULL;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  }</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="comment">/* If one of the polynomials is exhausted</span></div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> place the rest of the other polynomial as it is in temp</span></div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> by creating nodes dynamically</span></div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">while</span> (poly1 || poly2)</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  {</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  temp->next = (<span class="keyword">struct </span><a class="code" href="../../df/d86/structterm.html">term</a> *)<a class="code" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  temp = temp->next; <span class="comment">// Increasing the pointer</span></div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  temp->next = NULL;</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">/* If poly1 is not exhausted</span></div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"> place rest of that polynomial in temp</span></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">if</span> (poly1)</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  {</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  temp->coef = poly1-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  temp->pow = poly1-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  poly1 = poly1-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="comment">/* If poly2 is not exhausted</span></div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"> place rest of that polynomial in temp</span></div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment"> */</span></div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (poly2)</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  {</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  temp->coef = poly2-><a class="code" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  temp->pow = poly2-><a class="code" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  poly2 = poly2-><a class="code" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  }</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  }</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>{</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// Creating a temporary linked list to store the resultant polynomial</span></div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *temp = (<span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(<span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code hl_struct" href="../../df/d86/structterm.html">term</a>));</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> temp->next = NULL;</div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> *pol =</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> temp; <span class="comment">//*pol always points to the 1st node of the resultant polynomial</span></div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="comment">// Comparing the powers of the nodes of both the polynomials</span></div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="comment">// until one gets exhausted</span></div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordflow">while</span> (poly1 && poly2)</div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> {</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="comment">/* If the power of the first polynomial is greater than the power of the</span></div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="comment"> second one place the power and coefficient of that node of the first</span></div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span><span class="comment"> polynomial in temp and increase the pointer poly1</span></div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">if</span> (poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> > poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>)</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> {</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> temp->coef = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> temp->pow = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> poly1 = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> }</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="comment">/* If the power of the second polynomial is greater than the power of</span></div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span><span class="comment"> the first one place the power and coefficient of that node of the</span></div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span><span class="comment"> second polynomial in temp and increase the pointer poly2</span></div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a> < poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>)</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> {</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> temp->coef = poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> temp->pow = poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> poly2 = poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="comment">/* If both of them have same power then sum the coefficients</span></div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="comment"> place both the summed coefficient and the power in temp</span></div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="comment"> increase both the pointers poly1 and poly2</span></div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> {</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> temp->coef = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a> + poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> temp->pow = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> poly1 = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> poly2 = poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> }</div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="comment">/* If none of the polynomials are exhausted</span></div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="comment"> dynamically create a node in temp</span></div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">if</span> (poly1 && poly2)</div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> {</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> temp->next = (<span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code hl_struct" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> temp = temp->next; <span class="comment">// Increase the pointer temp</span></div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> temp->next = NULL;</div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> }</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> }</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">/* If one of the polynomials is exhausted</span></div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span><span class="comment"> place the rest of the other polynomial as it is in temp</span></div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="comment"> by creating nodes dynamically</span></div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <span class="keywordflow">while</span> (poly1 || poly2)</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> {</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> temp->next = (<span class="keyword">struct </span><a class="code hl_struct" href="../../df/d86/structterm.html">term</a> *)<a class="code hl_define" href="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a>(</div>
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code hl_struct" href="../../df/d86/structterm.html">term</a>)); <span class="comment">// Dynamic node creation</span></div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> temp = temp->next; <span class="comment">// Increasing the pointer</span></div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> temp->next = NULL;</div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="comment">/* If poly1 is not exhausted</span></div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="comment"> place rest of that polynomial in temp</span></div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keywordflow">if</span> (poly1)</div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> {</div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> temp->coef = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> temp->pow = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> poly1 = poly1-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> }</div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="comment">/* If poly2 is not exhausted</span></div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span><span class="comment"> place rest of that polynomial in temp</span></div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (poly2)</div>
|
||||
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> {</div>
|
||||
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> temp->coef = poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#a5a730814391f70179da78c657e6e6f7b">coef</a>;</div>
|
||||
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> temp->pow = poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#a057f161d279d856d11786aa96fc87f74">pow</a>;</div>
|
||||
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> poly2 = poly2-><a class="code hl_variable" href="../../df/d86/structterm.html#ab7ac49a58cc431c9838c855bf59a243a">next</a>;</div>
|
||||
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> }</div>
|
||||
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> }</div>
|
||||
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab215107dbb50c7efa811a687ce9b95af"></a>
|
||||
<a id="ab215107dbb50c7efa811a687ce9b95af" name="ab215107dbb50c7efa811a687ce9b95af"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab215107dbb50c7efa811a687ce9b95af">◆ </a></span>test1()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -512,31 +511,31 @@ Here is the call graph for this function:</div>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test function 1. </p>
|
||||
<p>Polynomial 1 is 5 x^2 + 3 x^1 + 2 x^0 Polynomial 2 is 7 x^3 + 9 x^1 + 10 x^0 Resultant polynomial is 7 x^3 + 5 x^2 + 12 x^1 + 12 x^0 </p><dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> {</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  printf(<span class="stringliteral">"\n----Test 1----\n"</span>);</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  printf(<span class="stringliteral">"\nFirst Polynomial:\n"</span>); <span class="comment">// Defining the 1st polynomial</span></div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 5, 2);</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 3, 1);</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 2, 0);</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly1);</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  </div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  printf(<span class="stringliteral">"\nSecond Polynomial:\n"</span>); <span class="comment">// Defining the 2nd polynomial</span></div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 7, 3);</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 9, 1);</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 10, 0);</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly2);</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af">poly_add</a>(&poly3, poly1, poly2); <span class="comment">// Adding the two polynomials</span></div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  printf(<span class="stringliteral">"\nResultant polynomial:\n"</span>);</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly3);</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  printf(<span class="stringliteral">"\n"</span>);</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="comment">// Frees memory space</span></div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly1);</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly2);</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly3);</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> }</div>
|
||||
<p >Polynomial 1 is 5 x^2 + 3 x^1 + 2 x^0 Polynomial 2 is 7 x^3 + 9 x^1 + 10 x^0 Resultant polynomial is 7 x^3 + 5 x^2 + 12 x^1 + 12 x^0 </p><dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span>{</div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> printf(<span class="stringliteral">"\n----Test 1----\n"</span>);</div>
|
||||
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> printf(<span class="stringliteral">"\nFirst Polynomial:\n"</span>); <span class="comment">// Defining the 1st polynomial</span></div>
|
||||
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 5, 2);</div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 3, 1);</div>
|
||||
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 2, 0);</div>
|
||||
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly1);</div>
|
||||
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> </div>
|
||||
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> printf(<span class="stringliteral">"\nSecond Polynomial:\n"</span>); <span class="comment">// Defining the 2nd polynomial</span></div>
|
||||
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 7, 3);</div>
|
||||
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 9, 1);</div>
|
||||
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 10, 0);</div>
|
||||
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly2);</div>
|
||||
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
|
||||
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af">poly_add</a>(&poly3, poly1, poly2); <span class="comment">// Adding the two polynomials</span></div>
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> printf(<span class="stringliteral">"\nResultant polynomial:\n"</span>);</div>
|
||||
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly3);</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> printf(<span class="stringliteral">"\n"</span>);</div>
|
||||
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> </div>
|
||||
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <span class="comment">// Frees memory space</span></div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly1);</div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly2);</div>
|
||||
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly3);</div>
|
||||
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span>}</div>
|
||||
<div class="ttc" id="apoly__add_8c_html_a29eace09ec1373a92003075f1c2f6d9d"><div class="ttname"><a href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a></div><div class="ttdeci">void create_polynomial(struct term **poly, int coef, int pow)</div><div class="ttdoc">The function will create a polynomial.</div><div class="ttdef"><b>Definition:</b> poly_add.c:54</div></div>
|
||||
<div class="ttc" id="apoly__add_8c_html_a5a103fff33166d6e4d975b8b63c6e895"><div class="ttname"><a href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a></div><div class="ttdeci">void free_poly(struct term *poly)</div><div class="ttdoc">Frees memory space.</div><div class="ttdef"><b>Definition:</b> poly_add.c:31</div></div>
|
||||
<div class="ttc" id="apoly__add_8c_html_a6ff38afe4720527c9513139cbab460af"><div class="ttname"><a href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af">poly_add</a></div><div class="ttdeci">void poly_add(struct term **pol, struct term *poly1, struct term *poly2)</div><div class="ttdoc">The function will add 2 polynomials.</div><div class="ttdef"><b>Definition:</b> poly_add.c:91</div></div>
|
||||
@@ -544,13 +543,13 @@ Here is the call graph for this function:</div>
|
||||
</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="../../d0/dcb/poly__add_8c_ab215107dbb50c7efa811a687ce9b95af_cgraph.svg" width="242" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/poly__add_8c_ab215107dbb50c7efa811a687ce9b95af_cgraph.svg" width="244" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0c5173884bd798a6ca6f437b9b932409"></a>
|
||||
<a id="a0c5173884bd798a6ca6f437b9b932409" name="a0c5173884bd798a6ca6f437b9b932409"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0c5173884bd798a6ca6f437b9b932409">◆ </a></span>test2()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -591,46 +590,46 @@ Here is the call graph for this function:</div>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test function 2. </p>
|
||||
<p>Polynomial 1 is 3 x^5 + 1 x^4 + 2 x^3 + -2 x^1 + 5 x^0 Polynomial 2 is 2 x^5 + 3 x^3 + 7 x^1 + 2 x^0 Resultant polynomial is 5 x^5 + 1 x^4 + 5 x^3 + 5 x^1 + 7 x^0 </p><dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> {</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  printf(<span class="stringliteral">"\n----Test 2----\n"</span>);</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  printf(<span class="stringliteral">"\nFirst Polynomial:\n"</span>); <span class="comment">// Defining the 1st polynomial</span></div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 3, 5);</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 1, 4);</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 2, 3);</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, -2, 1);</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 5, 0);</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  </div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly1);</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  printf(<span class="stringliteral">"\nSecond Polynomial:\n"</span>); <span class="comment">// Defining the 2nd polynomial</span></div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 2, 5);</div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 3, 3);</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 7, 1);</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 2, 0);</div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  </div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly2);</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af">poly_add</a>(&poly3, poly1, poly2); <span class="comment">// Adding the two polynomials</span></div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  printf(<span class="stringliteral">"\nResultant polynomial:\n"</span>);</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly3);</div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  printf(<span class="stringliteral">"\n"</span>);</div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  </div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="comment">// Frees memory space</span></div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly1);</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly2);</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly3);</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> }</div>
|
||||
<p >Polynomial 1 is 3 x^5 + 1 x^4 + 2 x^3 + -2 x^1 + 5 x^0 Polynomial 2 is 2 x^5 + 3 x^3 + 7 x^1 + 2 x^0 Resultant polynomial is 5 x^5 + 1 x^4 + 5 x^3 + 5 x^1 + 7 x^0 </p><dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span>{</div>
|
||||
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> printf(<span class="stringliteral">"\n----Test 2----\n"</span>);</div>
|
||||
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> printf(<span class="stringliteral">"\nFirst Polynomial:\n"</span>); <span class="comment">// Defining the 1st polynomial</span></div>
|
||||
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 3, 5);</div>
|
||||
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 1, 4);</div>
|
||||
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 2, 3);</div>
|
||||
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, -2, 1);</div>
|
||||
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 5, 0);</div>
|
||||
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> </div>
|
||||
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly1);</div>
|
||||
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> </div>
|
||||
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> printf(<span class="stringliteral">"\nSecond Polynomial:\n"</span>); <span class="comment">// Defining the 2nd polynomial</span></div>
|
||||
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 2, 5);</div>
|
||||
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 3, 3);</div>
|
||||
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 7, 1);</div>
|
||||
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 2, 0);</div>
|
||||
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> </div>
|
||||
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly2);</div>
|
||||
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> </div>
|
||||
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af">poly_add</a>(&poly3, poly1, poly2); <span class="comment">// Adding the two polynomials</span></div>
|
||||
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> printf(<span class="stringliteral">"\nResultant polynomial:\n"</span>);</div>
|
||||
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly3);</div>
|
||||
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> printf(<span class="stringliteral">"\n"</span>);</div>
|
||||
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> </div>
|
||||
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <span class="comment">// Frees memory space</span></div>
|
||||
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly1);</div>
|
||||
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly2);</div>
|
||||
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly3);</div>
|
||||
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span>}</div>
|
||||
</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="../../d0/dcb/poly__add_8c_a0c5173884bd798a6ca6f437b9b932409_cgraph.svg" width="242" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/poly__add_8c_a0c5173884bd798a6ca6f437b9b932409_cgraph.svg" width="244" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab138609c765e2fd8b89e9c107cd40d57"></a>
|
||||
<a id="ab138609c765e2fd8b89e9c107cd40d57" name="ab138609c765e2fd8b89e9c107cd40d57"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab138609c765e2fd8b89e9c107cd40d57">◆ </a></span>test3()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -671,37 +670,37 @@ Here is the call graph for this function:</div>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test function 3. </p>
|
||||
<p>Polynomial 1 is -12 x^0 + 8 x^1 + 4 x^3 Polynomial 2 is 5 x^0 + -13 x^1 + 3 x^3 Resultant polynomial is -7 x^0 + -5 x^1 + 7 x^3 </p><dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> {</div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  printf(<span class="stringliteral">"\n----Test 3----\n"</span>);</div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  printf(<span class="stringliteral">"\nFirst Polynomial:\n"</span>); <span class="comment">// Defining the 1st polynomial</span></div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, -12, 0);</div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 8, 1);</div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 4, 3);</div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  </div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly1);</div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  </div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  printf(<span class="stringliteral">"\nSecond Polynomial:\n"</span>); <span class="comment">// Defining the 2nd polynomial</span></div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 5, 0);</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, -13, 1);</div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 3, 3);</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  </div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly2);</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  </div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af">poly_add</a>(&poly3, poly1, poly2); <span class="comment">// Adding the two polynomials</span></div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  printf(<span class="stringliteral">"\nResultant polynomial:\n"</span>);</div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly3);</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  printf(<span class="stringliteral">"\n"</span>);</div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  </div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="comment">// Frees memory space</span></div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly1);</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly2);</div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly3);</div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> }</div>
|
||||
<p >Polynomial 1 is -12 x^0 + 8 x^1 + 4 x^3 Polynomial 2 is 5 x^0 + -13 x^1 + 3 x^3 Resultant polynomial is -7 x^0 + -5 x^1 + 7 x^3 </p><dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span>{</div>
|
||||
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> printf(<span class="stringliteral">"\n----Test 3----\n"</span>);</div>
|
||||
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> printf(<span class="stringliteral">"\nFirst Polynomial:\n"</span>); <span class="comment">// Defining the 1st polynomial</span></div>
|
||||
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, -12, 0);</div>
|
||||
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 8, 1);</div>
|
||||
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly1, 4, 3);</div>
|
||||
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> </div>
|
||||
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly1);</div>
|
||||
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> </div>
|
||||
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> printf(<span class="stringliteral">"\nSecond Polynomial:\n"</span>); <span class="comment">// Defining the 2nd polynomial</span></div>
|
||||
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 5, 0);</div>
|
||||
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, -13, 1);</div>
|
||||
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d">create_polynomial</a>(&poly2, 3, 3);</div>
|
||||
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> </div>
|
||||
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly2);</div>
|
||||
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> </div>
|
||||
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af">poly_add</a>(&poly3, poly1, poly2); <span class="comment">// Adding the two polynomials</span></div>
|
||||
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> printf(<span class="stringliteral">"\nResultant polynomial:\n"</span>);</div>
|
||||
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d">display_polynomial</a>(poly3);</div>
|
||||
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> printf(<span class="stringliteral">"\n"</span>);</div>
|
||||
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> </div>
|
||||
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> <span class="comment">// Frees memory space</span></div>
|
||||
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly1);</div>
|
||||
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly2);</div>
|
||||
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> <a class="code hl_function" href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895">free_poly</a>(poly3);</div>
|
||||
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span>}</div>
|
||||
</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="../../d0/dcb/poly__add_8c_ab138609c765e2fd8b89e9c107cd40d57_cgraph.svg" width="242" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dcb/poly__add_8c_ab138609c765e2fd8b89e9c107cd40d57_cgraph.svg" width="244" height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -713,7 +712,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="../../dir_a52f4d3d586a58b02f3a4ddf0a992157.html">misc</a></li><li class="navelem"><a class="el" href="../../d0/dcb/poly__add_8c.html">poly_add.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<map id="test2" name="test2">
|
||||
<area shape="rect" id="node1" title="Test function 2." alt="" coords="5,81,56,108"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="107,5,233,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="104,56,236,83"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="133,107,207,133"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="133,157,207,184"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="106,5,237,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="104,56,239,83"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="133,107,210,133"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="133,157,209,184"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test2 Pages: 1 -->
|
||||
<svg width="181pt" height="142pt"
|
||||
viewBox="0.00 0.00 181.00 142.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="183pt" height="142pt"
|
||||
viewBox="0.00 0.00 183.00 142.00" 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 138)">
|
||||
<title>test2</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 177,-138 177,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 179,-138 179,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,61 +22,61 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" target="_top" xlink:title="The function will create a polynomial.">
|
||||
<polygon fill="white" stroke="black" points="76,-114.5 76,-133.5 171,-133.5 171,-114.5 76,-114.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="75.5,-114.5 75.5,-133.5 173.5,-133.5 173.5,-114.5 75.5,-114.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.9,-76.63C42.49,-84.9 58.65,-96.75 74,-105 77.67,-106.98 81.6,-108.86 85.56,-110.61"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.22,-113.84 94.79,-114.47 86.91,-107.38 84.22,-113.84"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.88,-76.66C42.47,-84.94 58.62,-96.8 74,-105 77.7,-106.97 81.65,-108.85 85.65,-110.59"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.37,-113.85 94.95,-114.42 87.04,-107.38 84.37,-113.85"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" target="_top" xlink:title="The function will display the polynomial.">
|
||||
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 173,-95.5 173,-76.5 74,-76.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 175,-95.5 175,-76.5 74,-76.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-70.4C45.68,-71.76 54.61,-73.42 63.87,-75.13"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.51,-78.63 73.98,-77.01 64.79,-71.74 63.51,-78.63"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-70.31C45.42,-71.67 54.44,-73.32 63.82,-75.04"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.2,-78.49 73.66,-76.85 64.46,-71.6 63.2,-78.49"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" target="_top" xlink:title="Frees memory space.">
|
||||
<polygon fill="white" stroke="black" points="95.5,-38.5 95.5,-57.5 151.5,-57.5 151.5,-38.5 95.5,-38.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
<polygon fill="white" stroke="black" points="95.5,-38.5 95.5,-57.5 153.5,-57.5 153.5,-38.5 95.5,-38.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.6C51.36,-61.19 69.33,-57.86 85.32,-54.89"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="86.27,-58.28 95.46,-53.01 84.99,-51.39 86.27,-58.28"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-63.69C50.95,-61.32 68.84,-58.03 84.92,-55.08"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="85.95,-58.45 95.15,-53.2 84.68,-51.57 85.95,-58.45"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" target="_top" xlink:title="The function will add 2 polynomials.">
|
||||
<polygon fill="white" stroke="black" points="95.5,-0.5 95.5,-19.5 151.5,-19.5 151.5,-0.5 95.5,-0.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
<polygon fill="white" stroke="black" points="96,-0.5 96,-19.5 153,-19.5 153,-0.5 96,-0.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.9,-57.37C42.49,-49.1 58.65,-37.25 74,-29 77.76,-26.98 81.79,-25.05 85.85,-23.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="87.41,-26.4 95.3,-19.33 84.72,-19.94 87.41,-26.4"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.88,-57.34C42.47,-49.06 58.62,-37.2 74,-29 77.99,-26.87 82.27,-24.86 86.59,-23"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.04,-26.19 95.99,-19.18 85.41,-19.7 88.04,-26.19"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -3,8 +3,8 @@
|
||||
<area shape="rect" id="node2" href="$d0/dcb/poly__add_8c.html#ab215107dbb50c7efa811a687ce9b95af" title="Test function 1." alt="" coords="104,31,155,57"/>
|
||||
<area shape="rect" id="node7" href="$d0/dcb/poly__add_8c.html#a0c5173884bd798a6ca6f437b9b932409" title="Test function 2." alt="" coords="104,81,155,108"/>
|
||||
<area shape="rect" id="node8" href="$d0/dcb/poly__add_8c.html#ab138609c765e2fd8b89e9c107cd40d57" title="Test function 3." alt="" coords="104,132,155,159"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="205,107,332,133"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="203,157,335,184"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="231,5,306,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="231,56,306,83"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="205,107,335,133"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="203,157,337,184"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="231,5,309,32"/>
|
||||
<area shape="rect" id="node6" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="232,56,308,83"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="255pt" height="142pt"
|
||||
viewBox="0.00 0.00 255.00 142.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="257pt" height="142pt"
|
||||
viewBox="0.00 0.00 257.00 142.00" 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 138)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 251,-138 251,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 253,-138 253,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -67,109 +67,109 @@
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" target="_top" xlink:title="The function will create a polynomial.">
|
||||
<polygon fill="white" stroke="black" points="150,-38.5 150,-57.5 245,-57.5 245,-38.5 150,-38.5"/>
|
||||
<text text-anchor="middle" x="197.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="149.5,-38.5 149.5,-57.5 247.5,-57.5 247.5,-38.5 149.5,-38.5"/>
|
||||
<text text-anchor="middle" x="198.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M105.9,-95.37C116.49,-87.1 132.65,-75.25 148,-67 151.67,-65.02 155.6,-63.14 159.56,-61.39"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="160.91,-64.62 168.79,-57.53 158.22,-58.16 160.91,-64.62"/>
|
||||
<path fill="none" stroke="midnightblue" d="M105.88,-95.34C116.47,-87.06 132.62,-75.2 148,-67 151.7,-65.03 155.65,-63.15 159.65,-61.41"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="161.04,-64.62 168.95,-57.58 158.37,-58.15 161.04,-64.62"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" target="_top" xlink:title="The function will display the polynomial.">
|
||||
<polygon fill="white" stroke="black" points="148,-0.5 148,-19.5 247,-19.5 247,-0.5 148,-0.5"/>
|
||||
<text text-anchor="middle" x="197.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="148,-0.5 148,-19.5 249,-19.5 249,-0.5 148,-0.5"/>
|
||||
<text text-anchor="middle" x="198.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M103.91,-95.27C106.65,-92.39 109.55,-89.16 112,-86 130.39,-62.35 124.9,-48.08 148,-29 150.01,-27.34 152.19,-25.81 154.47,-24.4"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="156.4,-27.34 163.61,-19.58 153.13,-21.15 156.4,-27.34"/>
|
||||
<path fill="none" stroke="midnightblue" d="M103.91,-95.27C106.65,-92.39 109.55,-89.16 112,-86 130.39,-62.35 124.83,-48 148,-29 150.02,-27.34 152.21,-25.81 154.49,-24.41"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="156.44,-27.35 163.68,-19.61 153.19,-21.14 156.44,-27.35"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" target="_top" xlink:title="Frees memory space.">
|
||||
<polygon fill="white" stroke="black" points="169.5,-114.5 169.5,-133.5 225.5,-133.5 225.5,-114.5 169.5,-114.5"/>
|
||||
<text text-anchor="middle" x="197.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
<polygon fill="white" stroke="black" points="169.5,-114.5 169.5,-133.5 227.5,-133.5 227.5,-114.5 169.5,-114.5"/>
|
||||
<text text-anchor="middle" x="198.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node2->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M112.32,-108.4C125.36,-110.81 143.33,-114.14 159.32,-117.11"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.99,-120.61 169.46,-118.99 160.27,-113.72 158.99,-120.61"/>
|
||||
<path fill="none" stroke="midnightblue" d="M112.03,-108.31C124.95,-110.68 142.84,-113.97 158.92,-116.92"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.68,-120.43 169.15,-118.8 159.95,-113.55 158.68,-120.43"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" target="_top" xlink:title="The function will add 2 polynomials.">
|
||||
<polygon fill="white" stroke="black" points="169.5,-76.5 169.5,-95.5 225.5,-95.5 225.5,-76.5 169.5,-76.5"/>
|
||||
<text text-anchor="middle" x="197.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
<polygon fill="white" stroke="black" points="170,-76.5 170,-95.5 227,-95.5 227,-76.5 170,-76.5"/>
|
||||
<text text-anchor="middle" x="198.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M112.32,-101.6C125.36,-99.19 143.33,-95.86 159.32,-92.89"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="160.27,-96.28 169.46,-91.01 158.99,-89.39 160.27,-96.28"/>
|
||||
<path fill="none" stroke="midnightblue" d="M112.03,-101.69C125.27,-99.26 143.72,-95.87 160.09,-92.87"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="160.75,-96.31 169.95,-91.06 159.48,-89.42 160.75,-96.31"/>
|
||||
</g>
|
||||
<!-- Node7->Node3 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node7->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M112.32,-63.6C120.19,-62.15 129.84,-60.36 139.77,-58.52"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="140.54,-61.93 149.73,-56.67 139.26,-55.05 140.54,-61.93"/>
|
||||
<path fill="none" stroke="midnightblue" d="M112.03,-63.69C119.85,-62.26 129.48,-60.49 139.44,-58.66"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="140.24,-62.07 149.44,-56.82 138.98,-55.19 140.24,-62.07"/>
|
||||
</g>
|
||||
<!-- Node7->Node4 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node7->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M105.9,-57.37C116.49,-49.1 132.65,-37.25 148,-29 151.67,-27.02 155.6,-25.14 159.56,-23.39"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="160.91,-26.62 168.79,-19.53 158.22,-20.16 160.91,-26.62"/>
|
||||
<path fill="none" stroke="midnightblue" d="M105.88,-57.34C116.47,-49.06 132.62,-37.2 148,-29 151.7,-27.03 155.65,-25.15 159.65,-23.41"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="161.04,-26.62 168.95,-19.58 158.37,-20.15 161.04,-26.62"/>
|
||||
</g>
|
||||
<!-- Node7->Node5 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node7->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M105.9,-76.63C116.49,-84.9 132.65,-96.75 148,-105 151.76,-107.02 155.79,-108.95 159.85,-110.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.72,-114.06 169.3,-114.67 161.41,-107.6 158.72,-114.06"/>
|
||||
<path fill="none" stroke="midnightblue" d="M105.88,-76.66C116.47,-84.94 132.62,-96.8 148,-105 151.79,-107.02 155.85,-108.94 159.94,-110.72"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.89,-114.07 169.47,-114.62 161.54,-107.59 158.89,-114.07"/>
|
||||
</g>
|
||||
<!-- Node7->Node6 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node7->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M112.32,-70.4C125.36,-72.81 143.33,-76.14 159.32,-79.11"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.99,-82.61 169.46,-80.99 160.27,-75.72 158.99,-82.61"/>
|
||||
<path fill="none" stroke="midnightblue" d="M112.03,-70.31C125.27,-72.74 143.72,-76.13 160.09,-79.13"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="159.48,-82.58 169.95,-80.94 160.75,-75.69 159.48,-82.58"/>
|
||||
</g>
|
||||
<!-- Node8->Node3 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node8->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M112.32,-32.4C120.19,-33.85 129.84,-35.64 139.77,-37.48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="139.26,-40.95 149.73,-39.33 140.54,-34.07 139.26,-40.95"/>
|
||||
<path fill="none" stroke="midnightblue" d="M112.03,-32.31C119.85,-33.74 129.48,-35.51 139.44,-37.34"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="138.98,-40.81 149.44,-39.18 140.24,-33.93 138.98,-40.81"/>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M112.32,-25.6C119.68,-24.24 128.61,-22.58 137.87,-20.87"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="138.79,-24.26 147.98,-18.99 137.51,-17.37 138.79,-24.26"/>
|
||||
<path fill="none" stroke="midnightblue" d="M112.03,-25.69C119.42,-24.33 128.44,-22.68 137.82,-20.96"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="138.46,-24.4 147.66,-19.15 137.2,-17.51 138.46,-24.4"/>
|
||||
</g>
|
||||
<!-- Node8->Node5 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node8->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M103.91,-38.73C106.65,-41.61 109.55,-44.84 112,-48 130.39,-71.65 124.9,-85.92 148,-105 151.59,-107.96 155.69,-110.5 159.96,-112.67"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.87,-116.01 169.43,-116.84 161.69,-109.61 158.87,-116.01"/>
|
||||
<path fill="none" stroke="midnightblue" d="M103.91,-38.73C106.65,-41.61 109.55,-44.84 112,-48 130.39,-71.65 124.83,-86 148,-105 151.58,-107.94 155.66,-110.45 159.92,-112.6"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.8,-115.93 169.36,-116.73 161.6,-109.52 158.8,-115.93"/>
|
||||
</g>
|
||||
<!-- Node8->Node6 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node8->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M105.9,-38.63C116.49,-46.9 132.65,-58.75 148,-67 151.76,-69.02 155.79,-70.95 159.85,-72.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.72,-76.06 169.3,-76.67 161.41,-69.6 158.72,-76.06"/>
|
||||
<path fill="none" stroke="midnightblue" d="M105.88,-38.66C116.47,-46.94 132.62,-58.8 148,-67 151.99,-69.13 156.27,-71.14 160.59,-73"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="159.41,-76.3 169.99,-76.82 162.04,-69.81 159.41,-76.3"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
@@ -1,7 +1,7 @@
|
||||
<map id="test3" name="test3">
|
||||
<area shape="rect" id="node1" title="Test function 3." alt="" coords="5,81,56,108"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="107,5,233,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="104,56,236,83"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="133,107,207,133"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="133,157,207,184"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="106,5,237,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="104,56,239,83"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="133,107,210,133"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="133,157,209,184"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test3 Pages: 1 -->
|
||||
<svg width="181pt" height="142pt"
|
||||
viewBox="0.00 0.00 181.00 142.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="183pt" height="142pt"
|
||||
viewBox="0.00 0.00 183.00 142.00" 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 138)">
|
||||
<title>test3</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 177,-138 177,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 179,-138 179,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,61 +22,61 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" target="_top" xlink:title="The function will create a polynomial.">
|
||||
<polygon fill="white" stroke="black" points="76,-114.5 76,-133.5 171,-133.5 171,-114.5 76,-114.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="75.5,-114.5 75.5,-133.5 173.5,-133.5 173.5,-114.5 75.5,-114.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.9,-76.63C42.49,-84.9 58.65,-96.75 74,-105 77.67,-106.98 81.6,-108.86 85.56,-110.61"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.22,-113.84 94.79,-114.47 86.91,-107.38 84.22,-113.84"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.88,-76.66C42.47,-84.94 58.62,-96.8 74,-105 77.7,-106.97 81.65,-108.85 85.65,-110.59"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.37,-113.85 94.95,-114.42 87.04,-107.38 84.37,-113.85"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" target="_top" xlink:title="The function will display the polynomial.">
|
||||
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 173,-95.5 173,-76.5 74,-76.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 175,-95.5 175,-76.5 74,-76.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-70.4C45.68,-71.76 54.61,-73.42 63.87,-75.13"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.51,-78.63 73.98,-77.01 64.79,-71.74 63.51,-78.63"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-70.31C45.42,-71.67 54.44,-73.32 63.82,-75.04"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.2,-78.49 73.66,-76.85 64.46,-71.6 63.2,-78.49"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" target="_top" xlink:title="Frees memory space.">
|
||||
<polygon fill="white" stroke="black" points="95.5,-38.5 95.5,-57.5 151.5,-57.5 151.5,-38.5 95.5,-38.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
<polygon fill="white" stroke="black" points="95.5,-38.5 95.5,-57.5 153.5,-57.5 153.5,-38.5 95.5,-38.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.6C51.36,-61.19 69.33,-57.86 85.32,-54.89"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="86.27,-58.28 95.46,-53.01 84.99,-51.39 86.27,-58.28"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-63.69C50.95,-61.32 68.84,-58.03 84.92,-55.08"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="85.95,-58.45 95.15,-53.2 84.68,-51.57 85.95,-58.45"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" target="_top" xlink:title="The function will add 2 polynomials.">
|
||||
<polygon fill="white" stroke="black" points="95.5,-0.5 95.5,-19.5 151.5,-19.5 151.5,-0.5 95.5,-0.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
<polygon fill="white" stroke="black" points="96,-0.5 96,-19.5 153,-19.5 153,-0.5 96,-0.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.9,-57.37C42.49,-49.1 58.65,-37.25 74,-29 77.76,-26.98 81.79,-25.05 85.85,-23.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="87.41,-26.4 95.3,-19.33 84.72,-19.94 87.41,-26.4"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.88,-57.34C42.47,-49.06 58.62,-37.2 74,-29 77.99,-26.87 82.27,-24.86 86.59,-23"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.04,-26.19 95.99,-19.18 85.41,-19.7 88.04,-26.19"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -1,7 +1,7 @@
|
||||
<map id="test1" name="test1">
|
||||
<area shape="rect" id="node1" title="Test function 1." alt="" coords="5,81,56,108"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="107,5,233,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="104,56,236,83"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="133,107,207,133"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="133,157,207,184"/>
|
||||
<area shape="rect" id="node2" href="$d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" title="The function will create a polynomial." alt="" coords="106,5,237,32"/>
|
||||
<area shape="rect" id="node3" href="$d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" title="The function will display the polynomial." alt="" coords="104,56,239,83"/>
|
||||
<area shape="rect" id="node4" href="$d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" title="Frees memory space." alt="" coords="133,107,210,133"/>
|
||||
<area shape="rect" id="node5" href="$d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" title="The function will add 2 polynomials." alt="" coords="133,157,209,184"/>
|
||||
</map>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: test1 Pages: 1 -->
|
||||
<svg width="181pt" height="142pt"
|
||||
viewBox="0.00 0.00 181.00 142.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="183pt" height="142pt"
|
||||
viewBox="0.00 0.00 183.00 142.00" 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 138)">
|
||||
<title>test1</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 177,-138 177,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-138 179,-138 179,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -22,61 +22,61 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d0/dcb/poly__add_8c.html#a29eace09ec1373a92003075f1c2f6d9d" target="_top" xlink:title="The function will create a polynomial.">
|
||||
<polygon fill="white" stroke="black" points="76,-114.5 76,-133.5 171,-133.5 171,-114.5 76,-114.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="75.5,-114.5 75.5,-133.5 173.5,-133.5 173.5,-114.5 75.5,-114.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">create_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.9,-76.63C42.49,-84.9 58.65,-96.75 74,-105 77.67,-106.98 81.6,-108.86 85.56,-110.61"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.22,-113.84 94.79,-114.47 86.91,-107.38 84.22,-113.84"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.88,-76.66C42.47,-84.94 58.62,-96.8 74,-105 77.7,-106.97 81.65,-108.85 85.65,-110.59"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="84.37,-113.85 94.95,-114.42 87.04,-107.38 84.37,-113.85"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d0/dcb/poly__add_8c.html#ab9b9bedcb99f279d491d1b856791a36d" target="_top" xlink:title="The function will display the polynomial.">
|
||||
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 173,-95.5 173,-76.5 74,-76.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
<polygon fill="white" stroke="black" points="74,-76.5 74,-95.5 175,-95.5 175,-76.5 74,-76.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">display_polynomial</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-70.4C45.68,-71.76 54.61,-73.42 63.87,-75.13"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.51,-78.63 73.98,-77.01 64.79,-71.74 63.51,-78.63"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-70.31C45.42,-71.67 54.44,-73.32 63.82,-75.04"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="63.2,-78.49 73.66,-76.85 64.46,-71.6 63.2,-78.49"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../d0/dcb/poly__add_8c.html#a5a103fff33166d6e4d975b8b63c6e895" target="_top" xlink:title="Frees memory space.">
|
||||
<polygon fill="white" stroke="black" points="95.5,-38.5 95.5,-57.5 151.5,-57.5 151.5,-38.5 95.5,-38.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
<polygon fill="white" stroke="black" points="95.5,-38.5 95.5,-57.5 153.5,-57.5 153.5,-38.5 95.5,-38.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">free_poly</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.32,-63.6C51.36,-61.19 69.33,-57.86 85.32,-54.89"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="86.27,-58.28 95.46,-53.01 84.99,-51.39 86.27,-58.28"/>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-63.69C50.95,-61.32 68.84,-58.03 84.92,-55.08"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="85.95,-58.45 95.15,-53.2 84.68,-51.57 85.95,-58.45"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d0/dcb/poly__add_8c.html#a6ff38afe4720527c9513139cbab460af" target="_top" xlink:title="The function will add 2 polynomials.">
|
||||
<polygon fill="white" stroke="black" points="95.5,-0.5 95.5,-19.5 151.5,-19.5 151.5,-0.5 95.5,-0.5"/>
|
||||
<text text-anchor="middle" x="123.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
<polygon fill="white" stroke="black" points="96,-0.5 96,-19.5 153,-19.5 153,-0.5 96,-0.5"/>
|
||||
<text text-anchor="middle" x="124.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">poly_add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M31.9,-57.37C42.49,-49.1 58.65,-37.25 74,-29 77.76,-26.98 81.79,-25.05 85.85,-23.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="87.41,-26.4 95.3,-19.33 84.72,-19.94 87.41,-26.4"/>
|
||||
<path fill="none" stroke="midnightblue" d="M31.88,-57.34C42.47,-49.06 58.62,-37.2 74,-29 77.99,-26.87 82.27,-24.86 86.59,-23"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="88.04,-26.19 95.99,-19.18 85.41,-19.7 88.04,-26.19"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: conversions/hexadecimal_to_octal2.c File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/dd9/hexadecimal__to__octal2_8c.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -93,8 +93,7 @@ $(document).ready(function(){initNavTree('d0/dd9/hexadecimal__to__octal2_8c.html
|
||||
<div class="summary">
|
||||
<a href="#define-members">Macros</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">hexadecimal_to_octal2.c File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">hexadecimal_to_octal2.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
@@ -105,43 +104,43 @@ $(document).ready(function(){initNavTree('d0/dd9/hexadecimal__to__octal2_8c.html
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for hexadecimal_to_octal2.c:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d8/dfc/hexadecimal__to__octal2_8c__incl.svg" width="180" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d8/dfc/hexadecimal__to__octal2_8c__incl.svg" width="183" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
||||
Macros</h2></td></tr>
|
||||
<tr class="memitem:ad47196c6a06f99a1437e9569bae13c5f"><td class="memItemLeft" align="right" valign="top"><a id="ad47196c6a06f99a1437e9569bae13c5f"></a>
|
||||
<tr class="memitem:ad47196c6a06f99a1437e9569bae13c5f"><td class="memItemLeft" align="right" valign="top"><a id="ad47196c6a06f99a1437e9569bae13c5f" name="ad47196c6a06f99a1437e9569bae13c5f"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><b>MAX_OCT_STR_LEN</b>   23 /* 17_7777_7777_7777_7777_7777 */</td></tr>
|
||||
<tr class="separator:ad47196c6a06f99a1437e9569bae13c5f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab64e6838b9026996a18766d334beea20"><td class="memItemLeft" align="right" valign="top"><a id="ab64e6838b9026996a18766d334beea20"></a>
|
||||
<tr class="memitem:ab64e6838b9026996a18766d334beea20"><td class="memItemLeft" align="right" valign="top"><a id="ab64e6838b9026996a18766d334beea20" name="ab64e6838b9026996a18766d334beea20"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><b>MAX_HEX_STR_LEN</b>   17 /* FFFF_FFFF_FFFF_FFFF */</td></tr>
|
||||
<tr class="separator:ab64e6838b9026996a18766d334beea20"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a4d7524efe6e2917b3674445b7269906b"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd9/hexadecimal__to__octal2_8c.html#a4d7524efe6e2917b3674445b7269906b">hex_to_oct</a> (const char *hex)</td></tr>
|
||||
<tr class="memdesc:a4d7524efe6e2917b3674445b7269906b"><td class="mdescLeft"> </td><td class="mdescRight">for printf() and fgets() <a href="../../d0/dd9/hexadecimal__to__octal2_8c.html#a4d7524efe6e2917b3674445b7269906b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a4d7524efe6e2917b3674445b7269906b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab83549c0d43c88544be47fa6c4885ae4"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd9/hexadecimal__to__octal2_8c.html#ab83549c0d43c88544be47fa6c4885ae4">hex_to_oct</a> (const char *hex)</td></tr>
|
||||
<tr class="memdesc:ab83549c0d43c88544be47fa6c4885ae4"><td class="mdescLeft"> </td><td class="mdescRight">for printf() and fgets() <a href="../../d0/dd9/hexadecimal__to__octal2_8c.html#ab83549c0d43c88544be47fa6c4885ae4">More...</a><br /></td></tr>
|
||||
<tr class="separator:ab83549c0d43c88544be47fa6c4885ae4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd9/hexadecimal__to__octal2_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d0/dd9/hexadecimal__to__octal2_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Convert hexadecimal number to octal number (with decimal intermediary) </p>
|
||||
<p>The input is valid from 0 to 0xFFFF_FFFF_FFFF_FFFF.</p>
|
||||
<p>At first, this program converts a hex string to an unsigned long long decimal, and then to an octal string.</p>
|
||||
<p>When there is an invalid character in input string, this program stops parsing and converts the string until that character.</p>
|
||||
<div class="textblock"><p >Convert hexadecimal number to octal number (with decimal intermediary) </p>
|
||||
<p >The input is valid from 0 to 0xFFFF_FFFF_FFFF_FFFF.</p>
|
||||
<p >At first, this program converts a hex string to an unsigned long long decimal, and then to an octal string.</p>
|
||||
<p >When there is an invalid character in input string, this program stops parsing and converts the string until that character.</p>
|
||||
<dl class="section see"><dt>See also</dt><dd>hexadecimal_to_octal.c </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="a4d7524efe6e2917b3674445b7269906b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4d7524efe6e2917b3674445b7269906b">◆ </a></span>hex_to_oct()</h2>
|
||||
<a id="ab83549c0d43c88544be47fa6c4885ae4" name="ab83549c0d43c88544be47fa6c4885ae4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab83549c0d43c88544be47fa6c4885ae4">◆ </a></span>hex_to_oct()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const char* hex_to_oct </td>
|
||||
<td class="memname">const char * hex_to_oct </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const char * </td>
|
||||
<td class="paramname"><em>hex</em></td><td>)</td>
|
||||
@@ -151,92 +150,92 @@ Functions</h2></td></tr>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>for printf() and fgets() </p>
|
||||
<p>for memset()</p>
|
||||
<p>Convert a hexadecimal number to octal number. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<p >for memset()</p>
|
||||
<p >Convert a hexadecimal number to octal number. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">hex</td><td>Hexadecimal number to convert. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>A pointer to the converted octal string. </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#define MAX_OCT_STR_LEN 23 </span><span class="comment">/* 17_7777_7777_7777_7777_7777 */</span><span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">static</span> <span class="keywordtype">char</span> octal[MAX_OCT_STR_LEN];</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  memset(octal, <span class="charliteral">'\0'</span>, MAX_OCT_STR_LEN); <span class="comment">// Initialize as NULL string</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> decimal = 0;</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordtype">int</span> i = 0;</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordtype">int</span> len;</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">if</span> (hex == NULL)</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// Return an empty string</span></div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> octal;</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">/* Hexadecimal to decimal conversion */</span></div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">while</span> (*hex != <span class="charliteral">'\n'</span> && *hex != <span class="charliteral">'\0'</span>)</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">char</span> ch = *hex;</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">if</span> (ch >= <span class="charliteral">'0'</span> && ch <= <span class="charliteral">'9'</span>)</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  ch -= <span class="charliteral">'0'</span>;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ch >= <span class="charliteral">'a'</span> && ch <= <span class="charliteral">'f'</span>)</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  ch = ch - <span class="charliteral">'a'</span> + 10;</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ch >= <span class="charliteral">'A'</span> && ch <= <span class="charliteral">'F'</span>)</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  ch = ch - <span class="charliteral">'A'</span> + 10;</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  printf(<span class="stringliteral">"Invalid hexadecimal input: %c\n"</span>, ch);</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">break</span>;</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  decimal *= 16;</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  decimal += ch;</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  hex++;</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">/* Decimal to octal conversion */</span></div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">if</span> (decimal == 0)</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  octal[0] = <span class="charliteral">'0'</span>;</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  len = 1;</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  i = 0;</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">while</span> (decimal > 0)</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  octal[i] = <span class="charliteral">'0'</span> + decimal % 8;</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  i++;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  decimal /= 8;</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  len = i;</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  octal[len] = <span class="charliteral">'\0'</span>;</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">/* Reverse the octal string */</span></div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">for</span> (i = 0; i < len / 2; i++)</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">char</span> tmp = octal[i];</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  octal[i] = octal[len - i - 1];</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  octal[len - i - 1] = tmp;</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  </div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">return</span> octal;</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span>{</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#define MAX_OCT_STR_LEN 23 </span><span class="comment">/* 17_7777_7777_7777_7777_7777 */</span><span class="preprocessor"></span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">static</span> <span class="keywordtype">char</span> octal[MAX_OCT_STR_LEN];</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> memset(octal, <span class="charliteral">'\0'</span>, MAX_OCT_STR_LEN); <span class="comment">// Initialize as NULL string</span></div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> decimal = 0;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keywordtype">int</span> i = 0;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">int</span> len;</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">if</span> (hex == NULL)</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> {</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="comment">// Return an empty string</span></div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">return</span> octal;</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> }</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="comment">/* Hexadecimal to decimal conversion */</span></div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">while</span> (*hex != <span class="charliteral">'\n'</span> && *hex != <span class="charliteral">'\0'</span>)</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> {</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordtype">char</span> ch = *hex;</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">if</span> (ch >= <span class="charliteral">'0'</span> && ch <= <span class="charliteral">'9'</span>)</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> {</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> ch -= <span class="charliteral">'0'</span>;</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> }</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ch >= <span class="charliteral">'a'</span> && ch <= <span class="charliteral">'f'</span>)</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> {</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> ch = ch - <span class="charliteral">'a'</span> + 10;</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> }</div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ch >= <span class="charliteral">'A'</span> && ch <= <span class="charliteral">'F'</span>)</div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> {</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> ch = ch - <span class="charliteral">'A'</span> + 10;</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> {</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> printf(<span class="stringliteral">"Invalid hexadecimal input: %c\n"</span>, ch);</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">break</span>;</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> }</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> decimal *= 16;</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> decimal += ch;</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> hex++;</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">/* Decimal to octal conversion */</span></div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">if</span> (decimal == 0)</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> {</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> octal[0] = <span class="charliteral">'0'</span>;</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> len = 1;</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> }</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">else</span></div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> {</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> i = 0;</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">while</span> (decimal > 0)</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> {</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> octal[i] = <span class="charliteral">'0'</span> + decimal % 8;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> i++;</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> decimal /= 8;</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> }</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> len = i;</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> octal[len] = <span class="charliteral">'\0'</span>;</div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="comment">/* Reverse the octal string */</span></div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">for</span> (i = 0; i < len / 2; i++)</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> {</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">char</span> tmp = octal[i];</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> octal[i] = octal[len - i - 1];</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> octal[len - i - 1] = tmp;</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> }</div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">return</span> octal;</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -254,22 +253,22 @@ Functions</h2></td></tr>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> {</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="preprocessor">#define MAX_HEX_STR_LEN 17 </span><span class="comment">/* FFFF_FFFF_FFFF_FFFF */</span><span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">char</span> hex[MAX_HEX_STR_LEN];</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">/* Input hexadecimal number from user */</span></div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  printf(<span class="stringliteral">"Enter any hexadecimal number: "</span>);</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  fgets(hex, MAX_HEX_STR_LEN, stdin);</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *octal = <a class="code" href="../../d0/dd9/hexadecimal__to__octal2_8c.html#a4d7524efe6e2917b3674445b7269906b">hex_to_oct</a>(hex);</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  printf(<span class="stringliteral">"Hexadecimal number = %s\n"</span>, hex);</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  printf(<span class="stringliteral">"Octal number = %s\n"</span>, octal);</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> }</div>
|
||||
<div class="ttc" id="ahexadecimal__to__octal2_8c_html_a4d7524efe6e2917b3674445b7269906b"><div class="ttname"><a href="../../d0/dd9/hexadecimal__to__octal2_8c.html#a4d7524efe6e2917b3674445b7269906b">hex_to_oct</a></div><div class="ttdeci">const char * hex_to_oct(const char *hex)</div><div class="ttdoc">for printf() and fgets()</div><div class="ttdef"><b>Definition:</b> hexadecimal_to_octal2.c:24</div></div>
|
||||
<div class="fragment"><div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span>{</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span><span class="preprocessor">#define MAX_HEX_STR_LEN 17 </span><span class="comment">/* FFFF_FFFF_FFFF_FFFF */</span><span class="preprocessor"></span></div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">char</span> hex[MAX_HEX_STR_LEN];</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="comment">/* Input hexadecimal number from user */</span></div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> printf(<span class="stringliteral">"Enter any hexadecimal number: "</span>);</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> fgets(hex, MAX_HEX_STR_LEN, stdin);</div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *octal = <a class="code hl_function" href="../../d0/dd9/hexadecimal__to__octal2_8c.html#ab83549c0d43c88544be47fa6c4885ae4">hex_to_oct</a>(hex);</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> printf(<span class="stringliteral">"Hexadecimal number = %s\n"</span>, hex);</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> printf(<span class="stringliteral">"Octal number = %s\n"</span>, octal);</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span>}</div>
|
||||
<div class="ttc" id="ahexadecimal__to__octal2_8c_html_ab83549c0d43c88544be47fa6c4885ae4"><div class="ttname"><a href="../../d0/dd9/hexadecimal__to__octal2_8c.html#ab83549c0d43c88544be47fa6c4885ae4">hex_to_oct</a></div><div class="ttdeci">const char * hex_to_oct(const char *hex)</div><div class="ttdoc">for printf() and fgets()</div><div class="ttdef"><b>Definition:</b> hexadecimal_to_octal2.c:24</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -279,7 +278,7 @@ Functions</h2></td></tr>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9babc524d57e25f3d9f4179cabc3599e.html">conversions</a></li><li class="navelem"><a class="el" href="../../d0/dd9/hexadecimal__to__octal2_8c.html">hexadecimal_to_octal2.c</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
var hexadecimal__to__octal2_8c =
|
||||
[
|
||||
[ "MAX_HEX_STR_LEN", "d0/dd9/hexadecimal__to__octal2_8c.html#ab64e6838b9026996a18766d334beea20", null ],
|
||||
[ "MAX_OCT_STR_LEN", "d0/dd9/hexadecimal__to__octal2_8c.html#ad47196c6a06f99a1437e9569bae13c5f", null ],
|
||||
[ "hex_to_oct", "d0/dd9/hexadecimal__to__octal2_8c.html#a4d7524efe6e2917b3674445b7269906b", null ],
|
||||
[ "hex_to_oct", "d0/dd9/hexadecimal__to__octal2_8c.html#ab83549c0d43c88544be47fa6c4885ae4", null ],
|
||||
[ "main", "d0/dd9/hexadecimal__to__octal2_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ]
|
||||
];
|
||||
@@ -2,8 +2,8 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C: hash_set_t Struct Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/df1/structhash__set__t.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -92,23 +92,22 @@ $(document).ready(function(){initNavTree('d0/df1/structhash__set__t.html','../..
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-attribs">Data Fields</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">hash_set_t Struct Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">hash_set_t Struct Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
||||
Data Fields</h2></td></tr>
|
||||
<tr class="memitem:a6f21e4fb262dbabac311dadc7936aa68"><td class="memItemLeft" align="right" valign="top"><a id="a6f21e4fb262dbabac311dadc7936aa68"></a>
|
||||
<tr class="memitem:a6f21e4fb262dbabac311dadc7936aa68"><td class="memItemLeft" align="right" valign="top"><a id="a6f21e4fb262dbabac311dadc7936aa68" name="a6f21e4fb262dbabac311dadc7936aa68"></a>
|
||||
unsigned </td><td class="memItemRight" valign="bottom"><b>capacity</b></td></tr>
|
||||
<tr class="separator:a6f21e4fb262dbabac311dadc7936aa68"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5fd11ba3c74b2cc7fd161696fb951b82"><td class="memItemLeft" align="right" valign="top"><a id="a5fd11ba3c74b2cc7fd161696fb951b82"></a>
|
||||
<tr class="memitem:a5fd11ba3c74b2cc7fd161696fb951b82"><td class="memItemLeft" align="right" valign="top"><a id="a5fd11ba3c74b2cc7fd161696fb951b82" name="a5fd11ba3c74b2cc7fd161696fb951b82"></a>
|
||||
unsigned </td><td class="memItemRight" valign="bottom"><b>length</b></td></tr>
|
||||
<tr class="separator:a5fd11ba3c74b2cc7fd161696fb951b82"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a66e37043817e37030d2e49fd5bf81d7f"><td class="memItemLeft" align="right" valign="top"><a id="a66e37043817e37030d2e49fd5bf81d7f"></a>
|
||||
<tr class="memitem:a66e37043817e37030d2e49fd5bf81d7f"><td class="memItemLeft" align="right" valign="top"><a id="a66e37043817e37030d2e49fd5bf81d7f" name="a66e37043817e37030d2e49fd5bf81d7f"></a>
|
||||
void ** </td><td class="memItemRight" valign="bottom"><b>values</b></td></tr>
|
||||
<tr class="separator:a66e37043817e37030d2e49fd5bf81d7f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1b52c6b78642e398f574c2ec9ed22e8a"><td class="memItemLeft" align="right" valign="top"><a id="a1b52c6b78642e398f574c2ec9ed22e8a"></a>
|
||||
<tr class="memitem:a1b52c6b78642e398f574c2ec9ed22e8a"><td class="memItemLeft" align="right" valign="top"><a id="a1b52c6b78642e398f574c2ec9ed22e8a" name="a1b52c6b78642e398f574c2ec9ed22e8a"></a>
|
||||
void ** </td><td class="memItemRight" valign="bottom"><b>keys</b></td></tr>
|
||||
<tr class="separator:a1b52c6b78642e398f574c2ec9ed22e8a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
@@ -121,7 +120,7 @@ void ** </td><td class="memItemRight" valign="bottom"><b>keys</b></td></tr>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d0/df1/structhash__set__t.html">hash_set_t</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.1 </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.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
var structhash__set__t =
|
||||
[
|
||||
[ "capacity", "d0/df1/structhash__set__t.html#a6f21e4fb262dbabac311dadc7936aa68", null ],
|
||||
[ "keys", "d0/df1/structhash__set__t.html#a1b52c6b78642e398f574c2ec9ed22e8a", null ],
|
||||
[ "length", "d0/df1/structhash__set__t.html#a5fd11ba3c74b2cc7fd161696fb951b82", null ],
|
||||
[ "values", "d0/df1/structhash__set__t.html#a66e37043817e37030d2e49fd5bf81d7f", null ]
|
||||
];
|
||||
@@ -1,5 +1,5 @@
|
||||
<map id="data_structures/binary_trees/threaded_binary_trees.c" name="data_structures/binary_trees/threaded_binary_trees.c">
|
||||
<area shape="rect" id="node1" title="This file is a simple implementation of a Threaded Binary Tree." alt="" coords="5,5,160,61"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="9,109,71,136"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="95,109,159,136"/>
|
||||
<area shape="rect" id="node1" title="This file is a simple implementation of a Threaded Binary Tree." alt="" coords="5,5,164,61"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="11,109,73,136"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="97,109,161,136"/>
|
||||
</map>
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
<?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.46.1 (20210213.1702)
|
||||
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
|
||||
-->
|
||||
<!-- Title: data_structures/binary_trees/threaded_binary_trees.c Pages: 1 -->
|
||||
<svg width="124pt" height="106pt"
|
||||
viewBox="0.00 0.00 124.00 106.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="127pt" height="106pt"
|
||||
viewBox="0.00 0.00 127.00 106.00" 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 102)">
|
||||
<title>data_structures/binary_trees/threaded_binary_trees.c</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-102 120,-102 120,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-102 123,-102 123,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="This file is a simple implementation of a Threaded Binary Tree.">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-97.5 116,-97.5 116,-56.5 0,-56.5"/>
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-97.5 119,-97.5 119,-56.5 0,-56.5"/>
|
||||
<text text-anchor="start" x="8" y="-85.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures/binary</text>
|
||||
<text text-anchor="start" x="8" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">_trees/threaded_binary</text>
|
||||
<text text-anchor="middle" x="58" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_trees.c</text>
|
||||
<text text-anchor="middle" x="59.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">_trees.c</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -24,31 +24,31 @@
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="3,-0.5 3,-19.5 49,-19.5 49,-0.5 3,-0.5"/>
|
||||
<text text-anchor="middle" x="26" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="4.5,-0.5 4.5,-19.5 50.5,-19.5 50.5,-0.5 4.5,-0.5"/>
|
||||
<text text-anchor="middle" x="27.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdio.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M48.4,-56.5C44.06,-47.68 38.97,-37.34 34.74,-28.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="37.82,-27.08 30.26,-19.65 31.54,-30.17 37.82,-27.08"/>
|
||||
<path fill="none" stroke="midnightblue" d="M49.9,-56.5C45.56,-47.68 40.47,-37.34 36.24,-28.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="39.32,-27.08 31.76,-19.65 33.04,-30.17 39.32,-27.08"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:title=" ">
|
||||
<polygon fill="white" stroke="#bfbfbf" points="67,-0.5 67,-19.5 115,-19.5 115,-0.5 67,-0.5"/>
|
||||
<text text-anchor="middle" x="91" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdlib.h</text>
|
||||
<polygon fill="white" stroke="#bfbfbf" points="68.5,-0.5 68.5,-19.5 116.5,-19.5 116.5,-0.5 68.5,-0.5"/>
|
||||
<text text-anchor="middle" x="92.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">stdlib.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M67.9,-56.5C72.38,-47.68 77.63,-37.34 81.99,-28.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="85.2,-30.15 86.61,-19.65 78.96,-26.98 85.2,-30.15"/>
|
||||
<path fill="none" stroke="midnightblue" d="M69.4,-56.5C73.88,-47.68 79.13,-37.34 83.49,-28.74"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="86.7,-30.15 88.11,-19.65 80.46,-26.98 86.7,-30.15"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |