pub fn dequantize_binary(qv: &QuantizedVector) -> Result<Vector, QuantError>Expand description
Dequantizes a binary quantized vector back to f32
Converts each bit back to either +1.0 or -1.0:
- Bit = 1 → +1.0 (above mean)
- Bit = 0 → -1.0 (below mean)
This creates a normalized vector suitable for similarity comparison.
§Arguments
qv- The quantized vector to dequantize
§Returns
Ok(Vector)- Restored f32 vector with normalized valuesErr(QuantError)- If dequantization fails