w-cluster 1.0.8 → 1.0.11

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/.jsdoc CHANGED
@@ -3,7 +3,7 @@
3
3
  "allowUnknownTags": false
4
4
  },
5
5
  "source": {
6
- "include": ["src/"],
6
+ "include": ["src/", "server/"],
7
7
  "includePattern": ".+\\.(js(doc|x)?|mjs|vue)$",
8
8
  "excludePattern": "(node_modules/|docs)"
9
9
  },
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 semisphere(呂昱達)
3
+ Copyright (c) 2022 semisphere(yu-da, lyu 呂昱達)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -11,6 +11,15 @@ A tool for data PCA(Principle Component Analysis) and cluster(K-Means & K-Medoid
11
11
  ## Documentation
12
12
  To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-cluster/global.html).
13
13
 
14
+ ## Example
15
+ To view some examples for more understanding, visit examples:
16
+
17
+ > **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)]
18
+
19
+ > **cluster:** [ex-cluster.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster.html)]
20
+
21
+ > **cluster with web worker:** [ex-cluster-webworker.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster-webworker.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster-webworker.html)] * WebWorkers(from blob) does not support IE11.
22
+
14
23
  ## Installation
15
24
  ### Using npm(ES6 module):
16
25
  > **Note:** w-cluster is mainly dependent on `ml-pca`, `ml-kmeans` and `k-medoids`.
@@ -74,24 +83,24 @@ async function testCluster() {
74
83
  // [ 2 ],
75
84
  // [ 0, 1, 3 ]
76
85
  // ],
77
- // "gltdt": [
86
+ // "gmat": [
78
87
  // [
79
- // [ 80, 70, 90 ]
88
+ // [ 77.39502404588043, 70.65388036857387 ]
80
89
  // ],
81
90
  // [
82
- // [ 40, 50, 60 ],
83
- // [ 50, 70, 60 ],
84
- // [ 50, 60, 80 ],
91
+ // [ 36.76572825085965, 50.81184119955175 ],
92
+ // [ 50.520478881706346, 69.86935352609807 ],
93
+ // [ 55.318768821553576, 58.66492490577632 ]
85
94
  // ]
86
95
  // ],
87
- // "dmat": [
96
+ // "gltdt": [
88
97
  // [
89
- // [77.39502404588043, 70.65388036857387, 91.60517102143689]
98
+ // [ 80, 70, 90 ]
90
99
  // ],
91
100
  // [
92
- // [ 36.76572825085965, 50.81184119955175, 61.992939427698765 ],
93
- // [ 50.520478881706346, 69.86935352609807, 59.679283942385844],
94
- // [ 55.318768821553576, 58.66492490577632, 76.7226056084785 ]
101
+ // [ 40, 50, 60 ],
102
+ // [ 50, 70, 60 ],
103
+ // [ 50, 60, 80 ]
95
104
  // ]
96
105
  // ]
97
106
  // }
@@ -118,32 +127,24 @@ async function testCluster() {
118
127
  // [ 2 ],
119
128
  // [ 0, 1, 3 ]
120
129
  // ],
121
- // "gltdt": [
130
+ // "gmat": [
122
131
  // [
123
- // {
124
- // "name": "Paul", "a": 80, "b": 70, "c": 90
125
- // }
132
+ // [ 77.39502404588043, 70.65388036857387 ]
126
133
  // ],
127
134
  // [
128
- // {
129
- // "name": "Cameron", "a": 40, "b": 50, "c": 60
130
- // },
131
- // {
132
- // "name": "Buckley", "a": 50, "b": 70, "c": 60
133
- // },
134
- // {
135
- // "name": "Fawcett", "a": 50, "b": 60, "c": 80
136
- // }
135
+ // [ 36.76572825085965, 50.81184119955175 ],
136
+ // [ 50.520478881706346, 69.86935352609807 ],
137
+ // [ 55.318768821553576, 58.66492490577632 ]
137
138
  // ]
138
139
  // ],
139
- // "dmat": [
140
+ // "gltdt": [
140
141
  // [
141
- // [77.39502404588043, 70.65388036857387, 91.60517102143689]
142
+ // { "name": "Paul", "a": 80, "b": 70, "c": 90 }
142
143
  // ],
143
144
  // [
144
- // [ 36.76572825085965, 50.81184119955175, 61.992939427698765 ],
145
- // [ 50.520478881706346, 69.86935352609807, 59.679283942385844],
146
- // [ 55.318768821553576, 58.66492490577632, 76.7226056084785 ]
145
+ // { "name": "Cameron", "a": 40, "b": 50, "c": 60 },
146
+ // { "name": "Buckley", "a": 50, "b": 70, "c": 60 },
147
+ // { "name": "Fawcett", "a": 50, "b": 60, "c": 80 }
147
148
  // ]
148
149
  // ]
149
150
  // }
@@ -163,17 +164,9 @@ testCluster()
163
164
  ```alias
164
165
 
165
166
  <!-- for basic -->
166
- <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.8/dist/w-cluster.umd.js"></script>
167
+ <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.11/dist/w-cluster.umd.js"></script>
167
168
 
168
169
  <!-- for web workers -->
169
- <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.8/dist/w-cluster.wk.umd.js"></script>
170
+ <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.11/dist/w-cluster.wk.umd.js"></script>
170
171
 
171
172
  ```
172
-
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)]
174
-
175
- > **cluster for k-means:** [ex-cluster-k-means.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster-k-means.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster-k-means.html)]
176
-
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)]
178
-
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.