Expand description
Test data generators for VSA vectors and test datasets
Provides utilities to generate:
- Random sparse vectors with controlled sparsity
- Deterministic vectors for reproducible testing
- Noise patterns and synthetic data
- Test helper functions for VSA operations
Functionsยง
- deterministic_
sparse_ vec - Generate a deterministic sparse vector using LCG for reproducibility
- generate_
binary_ blob - Generate synthetic binary blob (executable-like pattern)
- generate_
gradient_ pattern - Generate synthetic gradient pattern (useful for image-like data)
- generate_
noise_ pattern - Generate synthetic noise pattern using LCG
- mk_
random_ sparsevec - Alias for
random_sparse_vecfor backwards compatibility - random_
sparse_ vec - Generate a random sparse vector with specified dimensions and sparsity
- sparse_
dot - Compute sparse ternary dot product: (pp + nn) - (pn + np)