Просмотр исходного кода

Add degrees to mu-nu and swap gamma for beta

Kirk Trombley 3 лет назад
Родитель
Сommit
7640df11b8
2 измененных файлов с 5 добавлено и 5 удалено
  1. 2 2
      web/metrics.js
  2. 3 3
      web/render.js

+ 2 - 2
web/metrics.js

@@ -113,8 +113,8 @@ const metrics = {
     evaluate: data => data.mu.chroma,
   },
   importance: {
-    option: "Visual Importance (γ)",
-    displayName: String.raw`\gamma`,
+    option: "Visual Importance (β)",
+    displayName: String.raw`\beta`,
     displayBody: p => String.raw`
       \begin{aligned}
       &C\left(${p}\right) \\

+ 3 - 3
web/render.js

@@ -60,8 +60,8 @@ const renderPokemonTileCluster = (area, { mu, nu, proportion }, scores) => {
             ["I =", scores.inertia.toFixed(2)],
             ["L =", scores.lightness.toFixed(2)],
             ["C =", scores.chroma.toFixed(2)],
-            ["γ = ", scores.importance.toFixed(2)],
-            ["V =", scores.muNuAngle.toFixed(2)],
+            ["β = ", scores.importance.toFixed(2)],
+            ["V =", scores.muNuAngle.toFixed(2) + "°"],
             ["N =", scores.size],
           ]
             .map(([lbl, val]) => renderStatPair(lbl, val))
@@ -132,7 +132,7 @@ const renderPokemonTile = (kind, name, { total: { mu, nu, size }, clusters }, sc
           )}
           ${ renderStatRow(
             [ ["I =", scores.total.inertia.toFixed(2)],
-              ["V =", scores.total.muNuAngle.toFixed(2)],
+              ["V =", scores.total.muNuAngle.toFixed(2) + "°"],
               ["N =", size],
               ["L =", scores.total.lightness.toFixed(2)],
               ["C =", scores.total.chroma.toFixed(2)],