KNN
CLASSDISTANCES
classdistances(Vector of Number x
, Function disfn
, Bag of (Object
, Vector of Number))->Bag of (Number
, Object
)
STABLE
Given a distance function disfn(x,y)
calculate all distances from point x to the points
in set of points cp
classdistances(Array x
, Function disfn
, Bag of (Object
, Array))->Bag of (Number
, Object
)
STABLE
Given a distance function disfn(x,y)
calculate all distances from point x to the points
in set of points cp
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(Vector of Real
, Number k
, Function fn
) -> Bag
STABLE
No description.
knn(Vector of Number
, Number k
, Function fn
) -> Bag
STABLE
No description.
knn(Vector of Integer
, Number k
, Function fn
) -> Bag
STABLE
No description.
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
Find k
nearest neighbours of point x
among points in cp
using distance function disfn
.
k_nearest(Array x
, Integer k
, Function disfn
, Bag of (Object
, Array))->Bag of (Object
, Object
)
STABLE
Find k
nearest neighbours of point x
among points in cp
using distance function disfn
.
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.