Lines Matching refs:inputCoeffs

161 static float targetGToVlevelsUnderLinearEquation(std::array<float, 4> inputCoeffs, float targetG) {  in targetGToVlevelsUnderLinearEquation()  argument
165 outPutVal = (targetG - inputCoeffs[1]) / inputCoeffs[0]; in targetGToVlevelsUnderLinearEquation()
173 static float targetGToVlevelsUnderCubicEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderCubicEquation() argument
182 AA = inputCoeffs[1] * inputCoeffs[1] - 3.0 * inputCoeffs[0] * inputCoeffs[2]; in targetGToVlevelsUnderCubicEquation()
183 BB = inputCoeffs[1] * inputCoeffs[2] - 9.0 * inputCoeffs[0] * (inputCoeffs[3] - targetG); in targetGToVlevelsUnderCubicEquation()
184 CC = inputCoeffs[2] * inputCoeffs[2] - 3.0 * inputCoeffs[1] * (inputCoeffs[3] - targetG); in targetGToVlevelsUnderCubicEquation()
192 outPutVal = -inputCoeffs[1] / (3 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
199 Y1 = AA * inputCoeffs[1] + 3.0 * inputCoeffs[0] * (-BB + pow(Delta, oneHalf)) / 2.0; in targetGToVlevelsUnderCubicEquation()
200 Y2 = AA * inputCoeffs[1] + 3.0 * inputCoeffs[0] * (-BB - pow(Delta, oneHalf)) / 2.0; in targetGToVlevelsUnderCubicEquation()
203 return (-inputCoeffs[1] + pow(-Y1, oneThird) - pow(Y2, oneThird)) / in targetGToVlevelsUnderCubicEquation()
204 (3.0 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
206 return (-inputCoeffs[1] - pow(Y1, oneThird) + pow(-Y2, oneThird)) / in targetGToVlevelsUnderCubicEquation()
207 (3.0 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
209 return (-inputCoeffs[1] + pow(-Y1, oneThird) + pow(-Y2, oneThird)) / in targetGToVlevelsUnderCubicEquation()
210 (3.0 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
212 return (-inputCoeffs[1] - pow(Y1, oneThird) - pow(Y2, oneThird)) / in targetGToVlevelsUnderCubicEquation()
213 (3.0 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
218 T = (2 * AA * inputCoeffs[1] - 3 * inputCoeffs[0] * BB) / (2 * AA * sqrt(AA)); in targetGToVlevelsUnderCubicEquation()
224 outPutVal = (-inputCoeffs[1] - 2 * sqrtA * cosSita) / (3 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
228 outPutVal = (-inputCoeffs[1] + sqrtA * (cosSita + sinSitaSqrt3)) / (3 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
232 outPutVal = (-inputCoeffs[1] + sqrtA * (cosSita - sinSitaSqrt3)) / (3 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation()
240 outPutVal = (-inputCoeffs[1] / inputCoeffs[0] + K); in targetGToVlevelsUnderCubicEquation()
255 static float vLevelsToTargetGUnderCubicEquation(std::array<float, 4> inputCoeffs, float vLevel) { in vLevelsToTargetGUnderCubicEquation() argument
258 return inputCoeffs[0] * pow(inputVoltage, 3) + inputCoeffs[1] * pow(inputVoltage, 2) + in vLevelsToTargetGUnderCubicEquation()
259 inputCoeffs[2] * inputVoltage + inputCoeffs[3]; in vLevelsToTargetGUnderCubicEquation()