aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/utils/interpolation.hpp
Commit message (Collapse)AuthorAgeFilesLines
* lib: utils: interpolation: Add bilinear interpolationMartin Braun2020-04-171-0/+117
| | | | | | This allows to treat a std::map<KeyType<std::map<KeyType, ValueType>> as a set of x-y coordinates, and bilinearly interpolate a z-value given four x/y pairs.
* uhd: Replace include guards with pragma onceLane Kolbly2020-04-081-4/+1
| | | | | Pragma once is the more modern version of include guards, eliminating any potential problems with mistyping include guards. Let's use those.
* uhd: math: Add interpolation.hppMartin Braun2020-04-071-0/+140
- Moves linear_interp from cal to utils - Moves the interp_mode enum class to interpolation.hpp - Adds three interpolation methods for maps: at_interpolate_1d(), at_nearest(), at_lin_interp() - Adds unit tests