|
@@ -35,9 +35,9 @@ const renderPokemonTileCluster = (area, totalSize, { mu, nu }, scores) => {
|
|
</div>
|
|
</div>
|
|
<div class="toggle-on">
|
|
<div class="toggle-on">
|
|
${
|
|
${
|
|
- [ ["σ =", scores.sigma.toFixed(3)],
|
|
|
|
|
|
+ [ ["α =", scores.alpha.toFixed(3)],
|
|
|
|
+ ["σ =", scores.sigma.toFixed(3)],
|
|
["Θ =", scores.bigTheta.toFixed(3)],
|
|
["Θ =", scores.bigTheta.toFixed(3)],
|
|
- ["α =", scores.alpha.toFixed(3)],
|
|
|
|
["θ =", scores.theta.toFixed(3) + "°"],
|
|
["θ =", scores.theta.toFixed(3) + "°"],
|
|
["ϕ =", scores.phi.toFixed(3) + "°"],
|
|
["ϕ =", scores.phi.toFixed(3) + "°"],
|
|
["δ =", scores.delta.toFixed(3)],
|
|
["δ =", scores.delta.toFixed(3)],
|
|
@@ -60,6 +60,7 @@ const renderPokemonTileCluster = (area, totalSize, { mu, nu }, scores) => {
|
|
["I =", scores.inertia.toFixed(2)],
|
|
["I =", scores.inertia.toFixed(2)],
|
|
["L =", scores.lightness.toFixed(2)],
|
|
["L =", scores.lightness.toFixed(2)],
|
|
["C =", scores.chroma.toFixed(2)],
|
|
["C =", scores.chroma.toFixed(2)],
|
|
|
|
+ ["γ = ", scores.chromaLight.toFixed(2)],
|
|
["V =", scores.muNuAngle.toFixed(2)],
|
|
["V =", scores.muNuAngle.toFixed(2)],
|
|
["N =", scores.size],
|
|
["N =", scores.size],
|
|
]
|
|
]
|
|
@@ -106,9 +107,9 @@ const renderPokemonTile = (kind, name, { total: { mu, nu, size }, clusters }, sc
|
|
</div>
|
|
</div>
|
|
<div class="toggle-on">
|
|
<div class="toggle-on">
|
|
${ renderStatRow(
|
|
${ renderStatRow(
|
|
- [ ["σ =", scores.total.sigma.toFixed(3)],
|
|
|
|
|
|
+ [ ["α =", scores.total.alpha.toFixed(3)],
|
|
|
|
+ ["σ =", scores.total.sigma.toFixed(3)],
|
|
["Θ =", scores.total.bigTheta.toFixed(3)],
|
|
["Θ =", scores.total.bigTheta.toFixed(3)],
|
|
- ["α =", scores.total.alpha.toFixed(3)],
|
|
|
|
].map(([lbl, val]) => renderStatPair(lbl, val))
|
|
].map(([lbl, val]) => renderStatPair(lbl, val))
|
|
)}
|
|
)}
|
|
${ renderStatRow(
|
|
${ renderStatRow(
|
|
@@ -131,12 +132,16 @@ const renderPokemonTile = (kind, name, { total: { mu, nu, size }, clusters }, sc
|
|
)}
|
|
)}
|
|
${ renderStatRow(
|
|
${ renderStatRow(
|
|
[ ["I =", scores.total.inertia.toFixed(2)],
|
|
[ ["I =", scores.total.inertia.toFixed(2)],
|
|
- ["L =", scores.total.lightness.toFixed(2)],
|
|
|
|
- ["C =", scores.total.chroma.toFixed(2)],
|
|
|
|
["V =", scores.total.muNuAngle.toFixed(2)],
|
|
["V =", scores.total.muNuAngle.toFixed(2)],
|
|
["N =", size],
|
|
["N =", size],
|
|
].map(([lbl, val, cls]) => renderStatPair(lbl, val, cls))
|
|
].map(([lbl, val, cls]) => renderStatPair(lbl, val, cls))
|
|
)}
|
|
)}
|
|
|
|
+ ${ renderStatRow(
|
|
|
|
+ [ ["L =", scores.total.lightness.toFixed(2)],
|
|
|
|
+ ["C =", scores.total.chroma.toFixed(2)],
|
|
|
|
+ ["γ = ", scores.total.chromaLight.toFixed(2)],
|
|
|
|
+ ].map(([lbl, val, cls]) => renderStatPair(lbl, val, cls))
|
|
|
|
+ )}
|
|
${ bestClusterIndex < 0 ? "" : `<hr style="width: 80%; color: ${textColor}"/>` }
|
|
${ bestClusterIndex < 0 ? "" : `<hr style="width: 80%; color: ${textColor}"/>` }
|
|
${ renderStatRow([
|
|
${ renderStatRow([
|
|
`<span class="pkmn-tile_indicator">${bestClusterIndex === 0 ? "▼" : ""}</span>`,
|
|
`<span class="pkmn-tile_indicator">${bestClusterIndex === 0 ? "▼" : ""}</span>`,
|