File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
lib/node_modules/@stdlib/ml/base/cluster/kmeans/metrics
include/stdlib/ml/cluster/base/kmeans Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ The output array contains the following metrics:
5454- ` sqeuclidean ` : squared euclidean distance.
5555- ` cosine ` : cosine distance.
5656- ` cityblock ` : cityblock (taxicab) distance.
57+ - ` correlation ` : correlation distance.
5758
5859</section >
5960
@@ -128,6 +129,7 @@ An enumeration of KMeans distance metrics with the following fields:
128129- ** STDLIB_ML_CLUSTER_KMEANS_SQEUCLIDEAN** : squared euclidean distance.
129130- ** STDLIB_ML_CLUSTER_KMEANS_COSINE** : cosine distance.
130131- ** STDLIB_ML_CLUSTER_KMEANS_CITYBLOCK** : cityblock (taxicab) distance.
132+ - ** STDLIB_ML_CLUSTER_KMEANS_CORRELATION** : correlation distance.
131133
132134``` c
133135#include " stdlib/ml/base/cluster/kmeans/metrics.h"
Original file line number Diff line number Diff line change 44
55 The output array contains the following metrics:
66
7- - euclidean : squared euclidean distance.
7+ - sqeuclidean : squared euclidean distance.
88 - cosine: cosine distance.
99 - cityblock: cityblock (taxicab) distance.
10+ - correlation: correlation distance.
1011
1112 Returns
1213 -------
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ enum STDLIB_ML_CLUSTER_KMEANS_METRICS {
3030 STDLIB_ML_CLUSTER_KMEANS_COSINE ,
3131
3232 // Cityblock (taxicab) distance:
33- STDLIB_ML_CLUSTER_KMEANS_CITYBLOCK
33+ STDLIB_ML_CLUSTER_KMEANS_CITYBLOCK ,
34+
35+ // Correlation distance:
36+ STDLIB_ML_CLUSTER_KMEANS_CORRELATION
3437};
3538
3639#endif // !STDLIB_ML_BASE_CLUSTER_KMEANS_METRICS_H
You can’t perform that action at this time.
0 commit comments