Package frc.robot.shotdata
Class SemiGriddedBilinearInterpolation<T>
java.lang.Object
frc.robot.shotdata.SemiGriddedBilinearInterpolation<T>
2d interpolation table where one dimension is gridded, allowing for O(log(N)) lookups for M
gridded and N non-gridded data points.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSemiGriddedBilinearInterpolation(double gridStep, T[] data, MulAdd<T> mulAdd, ToDoubleFunction<T> xFunc, ToDoubleFunction<T> yFunc) Create new 2d lookup -
Method Summary
-
Field Details
-
gridStep
public final double gridStep
-
-
Constructor Details
-
SemiGriddedBilinearInterpolation
public SemiGriddedBilinearInterpolation(double gridStep, T[] data, MulAdd<T> mulAdd, ToDoubleFunction<T> xFunc, ToDoubleFunction<T> yFunc) Create new 2d lookup
-
-
Method Details
-
interpolate
query point
-