소스 검색

Inline math for clarity

Kirk Trombley 3 년 전
부모
커밋
b1d5d7f1a8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      web/metrics.js

+ 2 - 2
web/metrics.js

@@ -131,7 +131,7 @@ const applyMetrics = (data, target) => {
     Object.entries(metrics)
       .map(([name, metric]) => [name, metric.evaluate(data, target)])
   );
-  const power = target.chroma + 1 - target.lightness;
-  scores.alpha = Math.pow(scores.sigma, 2 - power) * Math.pow(scores.bigTheta, power);
+  const power = target.chroma - target.lightness;
+  scores.alpha = Math.pow(scores.sigma, 1 - power) * Math.pow(scores.bigTheta, 1 + power);
   return scores;
 };