w-cluster 1.0.3 → 1.0.6
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/.eslintrc.js +1 -0
- package/.github/workflows/ci-test.yml +24 -0
- package/README.md +3 -4
- package/SECURITY.md +5 -0
- package/dist/w-cluster.umd.js +2 -2
- package/dist/w-cluster.umd.js.map +1 -1
- package/dist/w-cluster.wk.umd.js +1 -1
- package/docs/WCluster.mjs.html +1 -1
- package/docs/examples/ex-PCA.html +1 -1
- package/docs/examples/ex-cluster-k-means.html +14 -2
- package/docs/examples/ex-cluster-k-medoids.html +1 -1
- package/docs/examples/ex-cluster-webworker-k-medoids.html +1 -1
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/examples/ex-cluster-k-means.html +13 -1
- package/package.json +3 -3
- package/toolg/gDistRollup.mjs +3 -3
package/.eslintrc.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
node-version: [16.x]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
17
|
+
uses: actions/setup-node@v1
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node-version }}
|
|
20
|
+
- run: npm cache clean -f
|
|
21
|
+
- run: npm install
|
|
22
|
+
- run: npm test
|
|
23
|
+
env:
|
|
24
|
+
CI: true
|
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@ A tool for data PCA(Principle Component Analysis) and cluster(K-Means & K-Medoid
|
|
|
3
3
|
|
|
4
4
|

|
|
5
5
|
[](https://npmjs.org/package/w-cluster)
|
|
6
|
-
[](https://travis-ci.org/yuda-lyu/w-cluster)
|
|
7
6
|
[](https://npmjs.org/package/w-cluster)
|
|
8
7
|
[](https://github.com/yuda-lyu/w-cluster)
|
|
9
8
|
[](https://npmjs.org/package/w-cluster)
|
|
@@ -164,10 +163,10 @@ testCluster()
|
|
|
164
163
|
```alias
|
|
165
164
|
|
|
166
165
|
<!-- for basic -->
|
|
167
|
-
<script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.
|
|
166
|
+
<script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.6/dist/w-cluster.umd.js"></script>
|
|
168
167
|
|
|
169
168
|
<!-- for web workers -->
|
|
170
|
-
<script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.
|
|
169
|
+
<script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.6/dist/w-cluster.wk.umd.js"></script>
|
|
171
170
|
|
|
172
171
|
```
|
|
173
172
|
|
|
@@ -177,4 +176,4 @@ testCluster()
|
|
|
177
176
|
|
|
178
177
|
> **cluster for k-medoids:** [ex-cluster-k-medoids.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster-k-medoids.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster-k-medoids.html)]
|
|
179
178
|
|
|
180
|
-
> **cluster for k-medoids with web worker
|
|
179
|
+
> **cluster for k-medoids with web worker:** [ex-cluster-webworker-k-medoids.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster-webworker-k-medoids.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster-webworker-k-medoids.html)] * WebWorkers(from blob) does not support IE11.
|