Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
LogLinearFlat Class Reference

Linear-interpolation and flat extrapolation factory and traits More...

#include <qle/math/flatextrapolation.hpp>

+ Collaboration diagram for LogLinearFlat:

Public Member Functions

template<class I1 , class I2 >
Interpolation interpolate (const I1 &xBegin, const I1 &xEnd, const I2 &yBegin) const
 

Static Public Attributes

static const bool global = false
 
static const Size requiredPoints = 2
 

Detailed Description

Linear-interpolation and flat extrapolation factory and traits

Definition at line 107 of file flatextrapolation.hpp.

Member Function Documentation

◆ interpolate()

Interpolation interpolate ( const I1 &  xBegin,
const I1 &  xEnd,
const I2 &  yBegin 
) const

Definition at line 109 of file flatextrapolation.hpp.

109 {
110 return FlatExtrapolation(QuantLib::ext::make_shared<LogLinearInterpolation>(xBegin, xEnd, yBegin));
111 }

Member Data Documentation

◆ global

const bool global = false
static

Definition at line 112 of file flatextrapolation.hpp.

◆ requiredPoints

const Size requiredPoints = 2
static

Definition at line 113 of file flatextrapolation.hpp.