interpolate linearly in a piecewise linear function (tabularized function)  
#include <dumux/common/math.hh>
|  | 
| template<class Scalar, class RandomAccessContainer0, class RandomAccessContainer1> | 
| static constexpr Scalar | interpolate (Scalar ip, const RandomAccessContainer0 &range, const RandomAccessContainer1 &values) | 
|  | interpolate linearly in a piecewise linear function (tabularized function) 
 | 
|  | 
| template<class Scalar, class RandomAccessContainer> | 
| static constexpr Scalar | interpolate (Scalar ip, const std::pair< RandomAccessContainer, RandomAccessContainer > &table) | 
|  | 
◆ interpolate() [1/2]
template<class Scalar, class RandomAccessContainer0, class RandomAccessContainer1> 
  
  | 
        
          | static constexpr Scalar Dumux::InterpolationPolicy::LinearTable::interpolate | ( | Scalar | ip, |  
          |  |  | const RandomAccessContainer0 & | range, |  
          |  |  | const RandomAccessContainer1 & | values ) |  | inlinestaticconstexpr | 
 
- Parameters
- 
  
    | ip | the interpolation point |  | range | positions of values |  | values | values to interpolate from |  
 
- Note
- if the interpolation point is out of bounds this will return the bounds 
 
 
◆ interpolate() [2/2]
template<class Scalar, class RandomAccessContainer> 
  
  | 
        
          | static constexpr Scalar Dumux::InterpolationPolicy::LinearTable::interpolate | ( | Scalar | ip, |  
          |  |  | const std::pair< RandomAccessContainer, RandomAccessContainer > & | table ) |  | inlinestaticconstexpr | 
 
 
The documentation for this struct was generated from the following file: