K-means
CENTROID2ID
centroid2id(Vector of Number c
, Matrix vc
) -> Integer i
STABLE
Returns an integer id to distinguish a cluster centroid
c : centroid to identify position of vc : vector of centroids containing c
GET_KMEANS_STRING
get_kmeans_string(Charstring name
) -> Charstring
STABLE
Generate functions for a kmeans instance named name
This will create
kmeans functions prefixed with kmeans_<name>
Look at the topic keans after
calling generate_kemans
.
GET_NEAREST_CENTROID
get_nearest_centroid(Vector of Number x
, Matrix vc)->(Number
, Vector of Number
)
STABLE
Gets nearest centroid among vc for the given datapoint x,
returns distance and centroid vector
GET_NEAREST_CENTROID_ID
get_nearest_centroid_id(Vector of Number x
, Matrix vc
) -> Number
STABLE
Gets nearest centroid among vc for the given datapoint p,
returns distance and centroid vector
KMEANS:GENERATE
kmeans:generate(Charstring name
) -> Object
STABLE
Generate functions for a kmeans instance named name
This will create
kmeans functions prefixed with kmeans_<name>
Look at the topic keans
after calling generate_kemans
.
KMEANS:SAVE_MODEL
kmeans:save_model(Charstring instance
, Charstring model
) -> Boolean
STABLE
No description.
kmeans:save_model(Charstring instance
, Charstring model
, Charstring file
) -> Boolean
STABLE
No description.