@thi.ng/k-means 2.0.35 → 2.0.36
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/README.md +17 -16
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/k-means)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Status](#status)
|
|
@@ -40,7 +41,7 @@ provided (can also be used in isolation to extract cluster centroids):
|
|
|
40
41
|
|
|
41
42
|
**BETA** - possibly breaking changes forthcoming
|
|
42
43
|
|
|
43
|
-
[Search or submit any issues for this package](https://
|
|
44
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bk-means%5D)
|
|
44
45
|
|
|
45
46
|
## Installation
|
|
46
47
|
|
|
@@ -72,24 +73,24 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.10 KB
|
|
|
72
73
|
|
|
73
74
|
## Dependencies
|
|
74
75
|
|
|
75
|
-
- [@thi.ng/api](https://
|
|
76
|
-
- [@thi.ng/distance](https://
|
|
77
|
-
- [@thi.ng/errors](https://
|
|
78
|
-
- [@thi.ng/random](https://
|
|
79
|
-
- [@thi.ng/vectors](https://
|
|
76
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
77
|
+
- [@thi.ng/distance](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/distance)
|
|
78
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
79
|
+
- [@thi.ng/random](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/random)
|
|
80
|
+
- [@thi.ng/vectors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/vectors)
|
|
80
81
|
|
|
81
82
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
82
83
|
|
|
83
84
|
## Usage examples
|
|
84
85
|
|
|
85
86
|
Two projects in this repo's
|
|
86
|
-
[/examples](https://
|
|
87
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
87
88
|
directory are using this package:
|
|
88
89
|
|
|
89
|
-
| Screenshot | Description | Live demo | Source
|
|
90
|
-
|
|
91
|
-
| <img src="https://
|
|
92
|
-
| <img src="https://
|
|
90
|
+
| Screenshot | Description | Live demo | Source |
|
|
91
|
+
|:-----------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|:------------------------------------------------------|:-------------------------------------------------------------------------------------------|
|
|
92
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/dominant-colors.png" width="240"/> | Color palette generation via dominant color extraction from uploaded images | [Demo](https://demo.thi.ng/umbrella/dominant-colors/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/dominant-colors) |
|
|
93
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/kmeans-viz.jpg" width="240"/> | k-means clustering visualization | [Demo](https://demo.thi.ng/umbrella/kmeans-viz/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/kmeans-viz) |
|
|
93
94
|
|
|
94
95
|
## API
|
|
95
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/k-means",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.36",
|
|
4
4
|
"description": "k-means & k-medians with customizable distance functions and centroid initializations for n-D vectors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/k-means"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/k-means",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/distance": "^3.0.
|
|
45
|
-
"@thi.ng/errors": "^2.6.
|
|
46
|
-
"@thi.ng/random": "^4.1.
|
|
47
|
-
"@thi.ng/vectors": "^8.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/distance": "^3.0.38",
|
|
45
|
+
"@thi.ng/errors": "^2.6.7",
|
|
46
|
+
"@thi.ng/random": "^4.1.43",
|
|
47
|
+
"@thi.ng/vectors": "^8.6.26"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"esbuild": "^0.27.2",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"year": 2021,
|
|
98
98
|
"screenshot": "examples/kmeans-viz.jpg"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
101
101
|
}
|