Startseite › Datentypen › H-Lib-Container Hilfe zum PBXB64-Compiler

H-Lib Bloom Filter

A space-efficient probabilistic membership structure for LONG keys. False positives are possible; false negatives are not.

Kategorie: H-Lib-Container | Zertifizierung: [ZERTIFIZIERT GETESTET]

Beschreibung

A space-efficient probabilistic membership structure for LONG keys. False positives are possible; false negatives are not.

Kind: Container | Category: H-Lib Native Containers

PBXB64 Status: AVAILABLE

PBXB64 Certification: [CERTIFIED TESTED]

Description

This H-Lib container is implemented in native C support code and exposed through PBXB64 BASIC container syntax. The examples below are focused usage patterns; keep handles valid, release each container with its Final method, and check counts or return values when a method can fail.

Methods

MethodSignatureReturnsDescription
Newb.New capacity, target_fppLNBLOOMAllocate a filter for the expected item count and target false-positive probability.
Finalb.FinalnoneFree the filter.
Validateb.ValidateLONGNon-zero if the handle is valid.
Clearb.ClearnoneRemove all inserted keys.
Countb.CountLONGNumber of keys added.
Capacityb.CapacityLONGExpected maximum item count.
Addb.Add keynoneInsert a key.
Containsb.Contains keyLONGNon-zero if the key may be present.
FalsePositiveRateb.FalsePositiveRateDOUBLEEstimated current false-positive rate.
ErrorRateb.ErrorRateDOUBLEKonfigurierte Zielrate für falsch-positive Ergebnisse.
Emptyb.EmptyLONGUngleich Null, wenn noch kein Schlüssel hinzugefügt wurde.
Trimb.TrimnoneNormalisiert den internen Speicher.
Cloneb.CloneLNBLOOMGibt eine unabhängige Kopie des Filters zurück.

Validation Evidence

Validation evidence: H-Lib container behavior is exercised by registered BASIC container validation programs and the embedded H-Lib object set used by the single-EXE validation gate.

PBXB64-Prüfung

Diese Referenzseite soll durch ein fokussiertes Compile- oder Laufzeitbeispiel belegt sein. Das Beispiel soll Eingaben, erwartete Ausgabe oder Exit-Code und erforderliche Windows-Ressourcen oder Include-Dateien nennen.

Übersichtshinweise

Allgemeine Übersichtsseiten sollten trotzdem sagen, welche Familie gemeint ist, welche konkreten Befehlsseiten die Implementierung tragen und welche Formen nur der Navigation dienen. So bleibt die Seite detailliert genug, ohne so zu tun, als wäre sie eine vollständige Befehlsreferenz.

Beispiel

LOCAL b AS LNBLOOM
LOCAL fpr AS DOUBLE
b = b.New 1000, 0.01
b.Add 42
PRINT b.Contains 42 ' non-zero
fpr = b.FalsePositiveRate
b.Final