plastimatch
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Pwlut Class Reference

The Pwlut class implements a lookup table with piecewise linear segments. More...

#include <pwlut.h>

Public Member Functions

 Pwlut ()
 
Inputs
void set_lut (const std::string &pwlut_string)
 Set the input/output pairs in the lookup table.
 
void set_lut (const Float_pair_list &pwlut_fpl)
 Set the input/output pairs in the lookup table.
 
float lookup (float vin) const
 Interpolate a lookup value.
 

Protected Attributes

Float_pair_list fpl
 
float left_slope
 
float right_slope
 
Float_pair_list::const_iterator ait_start
 
Float_pair_list::const_iterator ait_end
 

Detailed Description

The Pwlut class implements a lookup table with piecewise linear segments.

Constructor & Destructor Documentation

◆ Pwlut()

Pwlut::Pwlut ( )

Member Function Documentation

◆ lookup()

float Pwlut::lookup ( float  vin) const

Interpolate a lookup value.

◆ set_lut() [1/2]

void Pwlut::set_lut ( const Float_pair_list pwlut_fpl)

Set the input/output pairs in the lookup table.

◆ set_lut() [2/2]

void Pwlut::set_lut ( const std::string &  pwlut_string)

Set the input/output pairs in the lookup table.

Member Data Documentation

◆ ait_end

Float_pair_list::const_iterator Pwlut::ait_end
protected

◆ ait_start

Float_pair_list::const_iterator Pwlut::ait_start
protected

◆ fpl

Float_pair_list Pwlut::fpl
protected

◆ left_slope

float Pwlut::left_slope
protected

◆ right_slope

float Pwlut::right_slope
protected

The documentation for this class was generated from the following files: