|
@@ -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;
|
|
|
};
|