Crate hypervector

Source
Expand description

§Hypervector Crate

This crate implements high-dimensional vectors for hyperdimensional computing and Vector Symbolic Architectures (VSAs). It currently provides two implementations:

  • MBAT: Bipolar vectors (elements in {-1, +1}).
  • SSP: Semantic Spatial Parameters (implemented in a separate module).

Core components such as a global RNG, the VSA trait, and a generic Hypervector type are defined here.

Modules§

encoder
Object Encoder Module
fhrr
FHRR Module
mbat
MBAT Module
ssp
Spatial Semantic Pointer (SSP) Module

Structs§

Hypervector
A generic hypervector type parameterized over a VSA implementation.

Enums§

TieBreaker
Options for tie-breaking during the bundling operation.

Traits§

VSA
The VSA trait defines the interface for a Vector Symbolic Architecture. New VSA implementations (such as SSP, MBAT, or FHRR) can be added by implementing this trait.

Functions§

set_global_seed
Sets the seed for the global RNG. This affects all hypervector generation and operations that use the global RNG.