Skip to main content

KNN

CLASSDISTANCES

classdistances(Vector of Number x, Function disfn, Bag of (Object, Vector of Number))->Bag of (Number, Object)
STABLE

No description.


classdistances(Array x, Function disfn, Bag of (Object, Array))->Bag of (Number, Object)
STABLE

No description.


DISTANCE

distance(Vector of Number x, Function disfn, Vector of Number y) -> Number
STABLE

Compute the distance between x and y

 using the distance function `disfn(x,y)` 

distance(Array x, Function disfn, Array y) -> Number
STABLE

Compute the distance between x and y

 using the distance function `disfn(x,y)` 

KNN

knn(Array x, Integer k, Function fn) -> Bag
STABLE

No description.


K_NEAREST

k_nearest(Vector of Number x, Integer k, Function disfn, Bag of (Object, Vector of Number))->Bag of (Object, Object)
STABLE

No description.


k_nearest(Array x, Integer k, Function disfn, Bag of (Object, Array))->Bag of (Object, Object)
STABLE

No description.


K_NEAREST_WITH_FN

k_nearest_with_fn(Vector of Number x, Integer k, Function disfn, Function fn)->Bag of (Object, Object)
STABLE

No description.


k_nearest_with_fn(Array x, Integer k, Function disfn, Function fn)->Bag of (Object, Object)
STABLE

No description.