yToL static method

double yToL(
  1. double Y
)

http://en.wikipedia.org/wiki/CIELUV In these formulas, Yn refers to the reference white point. We are usin g illuminant D65, so Yn (see refY in Maxima file) equals 1. The formula is simplified accordingly.

Implementation

static double yToL(double Y) {
  if (Y <= epsilon) {
    return (Y / refY) * kappa;
  } else {
    return 116 * math.pow(Y / refY, 1.0 / 3.0) - 16;
  }
}