| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait BiquadraticInterpolation |
||
| 14 | { |
||
| 15 | protected float $startX; |
||
| 16 | protected float $endX; |
||
| 17 | protected float $startY; |
||
| 18 | protected float $endY; |
||
| 19 | protected int $numberOfColumns; |
||
| 20 | protected int $numberOfRows; |
||
| 21 | protected float $columnGridInterval; |
||
| 22 | protected float $rowGridInterval; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Quadratic interpolation at point p, where p is between 0 and 2. |
||
| 26 | * Converted from NOAA FORTRAN implementation, this function apparently uses Newton-Gregory forward polynomial. |
||
| 27 | */ |
||
| 28 | 7 | private function interpolateQuadratic(float $p, float $valueAt0, float $valueAt1, float $valueAt2): float |
|
| 39 |