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

Quelle  1.3.3.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#ED
gap> START_TEST("HAP library");
gap> dir:=Filename(DirectoriesPackageLibrary("HAP","tst/examples"),"image1.3.3.png");;
gap> t:=ReadImageAsPureCubicalComplex(dir,"matrix");;
gap> t:=Int((3/10)*Maximum(Flat(t)));;
gap> M:=ReadImageAsPureCubicalComplex(dir,t);;
gap> while BettiNumber(PureComplexComplement(M),0)>1 do
> M:=ThickenedPureComplex(M);
> od;;
gap> F:=ConcentricFiltration(ComplementOfPureComplex(M),10);
Filtered pure cubical complex of dimension 2.

gap> P:=PersistentBettiNumbers(F,0);
[ [ 00000000000000 ], 
  [ 01111111111111 ], 
  [ 00222221111111 ], 
  [ 00055554444441 ], 
  [ 00005554444441 ], 
  [ 00000554444441 ], 
  [ 00000054444441 ], 
  [ 00000005555551 ], 
  [ 00000000555551 ], 
  [ 00000000055551 ], 
  [ 00000000005551 ], 
  [ 00000000000551 ], 
  [ 00000000000051 ], 
  [ 00000000000001 ] ]
gap> #BarCodeCompactDisplay(P);;
gap> STOP_TEST( "tst.tst", 1000 );



[Dauer der Verarbeitung: 0.16 Sekunden, vorverarbeitet 2026-06-29]