|
FERS 0.1.0
The Flexible Extensible Radar Simulator
|
Wrapper class for managing interpolation sets using smart pointers. More...
#include "interpolation_set.h"
Public Member Functions | |
| constexpr | InterpSet () |
| Constructs a new InterpSet object. | |
| constexpr | ~InterpSet ()=default |
| InterpSet (const InterpSet &)=delete | |
| InterpSet & | operator= (const InterpSet &)=delete |
| InterpSet (InterpSet &&)=delete | |
| InterpSet & | operator= (InterpSet &&)=delete |
| template<RealConcept T> | |
| void | insertSample (T x, T y) const noexcept |
| Inserts a sample point into the interpolation set. | |
| template<RealConcept T> | |
| std::optional< T > | getValueAt (T x) const noexcept |
| Retrieves the interpolated value at a given point. | |
| double | getMax () const noexcept |
| Retrieves the maximum absolute value in the interpolation set. | |
| template<RealConcept T> | |
| void | divide (T a) const |
| Divides all y-values in the dataset by a given number. | |
Wrapper class for managing interpolation sets using smart pointers.
Definition at line 82 of file interpolation_set.h.
|
constexpr |
Constructs a new InterpSet object.
Definition at line 88 of file interpolation_set.h.
|
constexprdefault |
|
delete |
Divides all y-values in the dataset by a given number.
| T | The type of the divisor (must be an arithmetic type). |
| a | The divisor to divide all y-values by. |
| std::invalid_argument | Thrown if the divisor is zero. |
Definition at line 138 of file interpolation_set.h.
References a.
|
noexcept |
Retrieves the maximum absolute value in the interpolation set.
Definition at line 128 of file interpolation_set.h.
Retrieves the interpolated value at a given point.
| T | The type of the x-coordinate (must be an arithmetic type). |
| x | The x-coordinate at which to interpolate the value. |
Definition at line 118 of file interpolation_set.h.
Inserts a sample point into the interpolation set.
| T | The type of the x and y coordinates (must be an arithmetic type). |
| x | The x-coordinate of the sample point. |
| y | The y-coordinate of the sample point. |
Definition at line 105 of file interpolation_set.h.