w-cluster 1.0.1 → 1.0.5
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 +9 -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 -0
- 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/examples/ex-cluster-webworker-k-medoids.html +1 -1
- package/g-PCA-nodeworker.mjs +32 -0
- package/g-PCA.mjs +0 -1
- package/g-cluster-nodeworker.mjs +106 -0
- package/g-cluster.mjs +0 -1
- package/package.json +3 -3
- package/src/WPCAMat.mjs +11 -0
- package/test/PCA.test.mjs +125 -0
- package/test/cluster.test.mjs +135 -0
- package/toolg/gDistRollup.mjs +6 -6
- package/toolg/gDocsExams.mjs +2 -2
- package/dist/w-cluster.ww.umd.js +0 -1
- package/test/createParseStream.test.mjs +0 -87
- package/test/createStringifyStream.test.mjs +0 -78
- package/test/parse.test.mjs +0 -135
- package/test/parseByStream.test.mjs +0 -135
- package/test/stringify.test.mjs +0 -135
- package/test/stringifyByStream.test.mjs +0 -135
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)
|
|
@@ -158,11 +157,17 @@ testCluster()
|
|
|
158
157
|
```
|
|
159
158
|
|
|
160
159
|
### In a browser(UMD module):
|
|
161
|
-
> **Note:** w-cluster
|
|
160
|
+
> **Note:** w-cluster does not dependent on any package.
|
|
162
161
|
|
|
163
162
|
[Necessary] Add script for w-cluster.
|
|
164
163
|
```alias
|
|
165
|
-
|
|
164
|
+
|
|
165
|
+
<!-- for basic -->
|
|
166
|
+
<script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.5/dist/w-cluster.umd.js"></script>
|
|
167
|
+
|
|
168
|
+
<!-- for web workers -->
|
|
169
|
+
<script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.5/dist/w-cluster.wk.umd.js"></script>
|
|
170
|
+
|
|
166
171
|
```
|
|
167
172
|
|
|
168
173
|
> **PCA:** [ex-PCA.html](https://yuda-lyu.github.io/w-cluster/examples/ex-PCA.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-PCA.html)]
|
|
@@ -171,4 +176,4 @@ testCluster()
|
|
|
171
176
|
|
|
172
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)]
|
|
173
178
|
|
|
174
|
-
> **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.
|