Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Lookup Table Class #20

Closed
DFriend01 opened this issue Jan 17, 2024 · 0 comments · Fixed by #25
Closed

Lookup Table Class #20

DFriend01 opened this issue Jan 17, 2024 · 0 comments · Fixed by #25
Assignees
Labels
enhancement New feature or request

Comments

@DFriend01
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants