Expand description
Experiment embeddings for optical mask + detector frame (ADR-260 §12).
A 32-dimensional L2-normalised embedding is built by concatenating:
- 16 bins from
PhaseMask::phase_histogram(mask signature) - 16 bins from
frame_spectrum_embedding(detector frame signature)
The same dimensionality is used for mask-only embeddings (just the histogram, padded to 32 dims with zeros) so every embedding lives in the same inner-product space.
Constants§
- EMBED_
DIM - Total embedding dimension.
- FRAME_
BINS - Number of spectrum bins contributed by the frame half.
- MASK_
BINS - Number of histogram bins contributed by the mask half.
Functions§
- experiment_
embedding - Build the full 32-dim experiment embedding from a mask + detector frame.
- l2_
normalize - Normalise a mutable slice to unit L2 norm (in-place). No-op when all-zero.
- mask_
embedding - Build a mask-only embedding (32 dims: histogram + 16 zeros), L2-normalised.