This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Description
Purpose
The purpose of the lookup table is to take a table of $(x,y)$ mappings and perform interpolation to evaluate for values of $x$ that do not exactly fall upon a defined mapping.
Description
The task is to create a lookup table class LUT. Create a file named lut.py in the controller/common directory and write the class there.
Inputs:
- 2D array of $(x,y)$ mappings for interpolation
- The interpolation method
-
linear for linear interpolation
-
spline for spline interpolation
Class Functionality:
- The
LUT class should implement a method to perform interpolation.
- Add any other functionality you think might be useful
Testing:
- Write your unit tests in
tests/unit/common/test_lut.py. See the boat simulator tests for examples on how to implement tests with pytest.
Resources