Searched refs:inputCoeffs (Results 1 – 3 of 3) sorted by relevance
/device/google/sunfish/vibrator/drv2624/ |
D | Vibrator.cpp | 82 static float targetGToVlevelsUnderLinearEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderLinearEquation() argument 86 outPutVal = (targetG - inputCoeffs[1]) / inputCoeffs[0]; in targetGToVlevelsUnderLinearEquation() 94 static float targetGToVlevelsUnderCubicEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderCubicEquation() argument 103 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 …]
|
/device/google/barbet/vibrator/drv2624/ |
D | Vibrator.cpp | 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() [all …]
|
/device/google/redfin/vibrator/drv2624/ |
D | Vibrator.cpp | 158 static float targetGToVlevelsUnderLinearEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderLinearEquation() argument 162 outPutVal = (targetG - inputCoeffs[1]) / inputCoeffs[0]; in targetGToVlevelsUnderLinearEquation() 170 static float targetGToVlevelsUnderCubicEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderCubicEquation() argument 179 AA = inputCoeffs[1] * inputCoeffs[1] - 3.0 * inputCoeffs[0] * inputCoeffs[2]; in targetGToVlevelsUnderCubicEquation() 180 BB = inputCoeffs[1] * inputCoeffs[2] - 9.0 * inputCoeffs[0] * (inputCoeffs[3] - targetG); in targetGToVlevelsUnderCubicEquation() 181 CC = inputCoeffs[2] * inputCoeffs[2] - 3.0 * inputCoeffs[1] * (inputCoeffs[3] - targetG); in targetGToVlevelsUnderCubicEquation() 189 outPutVal = -inputCoeffs[1] / (3 * inputCoeffs[0]); in targetGToVlevelsUnderCubicEquation() 196 Y1 = AA * inputCoeffs[1] + 3.0 * inputCoeffs[0] * (-BB + pow(Delta, oneHalf)) / 2.0; in targetGToVlevelsUnderCubicEquation() 197 Y2 = AA * inputCoeffs[1] + 3.0 * inputCoeffs[0] * (-BB - pow(Delta, oneHalf)) / 2.0; in targetGToVlevelsUnderCubicEquation() 200 return (-inputCoeffs[1] + pow(-Y1, oneThird) - pow(Y2, oneThird)) / in targetGToVlevelsUnderCubicEquation() [all …]
|