Behaviour
It computes clusters from input data through the use of k-means or k-medians algorithms.
Parameters
Return type
Binary-array.
Examples
Group data into 2 clusters, with 10 EM iterations, and return the centroid value for each input point.
oph_ccluster_kcluster('OPH_DOUBLE','OPH_DOUBLE',measure,2,'KMEANS',10,'ALL')
Operation type
Reduce.
Argument name | Type | Mandatory | Values | Default | Min/Max-value | Min/Max-times |
---|---|---|---|---|---|---|
input measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’|’oph_ complex_double’|’oph_complex_float’|’oph_complex_int’|’oph_complex_long’” | “1” / “1” | ||
output measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’|’oph_ complex_double’|’oph_complex_float’|’oph_complex_int’|’oph_complex_long’” | “1” / “1” | ||
measure | “binary-array” | “yes” | “1” / “1” | |||
k | “int” | “yes” | “1” / “1” | |||
method | “string” | “no” | “‘kmeans’|’kmedians’” | “‘kmeans’” | “0” / “1” | |
level | “string” | “no” | “‘centroids’|’labels’|’al l’” | “‘all’” | “0” / “1” | |
npass | “int” | “no” | “1” | “0” / “1” |