Skip to content

Array distance: dist_arr.*

bray_curtis

bray_curtis(other: IntoExpr) -> pl.Expr

Returns bray_curtis distance between two vectors

canberra

canberra(other: IntoExpr) -> pl.Expr

Returns canberra distance between two vectors

chebyshev

chebyshev(other: IntoExpr) -> pl.Expr

Returns chebyshev distance between two vectors

cosine

cosine(other: IntoExpr) -> pl.Expr

Returns cosine distance between two vectors

euclidean

euclidean(other: IntoExpr) -> pl.Expr

Returns euclidean distance between two vectors

l3_norm

l3_norm(other: IntoExpr) -> pl.Expr

Returns l3_norm distance between two vectors

l4_norm

l4_norm(other: IntoExpr) -> pl.Expr

Returns l4_norm distance between two vectors

manhatten

manhatten(other: IntoExpr) -> pl.Expr

Returns manhatten distance between two vectors

minkowski

minkowski(other: IntoExpr, p: int) -> pl.Expr

Returns minkowski distance between two vectors