Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 5e1854624d3bc613bdd0dd13d1ef9ac7 > files > 492

gap-system-4.4.12-5mdv2010.0.i586.rpm

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>GAP (HAP) - Chapter 23:  Topological Data Analysis</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<link rel="stylesheet" type="text/css" href="manual.css" />
</head>
<body>


<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chap10.html">10</a>  <a href="chap11.html">11</a>  <a href="chap12.html">12</a>  <a href="chap13.html">13</a>  <a href="chap14.html">14</a>  <a href="chap15.html">15</a>  <a href="chap16.html">16</a>  <a href="chap17.html">17</a>  <a href="chap18.html">18</a>  <a href="chap19.html">19</a>  <a href="chap20.html">20</a>  <a href="chap21.html">21</a>  <a href="chap22.html">22</a>  <a href="chap23.html">23</a>  <a href="chap24.html">24</a>  <a href="chap25.html">25</a>  <a href="chapInd.html">Ind</a>  </div>

<div class="chlinkprevnexttop">&nbsp;<a href="chap0.html">Top of Book</a>&nbsp;  &nbsp;<a href="chap22.html">Previous Chapter</a>&nbsp;  &nbsp;<a href="chap24.html">Next Chapter</a>&nbsp;  </div>

<p><a id="X7B7E077887694A9F" name="X7B7E077887694A9F"></a></p>
<div class="ChapSects"><a href="chap23.html#X7B7E077887694A9F">23. <span class="Heading"> Topological Data Analysis</span></a>
</div>

<h3>23. <span class="Heading"> Topological Data Analysis</span></h3>

<div class="pcenter"><table class="GAPDocTable">
<tr>
<td class="tdleft"><code class="code"> MatrixToTopologicalSpace(A,n)</code></p>

<p>Inputs an integer matrix A and an integer n. It returns a 2-dimensional topological space corresponding to the black/white image determined by the threshold n and the values of the pixels in A.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> ReadImageAsTopologicalSpace("file.png",n)</code> <code class="code"> ReadImageAsTopologicalSpace("file.png",[m,n])</code></p>

<p>Reads an image file ("file.png", "file.eps", "file.bmp" etc) and an integer n or pair [m,n] of integers between 0 and 765. It returns a topological space based on the black/white version of the image determined by the threshold n or threshold range [m,n].</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> ReadImageAsMatrix("file.png")</code></p>

<p>Reads an image file ("file.png", "file.eps", "file.bmp" etc) and returns an integer matrix whose entries are the sum of the RGB values of the pixels in the image.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> WriteTopologicalSpaceAsImage(T,"filename","ext")</code></p>

<p>Inputs a 2-dimensional topological space T, and a filename followed by its extension (e.g. "myfile" followed by "png"). A black/white image is saved to the file.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> ViewTopologicalSpace(T)</code> <code class="code"> ViewTopologicalSpace(T,"mozilla")</code></p>

<p>Inputs a topological space T, and optionally a command such as "mozilla" for viewing image files. A black/white image is displayed.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> Bettinumbers(T,n)</code> <code class="code"> Bettinumbers(T)</code></p>

<p>Inputs a topological space T and a non-negative integer n. It returns the n-th betti number of T. If the integer n is not input then a list of all betti numbers is returned.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> PathComponent(T,n)</code></p>

<p>Inputs a topological space T and an integer n in the rane 0, ..., Bettinumbers(T,0) . It returns the n-th path component of T as a topological space.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> SingularChainComplex(T)</code></p>

<p>Inputs a topological space T and returns a (usually very large) integral chain complex that is homotopy equivalent to the singular chain complex of T.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> ContractTopologicalSpace(T)</code></p>

<p>Inputs a topological space T of dimension d and removes d-dimensional cells from T without changing the homotopy type of T. When the function has been applied, no further d-cells can be removed from T without changing the homotopy type.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> BoundaryTopologicalSpace(T)</code></p>

<p>Inputs a topological space T and returns its boundars as a topological space.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> BoundarySingularities(T)</code></p>

<p>Inputs a topological space T and returns the subspace of points in the boundary where the boundary is not differentiable. (The method for deciding differentiability at a point is crude/discrete and prone to errors.) The zeroth betti number of the set of points is a measure of the number of "corners" in the boundary of T.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> ThickenedTopologicalSpace(T)</code> <code class="code"> ThickenedTopologicalSpace(T,n)</code></p>

<p>Inputs a topological space T and returns a topological space S. If a euclidean point is in T then this point and all its perpendicularly neighbouring euclidean points are included in S.</p>

<p>If a positive integer n is input as a second argument then the thickening process is repeated n times.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> ComplementTopologicalSpace(T)</code></p>

<p>Inputs a topological space T and returns a topological space S. A euclidean point is in S precisely when the point is not in T.</td>
</tr>
<tr>
<td class="tdleft"><code class="code"> ConcatenatedTopologicalSpace(L)</code></p>

<p>Inputs a list L of topological spaces whose underlying arrays of numbers all have equal dimensions. It returns a topological space T got by juxtaposing the spaces L[1], L[2], ..., L[Length(L)].</td>
</tr>
</table><br /><p>&nbsp;</p><br />
</div>


<div class="chlinkprevnextbot">&nbsp;<a href="chap0.html">Top of Book</a>&nbsp;  &nbsp;<a href="chap22.html">Previous Chapter</a>&nbsp;  &nbsp;<a href="chap24.html">Next Chapter</a>&nbsp;  </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chap10.html">10</a>  <a href="chap11.html">11</a>  <a href="chap12.html">12</a>  <a href="chap13.html">13</a>  <a href="chap14.html">14</a>  <a href="chap15.html">15</a>  <a href="chap16.html">16</a>  <a href="chap17.html">17</a>  <a href="chap18.html">18</a>  <a href="chap19.html">19</a>  <a href="chap20.html">20</a>  <a href="chap21.html">21</a>  <a href="chap22.html">22</a>  <a href="chap23.html">23</a>  <a href="chap24.html">24</a>  <a href="chap25.html">25</a>  <a href="chapInd.html">Ind</a>  </div>

<hr />
<p class="foot">generated by <a href="http://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>