static double lToY(double L) { if (L <= 8) { return refY * L / kappa; } else { return refY * math.pow((L + 16) / 116, 3); } }