[wpiutil,wpimath] Add generic InterpolatingTreeMap (#5372)

This commit is contained in:
Ryan Blue
2023-08-04 00:46:17 -04:00
committed by GitHub
parent d83a6edc20
commit 90e37a129f
10 changed files with 330 additions and 17 deletions

View File

@@ -9,7 +9,10 @@ import java.util.TreeMap;
/**
* Interpolating Tree Maps are used to get values at points that are not defined by making a guess
* from points that are defined. This uses linear interpolation.
*
* @deprecated Use {@link edu.wpi.first.math.interpolation.InterpolatingDoubleTreeMap} instead
*/
@Deprecated(forRemoval = true, since = "2024")
public class InterpolatingTreeMap<K extends Number, V extends Number> {
private final TreeMap<K, V> m_map = new TreeMap<>();