rm-webgpu-compute-tasks 0.0.9 → 0.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/package.json +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -3184,7 +3184,7 @@ async function sopc_(opt) {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
const results = new Array(itemsFiles.length).fill([]).map(() => []);
|
|
3186
3186
|
const sort = (pointarr) => {
|
|
3187
|
-
let list = euclideanClusterExtraction(pointarr, 0.
|
|
3187
|
+
let list = euclideanClusterExtraction(pointarr, 0.25).sort((a, b) => b.length - a.length);
|
|
3188
3188
|
if (list.length === 1) return pointarr;
|
|
3189
3189
|
return list[0].flatMap((i) => [
|
|
3190
3190
|
pointarr[i * 3],
|
|
@@ -3203,7 +3203,7 @@ async function sopc_(opt) {
|
|
|
3203
3203
|
);
|
|
3204
3204
|
});
|
|
3205
3205
|
pointarr = sort(pointarr);
|
|
3206
|
-
if (!results[fileIndex]) results[fileIndex] = new Array(itemsFiles[fileIndex].sam3Objects.length).fill([]);
|
|
3206
|
+
if (!results[fileIndex]) results[fileIndex] = new Array(itemsFiles[fileIndex].sam3Objects.length).fill([]).map(() => []);
|
|
3207
3207
|
results[fileIndex][itemIndex] = pointarr;
|
|
3208
3208
|
});
|
|
3209
3209
|
});
|