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

Lookup Table Class #20

Closed
Closed
@DFriend01

Description

@DFriend01

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions