QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Loading...
Searching...
No Matches
globalbootstrapvars.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3#ifndef quantlib_global_bootstrap_vars_hpp
4#define quantlib_global_bootstrap_vars_hpp
5
7#include <ql/shared_ptr.hpp>
9
10namespace QuantLib {
11
13 public:
14 explicit SimpleQuoteVariables(
15 std::vector<ext::shared_ptr<SimpleQuote>> quotes,
16 std::vector<Real> initialGuesses = {},
17 std::vector<Real> lowerBounds = {});
18
19 Array initialize(bool validData) override;
20 void update(const Array& x) override;
21
22 private:
23 Real transformDirect(Real x, Size i) const;
24 Real transformInverse(Real x, Size i) const;
25
26 std::vector<ext::shared_ptr<SimpleQuote>> quotes_;
27 std::vector<Real> initialGuesses_, lowerBounds_;
28};
29
30} // namespace QuantLib
31
32#endif
1-D array used in linear algebra.
Definition: array.hpp:52
Array initialize(bool validData) override
std::vector< ext::shared_ptr< SimpleQuote > > quotes_
Real transformDirect(Real x, Size i) const
Real transformInverse(Real x, Size i) const
void update(const Array &x) override
global bootstrap, with additional restrictions
QL_REAL Real
real number
Definition: types.hpp:50
std::size_t Size
size of a container
Definition: types.hpp:58
Definition: any.hpp:37
Maps shared_ptr to either the boost or std implementation.
simple quote class