Module angular

Module angular 

Source
Expand description

Angular and hyperspherical embeddings with π phase encoding

Many embedding tricks quietly reduce to angles. Cosine similarity is literally angle-based.

Using π explicitly:

  • Map vectors to phase space
  • Encode direction as multiples of π
  • Track angular velocity instead of Euclidean distance

This is extremely friendly to 5-bit and 7-bit systems because:

  • Angles saturate naturally
  • Wraparound is meaningful
  • Overflow becomes topology, not error

That is exactly how biological systems avoid numeric explosion.

Structs§

AngularEmbedding
Angular embedding projector
HypersphericalProjection
Hyperspherical projection for high-dimensional embeddings
PhaseEncoder
Phase encoder for quantized values