Skip to main content

score_property

Function score_property 

Source
pub fn score_property(
    metric: DistanceMetric,
    query: &[f32],
    query_norm: f32,
    value: &PropertyValue,
) -> Option<f32>
Expand description

Score a vector-shaped property against a query without allocating in the common FloatArray case (zero-copy slice scoring). Returns None if the property is not vector-shaped or its dimension does not match the query.