Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wpimath] Document example usage for InterpolatingDoubleTreeMap #6456

Merged
merged 5 commits into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
/**
* 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.
*
* <p>Example of use:
*
* <pre><code>
* InterpolatingDoubleTreeMap table = new InterpolatingDoubleTreeMap();
* table.put(0.0, 0.0);
* table.put(1.0, 10.0);
* table.put(2.0, 30.0);
* // ...
* double result = table.get(1.5); // Returns 20.0
* </code></pre>
*/
public class InterpolatingDoubleTreeMap extends InterpolatingTreeMap<Double, Double> {
/** Default constructor. */
Expand Down
Loading