@turf/clusters-kmeans 6.2.0-alpha.3 → 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 +0 -0
- package/dist/js/index.d.ts +2 -2
- package/dist/js/index.js +0 -0
- package/package.json +16 -11
package/dist/es/index.js
CHANGED
|
File without changes
|
package/dist/js/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FeatureCollection, Point, Properties } from "@turf/helpers";
|
|
2
|
-
export
|
|
2
|
+
export declare type KmeansProps = Properties & {
|
|
3
3
|
cluster?: number;
|
|
4
4
|
centroid?: [number, number];
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
/**
|
|
7
7
|
* Takes a set of {@link Point|points} and partition them into clusters using the k-mean .
|
|
8
8
|
* It uses the [k-means algorithm](https://en.wikipedia.org/wiki/K-means_clustering)
|
package/dist/js/index.js
CHANGED
|
File without changes
|
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
|
},
|
|
@@ -31,8 +32,11 @@
|
|
|
31
32
|
"main": "dist/js/index.js",
|
|
32
33
|
"module": "dist/es/index.js",
|
|
33
34
|
"exports": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
35
|
+
"./package.json": "./package.json",
|
|
36
|
+
".": {
|
|
37
|
+
"import": "./dist/es/index.js",
|
|
38
|
+
"require": "./dist/js/index.js"
|
|
39
|
+
}
|
|
36
40
|
},
|
|
37
41
|
"types": "dist/js/index.d.ts",
|
|
38
42
|
"sideEffects": false,
|
|
@@ -50,9 +54,10 @@
|
|
|
50
54
|
"test:types": "tsc --esModuleInterop --noEmit types.ts"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"@turf/centroid": "^6.
|
|
54
|
-
"@turf/clusters": "^6.
|
|
55
|
-
"@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",
|
|
56
61
|
"@types/tape": "*",
|
|
57
62
|
"benchmark": "*",
|
|
58
63
|
"chromatism": "*",
|
|
@@ -67,11 +72,11 @@
|
|
|
67
72
|
"write-json-file": "*"
|
|
68
73
|
},
|
|
69
74
|
"dependencies": {
|
|
70
|
-
"@turf/clone": "^6.
|
|
71
|
-
"@turf/helpers": "^6.
|
|
72
|
-
"@turf/invariant": "^6.
|
|
73
|
-
"@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",
|
|
74
79
|
"skmeans": "0.9.7"
|
|
75
80
|
},
|
|
76
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
|
|
77
82
|
}
|