Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/hap/www/SideLinks/About/   (GAP Algebra Version 4.15.1©)  Datei vom 19.6.2025 mit Größe 8 kB image not shown  

Quelle  aboutMetrics.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/GAP/pkg/hap/www/SideLinks/About/aboutMetrics.html


<!OCTYPEPUBLIC "/DTD HTML .01/EN"
<html>
<head>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title>AboutHap</FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
</head>
<body
 style="color: rgb(0, 0, 153); background-color: rgb(204, 255, 255);"
 link="#000066" "#" "000066">
<br>
<table
 style="text-align: left; margin-left: auto; margin-right: auto; color: rgb(0, 0, 102);"
 border="0" cellpadding="20" cellspacing="10">
  <tbody>
    <tr align="center">
      <th style="vertical-align: top;">
      <table style="width: 000064000064000064000064000064000064000064000064
 cellspacing="2">
        <tbody>
          <tr>
            <td style="vertical
 href="aboutPersistent.html"><small style="color: rgb(0, 0, 102);">Previous</small></a000064000064
            </td>
            <td
 style="java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
 style="font-weight: bold;">About HAP: Metric Spaces<br>
            </span></big></td>
            <td style="text-align: right; vertical-align: top;"><a
 href="
            </td>
          </tr>
        </tbody>
      </table>
      <big><span style="font-weight: bold;"></span></big><br>
      </th>
    </tr>
    <tr align="center">
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 255);"><big><span
 style="font-weight: bold;">1. Metrics on Vectors</span></big><br>
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 255); text-align: left;">The










      <a href="data.txt">data file</a> contains a list L of
400 vectorsi in <span style="font-weight: bold;">R</span><sup>3</sup>.
The followingcommandsproduce  400times400  whose
(i,j)-entry is the Manhattan distance between L[i] and L[j].
(Alternative choices java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 72
Hamming metric.)<br>
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
ReadPackage("hap","www/SideLinks/About/data.txt"); 000064000064000064000064000064000064000064000064000064000064000064000064
#This
reads
in
the
list
L<br>
gap> S:=VectorsToSymmetricMatrix(L,ManhattanMetricF
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 255);">The
followingusesjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 71
400
vertices with edge between i and j precisely when <br>
      <br>
      <div style="text-java.lang.StringIndexOutOfBoundsException: Range [72, 66) out of bounds for length 72
      </div>
      <br>
where M is the maximum value of the entries in S. Thus the java.lang.StringIndexOutOfBoundsException: Range [72, 70) out of bounds for length 72
should be chosen in the range from 0 to 100. We choose FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
choose to give the first 200 vertices a common colour distinct from the
remainingvertices. Theshowsthatjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 69
in one path-component of G(S,8), and the remaining 200 vertices lie in
a second path-component. Each path-component "has the shape" of a
cylinder
or annulus. <br>
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 204);">gap>
SymmetricMatDisplay(S,8,
[
[1..200],
[201..400]
]
);<br>
      <br>
      <div style="text-align: center;"><img
 style="width: 600px; height: 284
      </div>
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgb(F
following commands construct the graph G=G(S,10) and then display it. <br>
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgb(255java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
M; &;n; & &bsp;nbsp;&;&;nbsp;n n&bsp;n&&&&bsp;nbsp&;n;n&bsp&bsp&bsp&bsp;  n&bsp&bsp;nbsp;nbsp;n&bsp&bsp; nbsp;&; &bsp;bsp;;







      <br>
gap> G:=SymmetricMatrixToGraph(S,10*M/100); <br>
Graph on 400 vertices.<br>
      <br>
gap>
GraphDisplay(G);<br>
      <div style="text-align: center;"><img
 style="width: 384px; height: 347px;" alt="" src="400graph.gif"><br>
      </div>
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 255);">We
java.lang.StringIndexOutOfBoundsException: Range [24, 3) out of bounds for length 76
of G to mean the simplicial complex
NG which has the same vertices and edges as G; a collection of vertices
is a 
is connected by an edge in G. The following commands determine a
subgraph in Gsuch that  nerves java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 70
equivalent. The commands replace G by H and then display the subgraph. </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 204);">gap>
ContractGraph(G);;<br>
gap> G;<br>
Graph on 248 vertices.<br>
      <br>
gap> GraphDisplay(G);<br>
      <div style="text-align: center;"><img
 style="width: 384px; height: 178FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000064000064000064000064000064000064000064
 src="400contractedgraph.gif"><br>
      </div>
      </td>
    </tr>
    <000064FF
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 255);">The
following commands java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
methods for calculating the low-dimensional homology of NG. The second
method is more efficient in degrees 0 and 1 but has000064000064000064000064
implemented in higher degrees.<br>
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-color: rgbF
#Method
One<br>
gap> NG:=SimplicialNerveOfGraph(G,3);;FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000064000064000064000064FFFFFFFFFFFF
gap> NG:=SimplicialComplexToRegularCWComplex(NG);<br>
Regular CW-complex of dimension 3<br>
gap> Homology(NG,0);<br>
00 ]<br>
gap> Homology(NG,1);<br>
00 ]<br>
      <br>
gap> #Method Two<br>
gap> C:=RipsChainComplex(G,1);<br>
Sparse chain 
      <br>
gap> Bettinumbers(C,0);<br>
2<br>
gap> Bettinumbers(C,1);<br>
2<br>
      </td>
    </tr>
    <tr align="center">
      <td
 style="vertical-align: top; background-color: rgb(255, 255, 255);"><big><span
 style="font-weight: bold;">2.
      </td>
    </tr>
    <tr>
      <td
 style="vertical-align: top; background-colorF00064000064
are
a
number of standard metrics d(x,y) on permutations x, y <sub> </java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
as
the064000064000064000064000064000064000064000064000064000064000064000064
transpositions (i,i+1) needed to express x*y^-1), the Cayley metric (=
number 
Hamming metric (= #{ i :  x*y^-1(i) differs from i  } ). The
following 2-subgroup  <sub>0<sub> with
respect to the Cayley metric.<br>
      </td>
    </tr>
    <tr>
      <td
 style=vertical-:top; color rgb(55  204;>java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
G:=SymmetricGroup(10);;     java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72


      <br>
gap> P:=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
gap> P:=Elements(P);;<br>
gap> S:=NullMat(Size(P),Size(
gap> for i in [1..Size(P)] do<br>
> for FFFFFFFFFF
S[i][j]:=CayleyMetric(P[i],P[j],10);<br>
FFFFFFFFFFFFFFF
gap> SymmetricMatDisplay(S,50);<br>
      <div style="text-align: center;"
      <img style="width: 355px; height: 384px;" alt=""
 java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 24
      <div style="text-align: left;"><br>
gap> SymmetricMatDisplay(S,15);<br>
      <br>
      <div style="text-align: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
 style="width: 355px; height: 384px;" alt="" src="sylowS1015.gif"><br>
      </divFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
      </div>
      </div>
      </td>
    </tr>
    <tr>
      
      <table
 style="margin-left: auto; margin-right: auto; width: 100%; text-align: left;"
 border="0" cellpadding="2" cellspacing="2">
        <tbody>
          <r>
            <td style="vertical-align: top;"><a
 style="color: rgb(0, 0, 102);" href
Page</a><br>
            </td>
            <td style="
 href="aboutContents.html"><span style="color: rgb(0, 0, 102);">Contents</span></a><br>
            </td>
            <td style="text-align: right; vertical-align: top;"><a
 href="aboutTDA.html"><span style=000064
page</span><br>
            </a> </td>
          </tr>
        <
      </table>
      <a href="aboutTopology.html"><br>
      </a> </td>
    </tr>
  </tbody>
</table>
<br>
<br>
</body>
</html>

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.