You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
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
This scipy resource covers different functions that can be used for each interpolation method
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 namedlut.py
in thecontroller/common
directory and write the class there.Inputs:
linear
for linear interpolationspline
for spline interpolationClass Functionality:
LUT
class should implement a method to perform interpolation.Testing:
tests/unit/common/test_lut.py
. See the boat simulator tests for examples on how to implement tests with pytest.Resources
The text was updated successfully, but these errors were encountered: