QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
PiecewiseConstantParameter Class Reference

Piecewise-constant parameter. More...

#include <parameter.hpp>

+ Inheritance diagram for PiecewiseConstantParameter:
+ Collaboration diagram for PiecewiseConstantParameter:

Classes

class  Impl
 

Public Member Functions

 PiecewiseConstantParameter (const std::vector< Time > &times, const Constraint &constraint=NoConstraint())
 
- Public Member Functions inherited from Parameter
 Parameter ()
 
const Arrayparams () const
 
void setParam (Size i, Real x)
 
bool testParams (const Array &params) const
 
Size size () const
 
Real operator() (Time t) const
 
const ext::shared_ptr< Impl > & implementation () const
 
const Constraintconstraint () const
 

Additional Inherited Members

- Protected Member Functions inherited from Parameter
 Parameter (Size size, ext::shared_ptr< Impl > impl, Constraint constraint)
 
- Protected Attributes inherited from Parameter
ext::shared_ptr< Implimpl_
 
Array params_
 
Constraint constraint_
 

Detailed Description

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

Definition at line 119 of file parameter.hpp.

Constructor & Destructor Documentation

◆ PiecewiseConstantParameter()

PiecewiseConstantParameter ( const std::vector< Time > &  times,
const Constraint constraint = NoConstraint() 
)

Definition at line 134 of file parameter.hpp.