Piecewise-constant parameter. More...
#include <ql/models/parameter.hpp>
Public Member Functions | |
PiecewiseConstantParameter (const std::vector< Time > ×, const Constraint &constraint=NoConstraint()) | |
![]() | |
const Array & | params () const |
void | setParam (Size i, Real x) |
bool | testParams (const Array ¶ms) const |
Size | size () const |
Real | operator() (Time t) const |
const ext::shared_ptr< Impl > & | implementation () const |
const Constraint & | constraint () const |
Additional Inherited Members | |
![]() | |
Parameter (Size size, const ext::shared_ptr< Impl > &impl, const Constraint &constraint) | |
![]() | |
ext::shared_ptr< Impl > | impl_ |
Array | params_ |
Constraint | constraint_ |
Piecewise-constant parameter.
\( a(t) = a_i if t_{i-1} \geq t < t_i \). This kind of parameter is usually used to enhance the fitting of a model