Searched refs:inputCoeffs (Results 1 – 1 of 1) sorted by relevance
82 static float targetGToVlevelsUnderLinearEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderLinearEquation() argument86 outPutVal = (targetG - inputCoeffs[1]) / inputCoeffs[0]; in targetGToVlevelsUnderLinearEquation()94 static float targetGToVlevelsUnderCubicEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderCubicEquation() argument103 AA = inputCoeffs[1] * inputCoeffs[1] - 3.0 * inputCoeffs[0] * inputCoeffs[2]; in targetGToVlevelsUnderCubicEquation()104 BB = inputCoeffs[1] * inputCoeffs[2] - 9.0 * inputCoeffs[0] * (inputCoeffs[3] - targetG); in targetGToVlevelsUnderCubicEquation()105 CC = inputCoeffs[2] * inputCoeffs[2] - 3.0 * inputCoeffs[1] * (inputCoeffs[3] - targetG); in targetGToVlevelsUnderCubicEquation()113 outPutVal = -inputCoeffs[1] / (3 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()120 Y1 = AA * inputCoeffs[1] + 3.0 * inputCoeffs[0] * (-BB + pow(Delta, oneHalf)) / 2.0; in targetGToVlevelsUnderCubicEquation()121 Y2 = AA * inputCoeffs[1] + 3.0 * inputCoeffs[0] * (-BB - pow(Delta, oneHalf)) / 2.0; in targetGToVlevelsUnderCubicEquation()124 return (-inputCoeffs[1] + pow(-Y1, oneThird) - pow(Y2, oneThird)) / in targetGToVlevelsUnderCubicEquation()[all …]