rabitq/consts.rs
1//! Constants used in the program.
2
3/// Default value when the x dot product is divided by zero.
4pub const DEFAULT_X_DOT_PRODUCT: f32 = 0.8;
5/// $\epsilon$ in the paper.
6pub const EPSILON: f32 = 1.9;
7/// Asymmetric factor.
8pub const THETA_LOG_DIM: u32 = 4;
9/// Scalar value.
10pub const SCALAR: f32 = 1.0 / ((1 << THETA_LOG_DIM) as f32 - 1.0);
11/// Heuristic window size.
12pub const WINDOW_SIZE: usize = 12;