diff --git a/package.json b/package.json index 98140444..c05fb43f 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "angular-oauth2-oidc": "^12.0.0", "bungie-api-ts": "^4.11.0", "dexie": "^3.0.3", + "kmeans-ts": "^1.0.4", "lzutf8": "^0.6.0", "rxjs": "~6.6.0", "tslib": "^2.2.0", diff --git a/src/app/components/authenticated-v2/subpages/armor-cluster-page/armor-cluster-page.component.html b/src/app/components/authenticated-v2/subpages/armor-cluster-page/armor-cluster-page.component.html index 672a3e20..ad96f2da 100644 --- a/src/app/components/authenticated-v2/subpages/armor-cluster-page/armor-cluster-page.component.html +++ b/src/app/components/authenticated-v2/subpages/armor-cluster-page/armor-cluster-page.component.html @@ -7,7 +7,7 @@ This page can help you to sort out your vault a bit. - It takes all your armor entries and tries to sort them into {{clusterInformation.length}} clusters. + It takes all your armor entries and tries to sort them into a specified number of clusters. It then gives you a DIM search query for each cluster. You can use this to look at similar rolls in your vault and to clean out some of them.
@@ -15,6 +15,9 @@ Please note that it will cluster all armor for all characters. Make sure to use "is:titan", "is:warlock" or "is:hunter" in DIM.

+ Note that the clustering algorithm is randomized: It may create different clusters with + different item counts every time. +

Please also note that this feature is new and may have some inaccuracy for some items.
@@ -63,6 +66,17 @@ +
+ Number of Clusters
Decide on a number of clusters.
+ + + 5 + 10 + 15 + 25 + + +
Class
Decide which class you want to see.
@@ -99,17 +113,17 @@ fxLayoutGap="5px" > - + Cluster {{idx + 1}} - Contains {{cluster.length}} item{{cluster.length > 1 ? "s" : ""}} + Contains {{cluster.items.length}} item{{cluster.items.length > 1 ? "s" : ""}}
- +
@@ -117,9 +131,9 @@
-
+
- {{clusterInformation[idx].mean[idx1] |number:'1.0-0'}} + {{cluster.mean[idx1] |number:'1.0-0'}}
@@ -131,10 +145,10 @@ DIM Search Query - +