BinaryHypervectors

Documentation for BinaryHypervectors.

Base.:*Method
Base.:*(x::BitVector, y::BitVector)

Binds two bit vectors. Equivalent to bind(x, y).

source
Base.:+Method
Base.:+(x::BitVector, y::BitVector)

Bundle two bit vectors. Equivalent to bundle(x, y).

source
Base.bindMethod
bind(x, y)

Bind two vectors using XOR. Applied efficiently by exploiting the chunk structure of BitVectors.

source
Base.circshiftFunction
Base.circshift(x::BinaryHypervector, n)

Permute the BinaryHypervector by performing the circular shift n bits to the right.

source
BinaryHypervectors.bundleMethod
bundle(vecs...)

Bundle vectors using majority rule. Ties broken deterministically using the rule from Hannagan et al. (2011, CogSci).

source
BinaryHypervectors.sequence_encodingFunction
sequence_encoding(seqlen, ndim=2^13)

Create correlated sequence encodings with seqlen elements. Each BinaryHypervector in the returned list is correlated with its immediate neighbors, but the correlation drops with distance.

source