CosLookupTable

class CosLookupTable : public vslib::Component

Public Functions

inline CosLookupTable(std::string_view name, Component &parent, const size_t number_points)

Constructor for the CosLookupTable Component.

Parameters:
  • name – Name of this Component

  • parent – Parent of this Component

  • number_points – Length of the lookup table vector

inline auto interpolate(const double input_x)

Provides intuitive interaction with the underlying table

Parameters:

input_x – Value to be looked up in the table

Returns:

Interpolated function value closest to the input_x

inline auto operator()(const double input_x)

Provides intuitive interaction with the underlying table

Parameters:

input_x – Value to be looked up in the table

Returns:

Interpolated function value closest to the input_x