MCPcopy Create free account
hub / github.com/Raibows/MLinRust / minkowski_distance

Function minkowski_distance

src/model/utils.rs:7–20  ·  view source on GitHub ↗

known as: p = 1.0: manhattan distance p = 2.0: euclidean distance p ~ 80.0: infinity

(x: &Vec<f32>, y: &Vec<f32>, p: f32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

recursive_nearestMethod · 0.85
nearestMethod · 0.85
newMethod · 0.85
predictMethod · 0.85

Calls 2

maxFunction · 0.85
lenMethod · 0.80

Tested by

no test coverage detected