w-cluster 1.0.9 → 1.0.10

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,17 @@ 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 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)]
20
+
21
+ > **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)]
22
+
23
+ > **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.
24
+
14
25
  ## Installation
15
26
  ### Using npm(ES6 module):
16
27
  > **Note:** w-cluster is mainly dependent on `ml-pca`, `ml-kmeans` and `k-medoids`.
@@ -74,24 +85,24 @@ async function testCluster() {
74
85
  // [ 2 ],
75
86
  // [ 0, 1, 3 ]
76
87
  // ],
77
- // "gltdt": [
88
+ // "gmat": [
78
89
  // [
79
- // [ 80, 70, 90 ]
90
+ // [ 77.39502404588043, 70.65388036857387 ]
80
91
  // ],
81
92
  // [
82
- // [ 40, 50, 60 ],
83
- // [ 50, 70, 60 ],
84
- // [ 50, 60, 80 ],
93
+ // [ 36.76572825085965, 50.81184119955175 ],
94
+ // [ 50.520478881706346, 69.86935352609807 ],
95
+ // [ 55.318768821553576, 58.66492490577632 ]
85
96
  // ]
86
97
  // ],
87
- // "dmat": [
98
+ // "gltdt": [
88
99
  // [
89
- // [77.39502404588043, 70.65388036857387, 91.60517102143689]
100
+ // [ 80, 70, 90 ]
90
101
  // ],
91
102
  // [
92
- // [ 36.76572825085965, 50.81184119955175, 61.992939427698765 ],
93
- // [ 50.520478881706346, 69.86935352609807, 59.679283942385844],
94
- // [ 55.318768821553576, 58.66492490577632, 76.7226056084785 ]
103
+ // [ 40, 50, 60 ],
104
+ // [ 50, 70, 60 ],
105
+ // [ 50, 60, 80 ]
95
106
  // ]
96
107
  // ]
97
108
  // }
@@ -118,32 +129,24 @@ async function testCluster() {
118
129
  // [ 2 ],
119
130
  // [ 0, 1, 3 ]
120
131
  // ],
121
- // "gltdt": [
132
+ // "gmat": [
122
133
  // [
123
- // {
124
- // "name": "Paul", "a": 80, "b": 70, "c": 90
125
- // }
134
+ // [ 77.39502404588043, 70.65388036857387 ]
126
135
  // ],
127
136
  // [
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
- // }
137
+ // [ 36.76572825085965, 50.81184119955175 ],
138
+ // [ 50.520478881706346, 69.86935352609807 ],
139
+ // [ 55.318768821553576, 58.66492490577632 ]
137
140
  // ]
138
141
  // ],
139
- // "dmat": [
142
+ // "gltdt": [
140
143
  // [
141
- // [77.39502404588043, 70.65388036857387, 91.60517102143689]
144
+ // { "name": "Paul", "a": 80, "b": 70, "c": 90 }
142
145
  // ],
143
146
  // [
144
- // [ 36.76572825085965, 50.81184119955175, 61.992939427698765 ],
145
- // [ 50.520478881706346, 69.86935352609807, 59.679283942385844],
146
- // [ 55.318768821553576, 58.66492490577632, 76.7226056084785 ]
147
+ // { "name": "Cameron", "a": 40, "b": 50, "c": 60 },
148
+ // { "name": "Buckley", "a": 50, "b": 70, "c": 60 },
149
+ // { "name": "Fawcett", "a": 50, "b": 60, "c": 80 }
147
150
  // ]
148
151
  // ]
149
152
  // }
@@ -163,17 +166,9 @@ testCluster()
163
166
  ```alias
164
167
 
165
168
  <!-- for basic -->
166
- <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.9/dist/w-cluster.umd.js"></script>
169
+ <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.10/dist/w-cluster.umd.js"></script>
167
170
 
168
171
  <!-- for web workers -->
169
- <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.9/dist/w-cluster.wk.umd.js"></script>
172
+ <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.10/dist/w-cluster.wk.umd.js"></script>
170
173
 
171
174
  ```
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.