@turf/clusters-kmeans 6.4.0 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.js +1 -2
- package/dist/js/index.js +1 -2
- package/package.json +11 -9
package/dist/es/index.js
CHANGED
|
@@ -40,8 +40,7 @@ function clustersKmeans(points, options) {
|
|
|
40
40
|
// create seed to avoid skmeans to drift
|
|
41
41
|
var initialCentroids = data.slice(0, options.numberOfClusters);
|
|
42
42
|
// create skmeans clusters
|
|
43
|
-
var skmeansResult = skmeans(data, options.numberOfClusters, initialCentroids
|
|
44
|
-
);
|
|
43
|
+
var skmeansResult = skmeans(data, options.numberOfClusters, initialCentroids);
|
|
45
44
|
// store centroids {clusterId: [number, number]}
|
|
46
45
|
var centroids = {};
|
|
47
46
|
skmeansResult.centroids.forEach(function (coord, idx) {
|
package/dist/js/index.js
CHANGED
|
@@ -45,8 +45,7 @@ function clustersKmeans(points, options) {
|
|
|
45
45
|
// create seed to avoid skmeans to drift
|
|
46
46
|
var initialCentroids = data.slice(0, options.numberOfClusters);
|
|
47
47
|
// create skmeans clusters
|
|
48
|
-
var skmeansResult = skmeans_1.default(data, options.numberOfClusters, initialCentroids
|
|
49
|
-
);
|
|
48
|
+
var skmeansResult = skmeans_1.default(data, options.numberOfClusters, initialCentroids);
|
|
50
49
|
// store centroids {clusterId: [number, number]}
|
|
51
50
|
var centroids = {};
|
|
52
51
|
skmeansResult.centroids.forEach(function (coord, idx) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/clusters-kmeans",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "turf clusters-kmeans module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "git://github.com/Turfjs/turf.git"
|
|
19
19
|
},
|
|
20
|
+
"funding": "https://opencollective.com/turf",
|
|
20
21
|
"publishConfig": {
|
|
21
22
|
"access": "public"
|
|
22
23
|
},
|
|
@@ -53,9 +54,10 @@
|
|
|
53
54
|
"test:types": "tsc --esModuleInterop --noEmit types.ts"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
|
-
"@turf/centroid": "^6.
|
|
57
|
-
"@turf/clusters": "^6.
|
|
58
|
-
"@turf/random": "^6.
|
|
57
|
+
"@turf/centroid": "^6.5.0",
|
|
58
|
+
"@turf/clusters": "^6.5.0",
|
|
59
|
+
"@turf/random": "^6.5.0",
|
|
60
|
+
"@types/skmeans": "^0.11.2",
|
|
59
61
|
"@types/tape": "*",
|
|
60
62
|
"benchmark": "*",
|
|
61
63
|
"chromatism": "*",
|
|
@@ -70,11 +72,11 @@
|
|
|
70
72
|
"write-json-file": "*"
|
|
71
73
|
},
|
|
72
74
|
"dependencies": {
|
|
73
|
-
"@turf/clone": "^6.
|
|
74
|
-
"@turf/helpers": "^6.
|
|
75
|
-
"@turf/invariant": "^6.
|
|
76
|
-
"@turf/meta": "^6.
|
|
75
|
+
"@turf/clone": "^6.5.0",
|
|
76
|
+
"@turf/helpers": "^6.5.0",
|
|
77
|
+
"@turf/invariant": "^6.5.0",
|
|
78
|
+
"@turf/meta": "^6.5.0",
|
|
77
79
|
"skmeans": "0.9.7"
|
|
78
80
|
},
|
|
79
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
|
|
80
82
|
}
|